chaos / genders

Genders is a static cluster configuration database used for cluster configuration management. It is used by a variety of tools and scripts for management of large clusters.
GNU General Public License v2.0
34 stars 12 forks source link

RPATH issue on SLES #10

Open JohnWestlund opened 9 years ago

JohnWestlund commented 9 years ago

I haven't fully dug into this, but in my SLES build I'm seeing the following error:

[ 124s] calling /usr/lib/rpm/brp-suse.d/brp-35-rpath [ 124s] ERROR: RPATH "/home/abuild/rpmbuild/BUILD/genders-1.22/src/libgenders/.libs" on /home/abuild/rpmbuild/BUILDROOT/genders-ohpc-1.22-18.1.x86_64/usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi/auto/Libgenders/Libgenders.so is not allowed

Probably not ideal to have RPATH pointing back to the build directory.

chu11 commented 9 years ago

Perl extensions are not built through the normal automake system, so this was a hack I did to get it to work. Is this only a warning or is it a flat out build error?

JohnWestlund commented 9 years ago

Yeah, I noticed it gets built during make install. It's not a fatal compiler error, but the SUSE post build checks are very picky. I can probably turn this one off, but it is pointing out something less than ideal. Here's more context:

[  111s] calling /usr/lib/rpm/brp-suse.d/brp-20-check-la
[  111s] WARNING: found empty dependency_libs variable. please remove
[  111s]        the pointless libtool .la file /home/abuild/rpmbuild/BUILDROOT/genders-ohpc-1.22-20.1.x86_64/usr/lib64/libgenders.la
[  111s]          If you don't understand this, mailto=rguenther@suse.de
[  111s] calling /usr/lib/rpm/brp-suse.d/brp-25-symlink
[  111s] calling /usr/lib/rpm/brp-suse.d/brp-30-desktop
[  112s] WARNING: '/usr/lib/rpm/brp-desktop.data/suse-screensavers.menu' does not exist
[  112s] WARNING: '/usr/lib/rpm/brp-desktop.data/preferences-gnome.menu' does not exist
[  112s] WARNING: '/usr/lib/rpm/brp-desktop.data/applications-kmenuedit.menu' does not exist
[  112s] calling /usr/lib/rpm/brp-suse.d/brp-35-rpath
[  112s] ERROR: RPATH "/home/abuild/rpmbuild/BUILD/genders-1.22/src/libgenders/.libs" on /home/abuild/rpmbuild/BUILDROOT/genders-ohpc-1.22-20.1.x86_64/usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi/auto/Libgenders/Libgenders.so is not allowed
[  112s] error: Bad exit status from /var/tmp/rpm-tmp.DIZesu (%install)

This is what is generating the error: brp-35-rpath

But as you can see things aren't fully mature, the check above got removed upstream: brp-20-check-la