One endlessly repeated RFE for rpm is the ability to
produce noarch subpkgs from a per-arch build.

The rationale for not attempting has always been the
quality of packaging: if noarch starts to carry, say, ELF,
binaries, then much confusion will occur during installs.

So there's a need for an explicit check that indeed, a
noarch package contains only file types that reasonably
make sense to include in a noarch subpkg.

Adding an explicit check requires consensus on what
file types might be "reasonably permitted". An implementation
using a white/black list to explicitly verify what is permitted
is not hard *once the patterns exist.

So hear are two commands that can be used as a starting
point to generate a white/black list of file types that might
be "reasonably permitted" in a noarch package. Note that
the whitelist file needs to be intersected against the blacklist
file, which can/will also include whitelist elements.

    rpm -qa --qf '[%{classdict}\n]' 'arch=noarch' > /tmp/whitelist

    rpm -qa --qf '[%{classdict}\n]' 'arch=!noarch' > /tmp/blacklist

Yes one will have to remove certain file peculier strings using
the usual unix tools before attempting RE patterns for white/black lists.

If someone helps defining "reasonably permitted" patterns, I'll be
happy to do the rest of the implementation necessary to permit
noarch subpkgs from a single build.

73 de Jeff
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        rpm-devel@rpm5.org

Reply via email to