Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 655820 - sys-devel/libtool "native build" should carry elt-patches
Summary: sys-devel/libtool "native build" should carry elt-patches
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-15 17:36 UTC by Joakim Tjernlund
Modified: 2023-12-28 01:14 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joakim Tjernlund 2018-05-15 17:36:54 UTC
Currently portage applies lots of libtool patches when building through
portage.
Native builds using libtool directly does not get any of these which
can break builds.

Gentoo's native libtool should have the same fixes as portage builds get.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-05-16 13:37:09 UTC
I have no idea what you mean to distinguish with "native" versus "through portage".
Comment 2 Joakim Tjernlund 2018-05-16 14:08:06 UTC
(In reply to Jeroen Roovers from comment #1)
> I have no idea what you mean to distinguish with "native" versus "through
> portage".

native:
Checking out SW directly from github and running the
autoreconf/libool tools manually. 

portage: build a gentoo pkg using ebuild cmd.
Comment 3 Joakim Tjernlund 2018-07-19 03:21:06 UTC
Ping?
Comment 4 Joakim Tjernlund 2018-09-06 21:05:39 UTC
To be more specific, the patches in app-portage/elt-patches are
only applied when using libtool in an ebuild, should you build src
directly these patches are lost.

Take /usr/share/elt-patches/cross/2.4.3, this fixes a sysroot bug in
official libtool bug never is applied on builds using libtool
directly.
Comment 5 Joakim Tjernlund 2018-10-20 16:18:15 UTC
ping ?
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2019-07-13 07:47:42 UTC
libtool is a base-system@ package (TIL).
Comment 7 Joakim Tjernlund 2019-11-08 01:21:43 UTC
ping ?
Comment 8 Michael Haubenwallner (RETIRED) gentoo-dev 2020-03-13 17:21:31 UTC
IMO, there is a specific reason for installed /usr/bin/libtoolize to not carry patches that are applied by elibtoolize:

Various upstream package maintainers use their Gentoo machines to create their official package distfiles (make dist).

It might indeed be fine for their embedded configure and ltmain.sh to carry patches already committed to the libtool upstream repo.

But I really believe that other patches may confuse non-Gentoo downstream distro and other package managers, when the package does _pretend_ to carry a specific libtool version, while actually having additional patches applied.

In fact, I do prefer packages to even ship known libtool bugs rather than uncommitted libtool patches, so even Gentoo can run elibtoolize against known libtool versions.

Otherwise, random libtool patches just ask for a full eautoreconf.

To build manually (without an ebuild), you can use the eltpatch command.

And on non-Gentoo systems, you can use standalone elt-patches.
Comment 9 Joakim Tjernlund 2020-03-14 16:06:29 UTC
(In reply to Michael Haubenwallner from comment #8)
> IMO, there is a specific reason for installed /usr/bin/libtoolize to not
> carry patches that are applied by elibtoolize:
> 
> Various upstream package maintainers use their Gentoo machines to create
> their official package distfiles (make dist).
> 
> It might indeed be fine for their embedded configure and ltmain.sh to carry
> patches already committed to the libtool upstream repo.
> 
> But I really believe that other patches may confuse non-Gentoo downstream
> distro and other package managers, when the package does _pretend_ to carry
> a specific libtool version, while actually having additional patches applied.
> 
> In fact, I do prefer packages to even ship known libtool bugs rather than
> uncommitted libtool patches, so even Gentoo can run elibtoolize against
> known libtool versions.
> 
> Otherwise, random libtool patches just ask for a full eautoreconf.
> 
> To build manually (without an ebuild), you can use the eltpatch command.
> 
> And on non-Gentoo systems, you can use standalone elt-patches.

Patches specific too Gentoo might belong to elibtoolize only, but there are
also generic patches that are plain bug fixes too. 
ATM one can not do cross compiling properly outside the portage system and
that is just plain wrong.
Comment 10 Joakim Tjernlund 2021-09-14 22:58:38 UTC
If it is still a big concern w.r.t upstream package maintainers, maybe add an USE flag to libtool which adds in the various libtool patches in systems libtool?

libtool upstream seems dead so I don't think there is any point asking them to add fixes.
Comment 11 SpanKY gentoo-dev 2021-10-08 14:03:39 UTC
(basically echoing what Michael Haubenwallner already said)

we do terrible things in elt-patches, and we do them specifically without thought for how they impact any other environment.  if there are specific things you want us to include in our libtool that is in elt-patches, feel free to file specific bugs (one bug per patch/request).

Gentoo devs maintaining non-Gentoo projects shouldn't have to worry that building & releasing autotool based projects will include bad logic that doesn't work on non-Gentoo systems.