Johnny Hughes
2018-May-20 05:45 UTC
[CentOS] How to build nss-util.i686 on Centos 7 with mock
So, you have to have a full i386 build root to build i386 arch packages .. then only a subset of those built packages are actually used as multilib packages for x86_64. as Nux! said, you have to use the i386 distro to build those. The mock configs we use to build live here: https://git.centos.org/tree/sig-core!bld-seven.git/master/mock Obviously, you would need to modify them for your setup. The file you are looking for is: c7.1804.u.i686.cfg On 05/17/2018 09:47 AM, Nux! wrote:> Hi Martin, > > You need to build a "epel-7-i386" mock profile and use that. Now I call it "epel" so it resembles the default profile, but there is no EPEL 32bit for EL7. > > There is a 32bit CentOS 7 tree here http://mirror.centos.org/altarch/7/os/i386/ > > If there are deps required and are not there you'll need to backport them from Fedora I guess. > > -- > Sent from the Delta quadrant using Borg technology! > > Nux! > www.nux.ro > > ----- Original Message ----- >> From: "Martin Vogt" <martin.vogt at itwm.fraunhofer.de> >> To: "CentOS mailing list" <centos at centos.org> >> Sent: Thursday, 17 May, 2018 15:26:17 >> Subject: [CentOS] How to build nss-util.i686 on Centos 7 with mock > >> Hello list, >> >> I'm currently trying to build the i686 version of >> >> http://vault.centos.org/7.5.1804/os/Source/SPackages/nss-util-3.34.0-2.el7.src.rpm >> >> The x86_86 version works with mock, but I cannot figure out >> how to build the i686 version. >> >> best regards, >> >> Martin >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> https://lists.centos.org/mailman/listinfo/centos > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20180520/9a3ebcf3/attachment-0001.sig>
Martin Vogt
2018-May-25 09:47 UTC
[CentOS] How to build nss-util.i686 on Centos 7 with mock
On 05/20/2018 07:45 AM, Johnny Hughes wrote: > > So, you have to have a full i386 build root to build i386 arch packages > .. then only a subset of those built packages are actually used as > multilib packages for x86_64. > > as Nux! said, you have to use the i386 distro to build those. > I have the problem, that in mock shell the file /etc/rpm/macros.dist has a wrong entry in the dist section. This complicates the process, because yum has trouble with dependency tracking.
Johnny Hughes
2018-May-25 13:13 UTC
[CentOS] How to build nss-util.i686 on Centos 7 with mock
On 05/25/2018 04:47 AM, Martin Vogt wrote:> > > On 05/20/2018 07:45 AM, Johnny Hughes wrote: >> >> So, you have to have a full i386 build root to build i386 arch packages >> .. then only a subset of those built packages are actually used as >> multilib packages for x86_64. >> >> as Nux! said, you have to use the i386 distro to build those. >> > > I have the problem, that in mock shell the file > /etc/rpm/macros.dist has a wrong entry in the dist section. > > This complicates the process, because yum has trouble > with dependency tracking. > > >You can (and likely should) pass in the %dist either by using this option when starting mock: -D "dist <value>" Or by putting this value in your mock config file: config_opts['macros']['%dist'] = "<value>" Either way, when you start mock at that point, the dist should then be whatever you want it to be. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20180525/ea9a2d8c/attachment-0001.sig>