Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 737606 - media-sound/milkytracker-1.02.00-r1 build fails (SDL2MAIN_LIBRARY not set)
Summary: media-sound/milkytracker-1.02.00-r1 build fails (SDL2MAIN_LIBRARY not set)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on: 736186
Blocks:
  Show dependency tree
 
Reported: 2020-08-17 09:23 UTC by Vladimir Vrzić
Modified: 2020-09-08 08:02 UTC (History)
1 user (show)

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


Attachments
Since we are building on Linux, SDL2main is not required, we can set SDL2MAIN_LIBRARY to an empty string (milkytracker-1.02.00-SDL2main.patch,482 bytes, patch)
2020-08-17 09:23 UTC, Vladimir Vrzić
Details | Diff
build log (milkytracker-build.log,14.56 KB, text/plain)
2020-08-18 10:44 UTC, Vladimir Vrzić
Details
emerge --info output (emerge.info,6.80 KB, text/plain)
2020-08-18 10:44 UTC, Vladimir Vrzić
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Vrzić 2020-08-17 09:23:16 UTC
Created attachment 655062 [details, diff]
Since we are building on Linux, SDL2main is not required, we can set SDL2MAIN_LIBRARY to an empty string

Build fails with the following message:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
SDL2MAIN_LIBRARY
    linked by target "milkyplay" in directory /var/tmp/portage/media-sound/milkytracker-1.02.00-r1/work/MilkyTracker-1.02.00/src/milkyplay
    linked by target "osinterface" in directory /var/tmp/portage/media-sound/milkytracker-1.02.00-r1/work/MilkyTracker-1.02.00/src/ppui/osinterface

Solution: Since we are building on Linux, SDL2main is not required. We can set SDL2MAIN_LIBRARY to an empty string. Patch is attached.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-08-18 07:07:33 UTC
It would help to see the full build.log and emerge --info.
Comment 2 Vladimir Vrzić 2020-08-18 10:44:08 UTC
Created attachment 655238 [details]
build log

media-sound/milkytracker-1.02.00-r1 failed build log
Comment 3 Vladimir Vrzić 2020-08-18 10:44:41 UTC
Created attachment 655240 [details]
emerge --info output
Comment 4 Vladimir Vrzić 2020-08-18 10:45:28 UTC
Sure thing. Attached.
Comment 5 Miroslav Šulc gentoo-dev 2020-08-20 16:11:03 UTC
works fine for me with media-libs/libsdl2-2.0.12-r1:0 so is it really necessary to drop it from milkytracker? once 2.0.12-r1 is stabilized, the old will be dropped and the issue should be resolved. also, is there any reason for using libsdl2 2.0.10 when you are on amd64 and it's already stable there?

# equery meta libsdl2
 * media-libs/libsdl2 [gentoo]
Maintainer:  games@gentoo.org (Gentoo Games Project)
Upstream:    None specified
Homepage:    https://www.libsdl.org/
Location:    /usr/portage/media-libs/libsdl2
Keywords:    2.0.10-r1:0: arm64 ppc ppc64
Keywords:    2.0.12-r1:0: amd64 arm sparc x86 ~alpha ~arm64 ~hppa ~ia64 ~ppc ~ppc64
License:     ZLIB
Comment 6 Vladimir Vrzić 2020-08-20 16:33:57 UTC
I am using media-libs/libsdl2-2.0.12-r1. Not sure why CMake says it detected "2.0.10".
Comment 7 Miroslav Šulc gentoo-dev 2020-08-20 16:36:41 UTC
(In reply to Vladimir Vrzić from comment #6)
> I am using media-libs/libsdl2-2.0.12-r1. Not sure why CMake says it detected
> "2.0.10".

could you please re-emerge libsdl2 and then milkytracker?
Comment 8 Vladimir Vrzić 2020-08-20 16:42:27 UTC
Ah, now I see why. I posted this bug report and patch on 2020-08-17. At that time the stable version on amd64 was media-libs/libsdl2-2.0.10-r1.

media-libs/libsdl2-2.0.12-r1 was marked stable on amd64 a day later, on 2020-08-18 -- https://packages.gentoo.org/packages/media-libs/libsdl2/changelog

Today (2020-08-20), with media-libs/libsdl2-2.0.12-r1 installed, media-sound/milkytracker-1.02.00-r1 builds cleanly without the patch.
Comment 9 Miroslav Šulc gentoo-dev 2020-08-20 16:45:48 UTC
thank you for reporting this back. so the issue is related only to libsdl2-2.0.10 and once 2.0.12-r1 is stabilized on the remaining arches, this issue should be resolved. i will keep it open till then.
Comment 10 Vladimir Vrzić 2020-08-20 16:51:12 UTC
Sounds like a plan. Thanks for checking on your end with the new version of libsdl2!
Comment 11 Andreas Sturmlechner gentoo-dev 2020-08-22 14:18:03 UTC
Actually since media-sound/milkytracker is not stable you can already declare this as fixed by 2.0.12-r1.
Comment 12 Miroslav Šulc gentoo-dev 2020-08-22 16:39:44 UTC
(In reply to Andreas Sturmlechner from comment #11)
> Actually since media-sound/milkytracker is not stable you can already
> declare this as fixed by 2.0.12-r1.

i'm keeping it because there is still a chance somenone might to compile it against libsdl-2.0.10-r1 which is still in the tree.
Comment 13 Larry the Git Cow gentoo-dev 2020-09-08 08:02:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=986dc0cd77afb7ea01afee0e32d80afa4fe4719a

commit 986dc0cd77afb7ea01afee0e32d80afa4fe4719a
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2020-09-08 08:02:28 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2020-09-08 08:02:28 +0000

    media-libs/libsdl2: removed obsolete 2.0.10-r1
    
    Closes: https://bugs.gentoo.org/737606
    Package-Manager: Portage-3.0.6, Repoman-3.0.1
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 media-libs/libsdl2/Manifest                        |   1 -
 .../libsdl2/files/libsdl2-2.0.10-static-libs.patch |  44 -----
 media-libs/libsdl2/libsdl2-2.0.10-r1.ebuild        | 189 ---------------------
 3 files changed, 234 deletions(-)