Michael E Brown <[EMAIL PROTECTED]> writes: >> This patch bind-mounts a custom /etc/rpm directory to set the >> %_netsharedpath macro before doing the 'yum install' operation. >> >> Else, installation of filesystem package will fail due to a cpio error. > > This one is required IFF previous /dev patch is applied, correct?
yes; I thought that the References: header should make this clear.
> Can this be done in .rpmmacros instead?
no; there is to differ between two situations:
1. 'yum install'
This is executed as root and reads host's /etc/rpm/macros file (and
/etc/rpm/platform). Afais, this case is completely ignored in current
mock
~/.rpmmacros and other rpm configuration in the chroot will be
completely ignored.
2. 'rpmbuild'
This is executed as the mock-user in the chroot and reads ~/.rpmmacros
>> + self._mount('none --bind', os.path.join(self.statedir,
>> 'rpm'), '/etc/rpm')
Enrico
pgpb4LdqKyyMT.pgp
Description: PGP signature
-- Fedora-buildsys-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
