From: Eric Sandeen <sandeen@sandeen.net>
To: Jan Engelhardt <jengelh@inai.de>
Cc: xfs@oss.sgi.com
Subject: Re: xfsprogs: .lai files not found
Date: Thu, 24 May 2012 11:25:26 -0500 [thread overview]
Message-ID: <4FBE60F6.6050709@sandeen.net> (raw)
In-Reply-To: <alpine.LNX.2.01.1205241517400.10834@frira.zrqbmnf.qr>
On 5/24/12 8:45 AM, Jan Engelhardt wrote:
>
> So I tried changing the xfsprogs package in openSUSE to build without
> static libraries, and what I got back from the build system was a
> warning about completely improper rpath settings.
>
>
> ERROR: RPATH "/home/abuild/rpmbuild/BUILD/xfsprogs-3.1.6/libxfs/.libs"
> on
> /home/abuild/rpmbuild/BUILDROOT/xfsprogs-3.1.6-0.x86_64/usr/sbin/mkfs.xfs
> is not allowed
> [lots of these]
>
> I therefore ripped out
>
> -LTLDFLAGS += -rpath $(PKG_ROOT_LIB_DIR)
>
> from include/buildmacros, only to find that the install procedure then
> does not work at all anymore.
>
> cd ../libhandle/.libs; ../../install-sh -o abuild -g abuild -m 755 -d /lib64; ../../install-sh -o abuild -g abuild -m 644 -T so_dot_version libhandle.lai /lib64; ../../install-sh -o abuild -g abuild -T so_dot_current libhandle.lai /lib64
> install-sh: Unable to find libtool library file libhandle.lai
> install-sh: Unable to find libtool library file libhandle.lai
> gmake[1]: *** [install] Error 2
> make: *** [libhandle-install] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.JjlSJb (%install)
>
> (I frown upon using libtool directly and seek to replace it with an
> assisted version using automake. There is however __quite__ some
> cruft in the src tree.)
It's a little embarrassing to say so, but here's the hack I use in fedora for some of this stuff.
%configure \
--enable-readline=yes \
--enable-blkid=yes
# Kill rpaths
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
...
# nuke .la files, etc
rm -f $RPM_BUILD_ROOT/{%{_lib}/*.{la,a,so},%{_libdir}/*.{la,a}}
Agreed that the build system could use love, do we have a volunteer? :)
-Eric
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2012-05-24 16:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-24 13:45 xfsprogs: .lai files not found Jan Engelhardt
2012-05-24 16:25 ` Eric Sandeen [this message]
2012-05-24 19:26 ` Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FBE60F6.6050709@sandeen.net \
--to=sandeen@sandeen.net \
--cc=jengelh@inai.de \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.