Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 713442

Summary: media-sound/mpfc-1.3.8.1-r2 : make[2]: *** No rule to make target ../config.h, needed by bindtextdom.o. Stop.
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: CONFIRMED ---    
Severity: normal CC: sound
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
media-sound:mpfc-1.3.8.1-r2:20200319-095843.log
temp.tbz2
mpfc-1.3.8.1-r3.ebuild
mpfc-1.3.8.1-fix-gettext-musl.patch
mpfc-1.3.8.1-remove-unused-header-musl.patch

Description Toralf Förster gentoo-dev 2020-03-19 11:22:44 UTC
Making all in intl
make[2]: Entering directory /var/tmp/portage/media-sound/mpfc-1.3.8.1-r2/work/mpfc-1.3.8.1/intl
make[2]: *** No rule to make target ../config.h, needed by bindtextdom.o.  Stop.
make[2]: Leaving directory /var/tmp/portage/media-sound/mpfc-1.3.8.1-r2/work/mpfc-1.3.8.1/intl
make[1]: *** [Makefile:554: all-recursive] Error 1
make[1]: Leaving directory /var/tmp/portage/media-sound/mpfc-1.3.8.1-r2/work/mpfc-1.3.8.1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200316-165821

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.41.1 *

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 18 Mar 2020 13:38:27 +0000
emerge -qpvO media-sound/mpfc
[ebuild  N    ] media-sound/mpfc-1.3.8.1-r2  USE="nls -alsa -cdda -flac -gpm -mad -oss -static-libs -vorbis -wav"
Comment 1 Toralf Förster gentoo-dev 2020-03-19 11:22:46 UTC
Created attachment 622586 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-19 11:22:49 UTC
Created attachment 622588 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-19 11:22:52 UTC
Created attachment 622590 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-19 11:22:55 UTC
Created attachment 622592 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-19 11:22:58 UTC
Created attachment 622594 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-19 11:23:01 UTC
Created attachment 622596 [details]
media-sound:mpfc-1.3.8.1-r2:20200319-095843.log
Comment 7 Toralf Förster gentoo-dev 2020-03-19 11:23:05 UTC
Created attachment 622598 [details]
temp.tbz2
Comment 8 tonemgub 2020-10-12 16:50:30 UTC
Created attachment 664891 [details]
mpfc-1.3.8.1-r3.ebuild

This error occurs because prior to gettext 0.19.8 it did not work with musl. The fix is to bump the gettext version via modifying configure.ac as follows:

-AM_GNU_GETTEXT
-AM_GNU_GETTEXT_VERSION(0.16.1)
+AM_GNU_GETTEXT([external])
+AM_GNU_GETTEXT_VERSION([0.21])


Then regenerating everything with "gettextsize -f".

Another patch is also needed to avoid error.h. The header is unused in release builds and prevents the software from building in musl.

Modified ebuild attached, patches forthcoming.
Comment 9 tonemgub 2020-10-12 16:51:17 UTC
Created attachment 664894 [details, diff]
mpfc-1.3.8.1-fix-gettext-musl.patch
Comment 10 tonemgub 2020-10-12 16:51:42 UTC
Created attachment 664897 [details, diff]
mpfc-1.3.8.1-remove-unused-header-musl.patch