Re: Accidentally installed libtool wrapper scripts instead of binaries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good point, but how do we know if file is libtool wrapper and not real
shell-script?

On Wed, Jul 13, 2016 at 3:27 PM, Richard W.M. Jones <rjones@xxxxxxxxxx> wrote:
> Just a note more than anything, since I don't see this problem
> discussed anywhere in the packaging guidelines ...
>
> If a package uses libtool, then sometimes libtool generates bash
> scripts instead of executables.  These libtool wrapper scripts can be
> run from the build directory and run the real executable which is
> hidden away in a subdirectory like '.libs'.  They are (another)
> misfeature of libtool IMO.
>
> I accidentally packaged some libtool wrapper scripts by doing:
>
>   %install
>   ...
>   install -m 0755 utils/boot-analysis/boot-analysis $RPM_BUILD_ROOT%{_bindir}/libguestfs-boot-analysis
>
> Nothing in our toolchain highlighted this mistake.  Can we make RPM
> complain?
>
> To fix it you have to use the following command instead:
>
>   libtool --mode=install install -m 0755 utils/boot-analysis/boot-analysis $RPM_BUILD_ROOT%{_bindir}/libguestfs-boot-analysis
>
> (Note the libtool documentation is incorrect - it doesn't consistently
> mention that you need to specify the 'install' command.)
>
> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-p2v converts physical machines to virtual machines.  Boot with a
> live CD or over the network (PXE) and turn machines into KVM guests.
> http://libguestfs.org/virt-v2v
> --
> devel mailing list
> devel@xxxxxxxxxxxxxxxxxxxxxxx
> https://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx



-- 
-Igor Gnatenko
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux