My $0.02: This is another in a growing list of issues reflecting the whole "build everything in DESTDIR" is a problematic approach.
I have distinct %build and %install sections in the Open MPI specfile -- they're really intended for two different things. Specifically: I wouldn't call the SuSE %build behavior a bug -- it reflects how they want RPM designers to write RPMs. It appears that we're trying to circumvent their intended approach. Shouldn't that be a warning flag? :-) I've heard offhand comments that there were problems with trying to use chroot for building OFED. The two that I'm aware of are: 1. need to be root to make a chroot. My thought: who cares? 2. takes up lots of extra disk space. My thought: does it matter? Do we know of anyone who has small- disk servers who are building OFED? (and/or: can you hard-link files to make a chroot environment? I'm don't know) Are there other issues? More specifically, which is going to be simpler: a) fixing the growing list of problems with the DESTDIR approach or b) switching to a chroot environment? A simple search for "chroot" on freshmeat, for example, turns up a number of projects that can be used to help automate the creation of chroot environments. Again -- this is all my $0.02. Comments? On Feb 7, 2007, at 12:00 PM, Vladimir Sokolovsky wrote: > I propose to replace %build by %install. > Otherwise %build removes /var/tmp/OFED (on SuSE) which includes all > installed libraries. > > Regards, > Vladimir > > On Wed, 2007-02-07 at 11:52 -0500, Jeff Squyres wrote: >> The "%build" directive is not just a macro, it's also a section >> qualifier indicating the beginning of the build section. From >> >> http://fedora.redhat.com/docs/drafts/rpm-guide-en/ >> ch08s02.html#id2966770 >> >> "The build section starts with a %build statement." >> >> Is there something else that I should replace it with that will also >> start the build section? >> >> >> >> On Feb 7, 2007, at 11:42 AM, Vladimir Sokolovsky wrote: >> >>> Hi Jeff, >>> Please remove %build macro from the RPM spec file. >>> On SuSE distros it removes RPM_BUILD_ROOT. >>> >>> Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.23343 >>> + umask 022 >>> + cd /var/tmp/OFEDRPM/BUILD >>> + /bin/rm -rf /var/tmp/OFED >>> ++ dirname /var/tmp/OFED >>> + /bin/mkdir -p /var/tmp >>> + /bin/mkdir /var/tmp/OFED >>> + cd openmpi-1.2b4ofedr13470 >>> + fortify_source=1 >>> + test '' '!=' '' >>> ... >>> >>> -- >>> Vladimir Sokolovsky <[EMAIL PROTECTED]> >>> Mellanox Technologies Ltd. >> >> -- Jeff Squyres Server Virtualization Business Unit Cisco Systems _______________________________________________ openib-general mailing list openib-general@openib.org http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general