Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 814044 - games-emulation/dosbox-staging-0.77.1[mt-32] - meson.build:225:2: ERROR: Automatic wrap-based subproject downloading is disabled
Summary: games-emulation/dosbox-staging-0.77.1[mt-32] - meson.build:225:2: ERROR: Auto...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-20 14:40 UTC by ernsteiswuerfel
Modified: 2021-10-03 16:59 UTC (History)
1 user (show)

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


Attachments
build.log (dosbox-staging-0.77.1:20210920-143630.log,5.87 KB, text/plain)
2021-09-20 14:40 UTC, ernsteiswuerfel
Details
meson-log.txt (meson-log.txt,40.68 KB, text/plain)
2021-09-20 14:40 UTC, ernsteiswuerfel
Details
emerge --info (file_814044.txt,6.82 KB, text/plain)
2021-09-20 14:41 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2021-09-20 14:40:22 UTC
Created attachment 740298 [details]
build.log

Fails to build with USE='mt-32' despite media-libs/munt-mt32emu-2.5.3 being installed.

[...]
Found CMake: /usr/bin/cmake (3.20.5)
Run-time dependency mt32emu found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency mt32emu
Message: You can disable this dependency with: -Duse_mt32emu=false

meson.build:225:2: ERROR: Automatic wrap-based subproject downloading is disabled

A full log can be found at /var/tmp/portage/games-emulation/dosbox-staging-0.77.1/work/dosbox-staging-0.77.1-build/meson-logs/meson-log.txt
 * ERROR: games-emulation/dosbox-staging-0.77.1::gentoo failed (configure phase):
Comment 1 ernsteiswuerfel archtester 2021-09-20 14:40:54 UTC
Created attachment 740301 [details]
meson-log.txt
Comment 2 ernsteiswuerfel archtester 2021-09-20 14:41:23 UTC
Created attachment 740304 [details]
emerge --info
Comment 3 Bernard Cafarelli gentoo-dev 2021-09-23 19:45:00 UTC
It seems it is not finding mt32emu pkgconfig file:
Called `/usr/bin/x86_64-pc-linux-gnu-pkg-config --modversion mt32emu` -> 1


Strange as locally this passes for me (also amd64):
# /usr/bin/x86_64-pc-linux-gnu-pkg-config --modversion mt32emu
2.5.3

Do you have /usr/lib64/pkgconfig/mt32emu.pc file? If yes what is the content?
Comment 4 ernsteiswuerfel archtester 2021-09-26 20:37:58 UTC
(In reply to Bernard Cafarelli from comment #3)
> Strange as locally this passes for me (also amd64):
> # /usr/bin/x86_64-pc-linux-gnu-pkg-config --modversion mt32emu
> 2.5.3
> 
> Do you have /usr/lib64/pkgconfig/mt32emu.pc file? If yes what is the content?
This file is on my system but it gets installed in /usr/lib/ instead of /usr/lib64/.

 # cat /usr/lib/pkgconfig/mt32emu.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}//usr/lib64
includedir=${prefix}/include

Name: libmt32emu
Description: C/C++ library to emulate (approximately) the Roland MT-32, CM-32L and LAPC-I synthesiser modules
URL: http://munt.sourceforge.net/
Version: 2.5.3
Requires.private: 
Libs: -L${libdir} -lmt32emu
Cflags: -I${includedir}


 # eselect profile list
Available profile symlink targets:
[...]
  [7]   default/linux/amd64/17.1/desktop/gnome/systemd (stable) *
Comment 5 Bernard Cafarelli gentoo-dev 2021-09-29 20:46:31 UTC
(In reply to ernsteiswuerfel from comment #4)
> This file is on my system but it gets installed in /usr/lib/ instead of
> /usr/lib64/.
> 
>  # cat /usr/lib/pkgconfig/mt32emu.pc
> prefix=/usr
> exec_prefix=${prefix}
> libdir=${exec_prefix}//usr/lib64
> includedir=${prefix}/include

Oh interesting, I have this too in fact! The file in /usr/lib64 comes from a personal leftover(installing from full munt tarball correctly places the file in lib64).

Adding chewi as it should be fixed in media-libs/munt-mt32emu, looks like we need:
-Dlibmt32emu_PKGCONFIG_INSTALL_PREFIX="${EPREFIX}/usr/$(get_libdir)"

?
Comment 6 Bernard Cafarelli gentoo-dev 2021-09-29 20:47:59 UTC
And really adding chewi this time (see previous message)
Comment 7 Larry the Git Cow gentoo-dev 2021-10-02 12:26:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c86f2842cb6b2030398bb2832d739f326a14d6d

commit 1c86f2842cb6b2030398bb2832d739f326a14d6d
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2021-10-02 12:25:21 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2021-10-02 12:25:21 +0000

    media-libs/munt-mt32emu: Fix pkg-config file install location
    
    Closes: https://bugs.gentoo.org/814044
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 .../{munt-mt32emu-2.5.3.ebuild => munt-mt32emu-2.5.3-r1.ebuild}      | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Comment 8 ernsteiswuerfel archtester 2021-10-03 16:59:39 UTC
(In reply to Larry the Git Cow from comment #7)
> The bug has been closed via the following commit(s):
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=1c86f2842cb6b2030398bb2832d739f326a14d6d
Thanks! Now dosbox-staging builds fine with USE='mt-32'.