Summary: | media-libs/freetype-2.10.4[X,utils] slibtool: error: output file prefix does not match its (archive) suffix; the expected prefix was 'lib' when using slibtool | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alessandro Barbieri <lssndrbarbieri> |
Component: | Current packages | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | fonts, ionen |
Priority: | Normal | Keywords: | PATCH, UPSTREAM |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 765709 | ||
Attachments: |
freetype-2.10.4:20210313-090842.log
https://gitlab.freedesktop.org/freetype/freetype-demos/-/merge_requests/1 https://gitlab.freedesktop.org/freetype/freetype-demos/-/merge_requests/2 https://gitlab.freedesktop.org/freetype/freetype-demos/-/merge_requests/1 https://gitlab.freedesktop.org/freetype/freetype-demos/-/merge_requests/3 https://gitlab.freedesktop.org/freetype/freetype-demos/-/merge_requests/3 https://gitlab.freedesktop.org/freetype/freetype-demos/-/merge_requests/3 |
Description
Alessandro Barbieri
2021-03-13 22:13:39 UTC
Created attachment 691248 [details]
freetype-2.10.4:20210313-090842.log
buildlog
MAKEFLAGS='LIBTOOL=slibtool' works fine here, seems to only fail with MAKE='make LIBTOOL=slibtool' Ignore my previous message, that wasn't meant to be added here at all. Created attachment 693138 [details, diff] https://gitlab.freedesktop.org/freetype/freetype-demos/-/merge_requests/1 The suffix of the graph library is incorrectly set to .a instead of .la and it misses -module. Created attachment 693141 [details, diff] https://gitlab.freedesktop.org/freetype/freetype-demos/-/merge_requests/2 The build doesn't respect $(LIBTOOL) and drops back to using libtool. The above two patches fix the issues in freetype-demos, but there is still a third ebuild bug. https://gitweb.gentoo.org/repo/gentoo.git/tree/media-libs/freetype/freetype-2.10.4.ebuild?id=647a8d98602693dbdc3e2d5ed4c0baf684dc9121#n213 The ebuild should not use libtool manually, this breaks the build with slibtool. Created attachment 693318 [details, diff] https://gitlab.freedesktop.org/freetype/freetype-demos/-/merge_requests/1 Updated patch that fixes the build without libtool too, I am not sure gentoo would actually use this build option rather than using GNU libtool or slibtool. Upstream merged both changes. :) https://gitlab.freedesktop.org/freetype/freetype-demos/-/commit/8e9447b32dae7e6c95bee3f878ee1877f9b628a4 https://gitlab.freedesktop.org/freetype/freetype-demos/-/commit/597566b2301deeff4e9832aebdab1bf659a2accf Created attachment 693348 [details, diff] https://gitlab.freedesktop.org/freetype/freetype-demos/-/merge_requests/3 A patch adding an install target to the freetype-demos Makefile which will allow removing the manual ./libtool calls in the ebuild. For example: emake DESTDIR=${ED} FT2DEMOS=1 FT2DEMOS_INSTALL=1 \ TOP_DIR_2="${WORKDIR}/ft2demos-${PV}" install Created attachment 694404 [details, diff] https://gitlab.freedesktop.org/freetype/freetype-demos/-/merge_requests/3 Updated patch based on advice from upstream, FT2DEMOS_INSTALL=1 is no longer required. Created attachment 696285 [details, diff] https://gitlab.freedesktop.org/freetype/freetype-demos/-/merge_requests/3 Updated patch. All three patches have been merged upstream now. :) https://gitlab.freedesktop.org/freetype/freetype-demos/-/commit/b88cd2f027e77bd26d1334fc13c4eda796423d19 The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bd791dae28b9af2b3e933939335a53fa303cfc9 commit 1bd791dae28b9af2b3e933939335a53fa303cfc9 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2021-03-30 20:37:20 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2021-03-30 20:37:51 +0000 media-libs/freetype: Fixed build with sys-devel/slibtool Closes: https://bugs.gentoo.org/775881 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> .../freetype-2.10.4-dont_hardcode_libtool.patch | 42 ++++++++++++++++ .../files/freetype-2.10.4-slibtool_build_fix.patch | 40 +++++++++++++++ .../files/ft2demos-2.10.4-install_target.patch | 58 ++++++++++++++++++++++ media-libs/freetype/freetype-2.10.4.ebuild | 16 +++--- 4 files changed, 148 insertions(+), 8 deletions(-) |