Posts: 1,228
secipolla
Joined: 15 Jun 2008
#1
anti mentioned about uploading an updated version of antix, including one with a CLI installer, and this post is to discuss if the cited files should be removed. From what I know about it, yes they should. This probably means making antiX incompatible with the MEPIS repos (at least OOTB), but at the moment they are not of much use for the majority of users due to the relative stability of Squeeze and to the distance of antiX packages to Lenny.

/etc/apt/apt.conf:

Code: Select all

APT::Default-Release"mepis";
APT::Cache-Limit 40000000;
APT::Get::Purge;
APT::Get::AllowUnauthenticated 0;
Acquire::cdrom::Mount"/media/cdrom";
Why dump it? First and foremost because the documentation* says clearly that it should only be used if explicitly needed, which is not the case (maybe it was/is in MEPIS).
* man apt.conf and /usr/share/doc/apt/examples/configure-index.gz
The first line is obviously conflicting with antiX, don't need to be an expert, the second line was a source of many an exercise of typewriting for us here answering post-installation problems in antiX 8.2 (anybody know why it's there at all?). The third should make apt-get remove act as apt-get purge, IDK if it works, but even if it does, that should stay on the user's hands. The fourth...and the fifth is not needed since that entry is already in /etc/fstab.

/etc/apt/preferences:

Code: Select all

Package: *
Pin: release o=Debian
Pin-Priority: 901

Package: *
Pin: release o=MEPIS
Pin-Priority: 800

(Yes, I know it's missing the linux-kbuild entry, but I'm copying this from a 8.5 pre-final live-cd).
The missing line puts the linux-kbuild package from the mepis repos with a priority of 995 which makes it un-updatable unless the cited repos are enabled. Since the MEPIS kernel in not compatible with the linux-kbuild package from Debian, the entry is needed if antiX is to come with that kernel.
The two entries shown above apparently shouldn't pose problems since it seems they just define an hierarchy between releases. But they do interfere with the debian-multimedia repositories, which come enabled by default in antiX.
From what I know, debian-multimedia used to bring multimedia packages that weren't present in the other Debian repos. Nowadays there are packages that are present in both but debian-multimedia has them more up-to-date and also with less restrictions license-wise.
Debian itself doesn't come with any of the two configuration files that are the subject of this post and debian-multimedia.org is made to be perfectly compatible with Debian. What happens is that from the moment a /etc/apt/preferences file is present then all the enabled (or to be possibly enabled) repositories must have an entry in it. Since antiX didn't come with an entry for debian-multimedia.org and came with a Debian one, the system was giving (and is giving if any of you still have that file) preference to the Debian packages in the updates even if there were more recent ones from debian-multimedia.org. This broke MPlayer for me and was what made me pay attention to this (it happened in a Sid installation but the problem was there anyway).
So /etc/apt/preferences, along with /etc/apt/apt.conf, could be removed from the system. If antiX comes with the MEPIS kernel, then /etc/apt/preferences must stay with the linux-kbuild entry, but not with the other two. I tried to add an entry for debian-multimedia.org but my knowledge wasn't enough to create a valid one, that worked.

So if anyone have a more profound knowledge of Debian and wants to add to this discussion, please do so. But it looks simple to me that there were files that were there kind of by inertia and they were of course causing troubles, and could cause some else in the future, because they do affect the updating and maintenance of the system.
secipolla
Joined: 15 Jun 2008
#2
Just to detail a bit more, the pinning is for package linux-kbuild-2.6.32 so if someone installs a newer kernel, like Liquorix, as long as it isn't 2.6.32 then that parameter in /etc/apt/preferences won't affect anything.

Reflecting upon the packages that come with antiX, I noted that my system had aumix and there was a message at boot time that it wouldn't touch the mixer since alsamixer was present. Note that it was only CLI aumix and its dependency aumix-common but not aumix-gtk which was replaced by gamix in antiX 8.5. So maybe aumix and aumix-common could be removed?
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#3
Thanks for taking the time to look into this.

Here is my angle, mainly agreeing with secipolla.

As antiX uses the MEPIS kernel by default it must pin linux-kbuild-2.6.32 MEPIS version because, as you say, it is needed to build nvidia drivers, otherwise it fails.
If users install a liquorix kernel, the linux-kbuild-2.6.32 from Debian testing (and Sid) works ok.

/etc/apt/apt.conf can be removed.

My opinion is that debian-multimedia.org repo should only be used to get w32codecs, libdvdcss2 and for those that use it mencoder or othe dvd rippers such as the great k9copy. If you use k9copy or any other dvd ripper you should keep multimedia repos enabled otherwise there is no real need.

Latest versions of antiX have aumix-gtk removed, though I'm thinking of keeping it and removing gamix.
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#4
anticapitalista wrote: My opinion is that debian-multimedia.org repo should only be used to get w32codecs, libdvdcss2 and for those that use it mencoder or othe dvd rippers such as the great k9copy. If you use k9copy or any other dvd ripper you should keep multimedia repos enabled otherwise there is no real need.
Ok, so I'm just thinking since right now I can only judge by what you said. w32codecs and libdvdcss2 seem to me a good enough reason to keep debian-multimedia.org enabled in antiX (unless it has to comply with USA's copyright or whatever laws).

As said, it is perfectly safe to keep the linux-kbuild-2.6.32 entry (pinning it to MEPIS repos) in /etc/apt/preferences. I know that if the Debian or Liquorix 2.6.32 kernels are installed one just have to replace the linux-kbuild-2.6.32 package for the stock one, I can't remember if it only can be done by calling directly the package for installation but anyway that's a problem for the user that's tweaking his system.

So if debian-multimedia.org is to come enabled by default in antiX then either the Debian and the MEPIS entries in the preferences file must be removed or a valid entry for debian-multimedia.org with the same priority as Debian should be created. I tend to suspect that the second option might not be possible, but the first one would be ok.

Anyone that would want to have the MEPIS repos in antiX (and maybe that would be a rather freak experiment nowadays) could then copy the files from MEPIS itself or ask for them in the forum.