Re: A workaround for multilib archs ? [Re: Re: state of apt-rpm development?]

Axel Thimm <[email protected]> Tue, 23 Nov 2004 17:19:58 +0100
Newsgroups gmane.linux.conectiva.apt-rpm
Message-ID <[email protected]>
On Wed, Oct 27, 2004 at 04:05:38PM +0200, Jaroslaw Polok wrote:
> > > Is there support for multilib in svn? It's sad to see FC/RHEL
> > > x86_64 (and the miriads of clones) w/o apt ... :(

> I understand that making apt multiarch capable is an huge task: but
> what about (for time being/via an option) make it ignore compatible
> archs on x86_64/ia64 systems ?
> 
> What I use currently on x86_64/ia64 is a patched apt-0.5.15cnc6
> which ignores athlon/i?86 packages completely.
> 
> The patch consist in making apt reject packages for 
> architectures with score > 2 
> (athlon/i?86 in case of x86_64/ia64)
> 
> in apt-pkg/rpm/rpmlistparser.cc, rpmListParser::Step()
> 
> -if (Handler->IsDatabase() == true ||
> -        RpmData->ArchScore(Architecture().c_str()) > 0)
> -        return true;
> 
> +// ONLY compatible AND native/noarch accepted
> +if (RpmData->ArchScore(Architecture().c_str()) > 0 
> +    && RpmData->ArchScore(Architecture().c_str()) < 3)  
> +        return true;

Does this patch ignore all compatible packages or only the ones that
are doubled? E.g. if I have a x86_64/i386 mixed system, but no package
is doubled (e.g. only i386 package is grub).

what happens with the patch on non-multilib systems? Will the
behaviour remain the same?

Thanks!

> Could such workaround (well ... improved, no hardcoding ...) 
> be considered for inclusion in apt for now ? 
> (with an option like APT::NativeArchOnly set to "false"
> by default ... for std behaviour ..)
> 
> Jarek (maintaining one of 'miriads of clones' of RHEL ;-))
> 
> PS: For the people who would like to try above on their own:
>     one needs to rm -f /var/cache/apt/*bin before running
>     such patched version.
>  

-- 
Axel.Thimm at ATrpms.net

_______________________________________________
apt-rpm mailing list
[email protected]
http://distro2.conectiva.com.br/mailman/listinfo/apt-rpm
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBo2MuQBVS1GOamfERAl0eAJ9qXdRrkL7Z39yVxJJoO4iJbFmFfACfR8MK
RpdrcBCR5ytWosLnoek02OU=
=Tvd9
-----END PGP SIGNATURE-----