Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 766549 - media-video/vlc-3.0.12.1: broken cross-compilation from gettext mismatch
Summary: media-video/vlc-3.0.12.1: broken cross-compilation from gettext mismatch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Cross compilation support
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2021-01-22 14:31 UTC by David Michael
Modified: 2021-03-22 10:06 UTC (History)
2 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 David Michael 2021-01-22 14:31:41 UTC
VLC fails to cross-compile from a gettext version test.

Reproducible: Always

Steps to Reproduce:
1. cross-emerge -v vlc

Actual Results:  
Making all in po
make[2]: Entering directory '/var/tmp/portage/media-video/vlc-3.0.12.1/work/vlc-3.0-3.0.12.1/po'
*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.19 but the autoconf macros are from gettext version 0.20
make[2]: *** [Makefile:1400: stamp-po] Error 1

Expected Results:  
It should build and install.

It works again after changing it to require a minimum version instead.

--- media-video/vlc/vlc-3.0.12.1.ebuild
+++ media-video/vlc/vlc-3.0.12.1.ebuild
@@ -262,6 +262,9 @@ src_prepare() {
 	sed -e "/test.*build.*host/s/\$(host)/nothanks/" \
 		-i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen"
 
+	# Fix gettext version mismatch errors.
+	sed -i -e s/GETTEXT_VERSION/GETTEXT_REQUIRE_VERSION/ configure.ac
+
 	eautoreconf
 
 	# Disable automatic running of tests.
Comment 1 Ionen Wolkens gentoo-dev 2021-01-22 15:42:46 UTC
To reproduce I did have to cross-emerge gettext first, works if only native.

Patch works anyway.
Comment 2 Larry the Git Cow gentoo-dev 2021-03-22 10:06:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31e09a87470369955e7fcb7fecd76dd21d187b82

commit 31e09a87470369955e7fcb7fecd76dd21d187b82
Author:     David Michael <fedora.dm0@gmail.com>
AuthorDate: 2021-03-22 10:06:31 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-03-22 10:06:31 +0000

    media-video/vlc: fix gettext version mismatch
    
    Make the specified gettext version the minimum instead of the exact
    version required.  It fixes this error when cross-compiling:
    
    *** error: gettext infrastructure mismatch: using a Makefile.in.in
    from gettext version 0.19 but the autoconf macros are from gettext
    version 0.20
    
    Closes: https://bugs.gentoo.org/766549
    Package-Manager: Portage-3.0.13, Repoman-3.0.2
    Signed-off-by: David Michael <fedora.dm0@gmail.com>
    Signed-off-by: David Seifert <soap@gentoo.org>

 media-video/vlc/vlc-3.0.12.1-r100.ebuild | 3 +++
 media-video/vlc/vlc-3.0.9999.ebuild      | 3 +++
 media-video/vlc/vlc-9999.ebuild          | 3 +++
 3 files changed, 9 insertions(+)