RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Permitting noarch subpkgs from a per-arch build

From: Tim Mooney <Tim.Mooney@ndsu.edu>
Date: Wed 23 Jan 2008 - 20:50:09 CET
Message-ID: <Pine.SOC.4.64.0801231332240.29465@dogbert.cc.ndsu.NoDak.edu>
In regard to: Re: Permitting noarch subpkgs from a per-arch build, Jeff...:

> After spending 15 minutes writing a script that does
>
>   1) Get RPMTAG_CLASSDICT for every package.
>   2) Get RPMTAG_CLASSIDICT for noarch packages.
>   3) Exclude noarch types from other types to generate file types that should
>   not be permitted in noarch packages.
>
> (with some modest filtering using sed), I come to the
> rather unsurprising blacklist rule on linux/ix86 for noarch packages
>
> 	RPMTAG_CLASSDICT should never contain the string "ELF".

When it's regexed, it should probably be something like

 	(^ELF | ELF )

but I agree that ELF is the prime candidate to watch for.

Looking through what I currently have installed on my ELF/ELF64
x86_64-sun-solaris2.10 workstation, the only other thing I see that stands
out as something that we might want to exclude from noarch packages is

 	current ar archive

It's certainly possible that an ar archive could contain platform neutral
files, but that's pretty uncommon (maybe not on OS X, though?).

Other possible candidates to watch for (that might apply to non-ELF
platforms too) would be

 	, dynamically linked
 	, (not )?stripped$

Tim
-- 
Tim Mooney                                        Tim.Mooney@ndsu.edu
Information Technology Services                   (701) 231-1076 (Voice)
Room 242-J6, IACC Building                        (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
Received on Wed Jan 23 20:51:00 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.