Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913160 - media-sound/musescore-4.2 version bump
Summary: media-sound/musescore-4.2 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Sound Team
URL: https://github.com/musescore/MuseScor...
Whiteboard:
Keywords: EBUILD, PullRequest
Depends on:
Blocks:
 
Reported: 2023-08-28 15:17 UTC by Ulf Dambacher
Modified: 2024-01-22 06:06 UTC (History)
6 users (show)

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


Attachments
musescore-4.1.1 proposed ebuild (musescore-4.1.1.ebuild,3.48 KB, text/plain)
2023-10-21 18:07 UTC, theofghy1289
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulf Dambacher 2023-08-28 15:17:31 UTC
musescore 4.1.1 is out 2023-july-26

musescore 4.0.2 ist latest in tree and has issues with libcrypto, libssl due to missing dependencies

a new ebuild can found in my portage overlay on github: 

https://github.com/ulda/gentoo-ulda/tree/master/media-sound/musescore



Reproducible: Always
Comment 1 Ulf Dambacher 2023-08-30 07:45:59 UTC
also find  musescore-4.0.2-r1 ebuild  there, it removes craspad_handler and therefore libcrypto/libssl dependencies.
Comment 2 Zoltan Puskas 2023-09-11 08:20:38 UTC
Thanks Ulf. Since your overlay does not seem to be in the `eselect repository list` I've made it available in the "sinustrom" overlay for the time being and I'm also testing the program.

Since media-sound/musescore-4.0.2 is still testing too, I think we can skip the -r1 there if this is merged into main portage tree as the new testing version.
Comment 3 deim 2023-10-19 11:42:45 UTC
Can't emerge:

FAILED: src/framework/fonts/qrc_fonts_Bravura.o /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts/qrc_fonts_Bravura.o 
cd /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts && /usr/lib64/qt5/bin/rcc --name fonts_Bravura --pass 2 --temp /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts/CMakeFiles/rcc_object_fonts_Bravura.dir/./qrc_fonts_Bravuratmp.cpp.o --output /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts/qrc_fonts_Bravura.o /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1/src/framework/fonts/fonts_Bravura.qrc
No data signature found
[109/730] cd /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts && /usr/lib64/qt5/bin/rcc --name fonts_Campania --pass 2 --temp /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts/CMakeFiles/rcc_object_fonts_Campania.dir/./qrc_fonts_Campaniatmp.cpp.o --output /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts/qrc_fonts_Campania.o /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1/src/framework/fonts/fonts_Campania.qrc
FAILED: src/framework/fonts/qrc_fonts_Campania.o /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts/qrc_fonts_Campania.o 
cd /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts && /usr/lib64/qt5/bin/rcc --name fonts_Campania --pass 2 --temp /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts/CMakeFiles/rcc_object_fonts_Campania.dir/./qrc_fonts_Campaniatmp.cpp.o --output /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts/qrc_fonts_Campania.o /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1/src/framework/fonts/fonts_Campania.qrc
No data signature found
[110/730] cd /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts && /usr/lib64/qt5/bin/rcc --name fonts_Edwin --pass 2 --temp /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts/CMakeFiles/rcc_object_fonts_Edwin.dir/./qrc_fonts_Edwintmp.cpp.o --output /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts/qrc_fonts_Edwin.o /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1/src/framework/fonts/fonts_Edwin.qrc
FAILED: src/framework/fonts/qrc_fonts_Edwin.o /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts/qrc_fonts_Edwin.o 
cd /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts && /usr/lib64/qt5/bin/rcc --name fonts_Edwin --pass 2 --temp /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts/CMakeFiles/rcc_object_fonts_Edwin.dir/./qrc_fonts_Edwintmp.cpp.o --output /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1_build/src/framework/fonts/qrc_fonts_Edwin.o /var/tmp/portage/media-sound/musescore-4.1.1-r1/work/MuseScore-4.1.1/src/framework/fonts/fonts_Edwin.qrc
No data signature found
Comment 4 deim 2023-10-19 12:24:22 UTC
OK, seem LTO has to be disables:
https://github.com/musescore/MuseScore/issues/15046
Comment 5 theofghy1289 2023-10-21 18:07:04 UTC
Created attachment 873195 [details]
musescore-4.1.1 proposed ebuild

I.. updated an ebuild to 4.1.1 before finding this bump proposal. First time updating an ebuild. Here are the differences between mine and Ulf's:

- added accessibility USE flag for braille and screen reader modules
- new dependency: dev-qt/qtdbus
- dev-cpp/gtest no longer required when test USE flag is off
Comment 6 theofghy1289 2023-10-21 22:03:26 UTC
Comment on attachment 873195 [details]
musescore-4.1.1 proposed ebuild

># Copyright 1999-2023 Gentoo Authors
># Distributed under the terms of the GNU General Public License v2
>
>EAPI=8
>
>#CMAKE_MAKEFILE_GENERATOR="emake"
>CHECKREQS_DISK_BUILD=3500M
>VIRTUALX_REQUIRED="test"
>inherit cmake qmake-utils xdg check-reqs virtualx
>
>if [[ ${PV} == "9999" ]]; then
>	inherit git-r3
>	EGIT_REPO_URI="https://github.com/musescore/MuseScore.git"
>else
>	SRC_URI="
>		https://github.com/musescore/MuseScore/archive/v${PV}.tar.gz -> ${P}.tar.gz
>	"
>	KEYWORDS="~amd64 ~arm64 ~x86"
>	S="${WORKDIR}/MuseScore-${PV}"
>fi
>
>DESCRIPTION="WYSIWYG Music Score Typesetter"
>HOMEPAGE="https://musescore.org/"
># MuseScore_General-*.tar.bz2 packaged from https://ftp.osuosl.org/pub/musescore/soundfont/MuseScore_General/
># It has to be repackaged because the files are not versioned, current version can be found in VERSION file there.
>SRC_URI+=" https://dev.gentoo.org/~fordfrog/distfiles/MuseScore_General-0.2.0.tar.bz2"
>
>LICENSE="GPL-2"
>SLOT="0"
>IUSE="test"
>RESTRICT="!test? ( test )"
>
>BDEPEND="
>	dev-qt/linguist-tools:5
>	virtual/pkgconfig
>"
>RDEPEND="
>	dev-libs/tinyxml2:=
>	dev-qt/designer:5
>	dev-qt/qtconcurrent:5
>	dev-qt/qtcore:5
>	dev-qt/qtdbus:5
>	dev-qt/qtdeclarative:5
>	dev-qt/qtgui:5
>	dev-qt/qthelp:5
>	dev-qt/qtnetwork:5
>	dev-qt/qtnetworkauth:5
>	dev-qt/qtopengl:5
>	dev-qt/qtprintsupport:5
>	dev-qt/qtquickcontrols:5
>	dev-qt/qtquickcontrols2:5
>	>=dev-qt/qtsingleapplication-2.6.1_p20171024[X]
>	dev-qt/qtsvg:5
>	dev-qt/qtx11extras:5
>	dev-qt/qtxml:5
>	dev-qt/qtxmlpatterns:5
>	>=media-libs/alsa-lib-1.0.0
>	media-libs/flac:=
>	>=media-libs/freetype-2.5.2
>	media-libs/libopusenc
>	media-libs/libsndfile
>	media-libs/opus
>	media-sound/lame
>	sys-libs/zlib:=
>"
>DEPEND="
>	${RDEPEND}
>
>	test? ( dev-cpp/gtest )
>"
>
>PATCHES=(
>	"${FILESDIR}/${P}-uncompressed-man-pages.patch"
>	"${FILESDIR}/${P}-unbundle-deps.patch"
>)
>
>src_unpack() {
>	if [[ ${PV} == "9999" ]]; then
>		git-r3_src_unpack
>		unpack ${A}
>	else
>		default
>	fi
>}
>
>src_prepare() {
>	cmake_src_prepare
>
>	# Move soundfonts to the correct directory
>	mv "${WORKDIR}"/sound/* "${S}"/share/sound/ || die "Failed to move soundfont files"
>
>	# Make sure we don't accidentally use bundled third party deps
>	# for which we want to use system packages instead.
>	rm -r thirdparty/{flac,freetype,googletest,lame,opus,opusenc} \
>		|| die "Failed to remove unused thirdparty directories"
>}
>
>src_configure() {
>	# bug #766111
>	export PATH="$(qt5_get_bindir):${PATH}"
>
>	local mycmakeargs=(
>		-DCMAKE_SKIP_RPATH=TRUE
>
>		-DMUSESCORE_BUILD_MODE=release
>		# Jack support has been dropped in 4.0.0,
>		# but its remnants are still in the build system and cause trouble.
>		# https://github.com/musescore/MuseScore/issues/12775
>		#
>		# 4.1.1 doesn't use jack at all in the build,
>		# but the MuseScore tree upstream does..
>		#-DMUE_ENABLE_AUDIO_JACK=OFF
>
>		# Future build option, not used in 4.1.1
>		#-DMUE_COMPILE_USE_SYSTEM_FREETYPE=ON
>
>		-DMUE_DOWNLOAD_SOUNDFONT=OFF
>		-DMUE_COMPILE_USE_CCACHE=OFF
>		-DMUE_BUILD_UNIT_TESTS="$(usex test)"
>		-DMUE_BUILD_CRASHPAD_CLIENT=OFF
>		#Build fails with unity (jumbo-build) off, fixed upstream
>		#-DMUE_COMPILE_USE_UNITY="$(usex jumbo-build)"
>		-DMUE_BUILD_UPDATE_MODULE=OFF
>	)
>	cmake_src_configure
>}
>
>src_compile() {
>	cd "${BUILD_DIR}" || die
>	cmake_build lrelease manpages
>	cmake_src_compile
>}
>
>src_test() {
>	virtx cmake_src_test
>}
>
>src_install() {
>	cmake_src_install
>
>	# Hack to not install bundled libraries like libogg
>	rm -rf "${ED}/usr/include" "${ED}/usr/$(get_libdir)" || die
>}
Comment 7 theofghy1289 2023-10-21 22:08:31 UTC
Apologies. Taking modules out of the build appears to break the app. I've edited out the accessibility USE flag, since it doesn't work. The other two changes I made are still good, plus the additional comments in the ebuild.

Additionally, I wanted to ask about the debug USE flag. Does it do anything if it's not used in the ebuild? I've asked on #gentoo-dev-help a couple times and gotten no response.
Comment 8 Xavier Miller 2023-11-05 11:09:46 UTC
Hi!,

I have segfault at startup

$ mscore 
12:09:07.298 | INFO  | main_thread | GlobalModule | onPreInit: log path: /home/xavier/.local/share/MuseScore/MuseScore4/logs/MuseScore_231105_120907.log
12:09:07.298 | INFO  | main_thread | GlobalModule | onPreInit: === Started MuseScore 4.1.1, build number  ===
12:09:07.299 | ERROR | main_thread | LanguagesService | setCurrentLanguage: Unsupported language code: "system" 
12:09:07.299 | WARN  | main_thread | IpcSocket  | connect: failed connect to server
12:09:07.299 | WARN  | main_thread | IpcSocket  | connect: failed connect to server
12:09:07.299 | INFO  | main_thread | IpcSocket  | connect: success connected to ipc server
12:09:07.299 | INFO  | 140632358815424 | IpcServer  | listen: id: "ad874e0a91d14b719562d843275c396a" 
12:09:07.355 | WARN  | main_thread | DiagnosticsModule | onInit: crash handling disabled
12:09:07.363 | ERROR | main_thread | MuseSamplerLibHandler | MuseSamplerLibHandler: Unable to open MuseSampler library, path: /home/xavier/.local/share/MuseSampler/lib/libMuseSamplerCoreLib.so
12:09:07.363 | ERROR | main_thread | MuseSamplerResolver | checkLibrary: Incompatible MuseSampler library; ignoring
12:09:07.363 | ERROR | main_thread | MuseSamplerLibHandler | MuseSamplerLibHandler: Unable to open MuseSampler library, path: libMuseSamplerCoreLib.so
12:09:07.363 | ERROR | main_thread | MuseSamplerResolver | checkLibrary: Incompatible MuseSampler library; ignoring
12:09:07.365 | WARN  | main_thread | Qt         | QIODevice::read (QFile, "/home/xavier/.local/share/MuseScore/MuseScore4/shortcuts.xml"): device not open
12:09:07.366 | WARN  | main_thread | Qt         | QIODevice::read (QFile, "/home/xavier/.local/share/MuseScore/MuseScore4/midi_mappings.xml"): device not open
12:09:07.375 | WARN  | main_thread | AbstractCloudService | readTokens: Could not find the tokens file: /home/xavier/.local/share/MuseScore/MuseScore4/musescorecom_cred.dat
12:09:07.375 | WARN  | main_thread | AbstractCloudService | readTokens: Could not find the tokens file: /home/xavier/.local/share/MuseScore/MuseScore4/audiocom_cred.dat
12:09:07.739 | ERROR | main_thread | PluginsConfiguration | updatePluginsConfiguration: [401] The file does not exist
Segmentation fault
Comment 9 Xavier Miller 2023-11-05 11:10:44 UTC
# emerge -pv musescore

These are the packages that would be merged, in order:

Calculating dependencies          ... done!              
Dependency resolution took 3.44 s (backtrack: 0/20).

[ebuild   R    ] media-sound/musescore-4.1.1::local  USE="-accessibility -test" 0 KiB
Comment 10 Miroslav Šulc gentoo-dev 2023-12-19 12:52:34 UTC
4.2 is out
Comment 11 Jason A. Donenfeld gentoo-dev 2024-01-20 05:45:38 UTC
I fixed the segfaults and cleaned up the ebuild, removing options that have been removed or that aren't actually supported by upstream (e.g. they crash or cause compilation issues).

The work is in: https://github.com/gentoo/gentoo/pull/34913

I'm happy to merge this myself if it looks good.
Comment 12 Larry the Git Cow gentoo-dev 2024-01-21 00:56:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=899041aa86b131e37fa497b3a5c17889ce9dbe67

commit 899041aa86b131e37fa497b3a5c17889ce9dbe67
Author:     Jason A. Donenfeld <zx2c4@gentoo.org>
AuthorDate: 2024-01-20 04:34:34 +0000
Commit:     Jason A. Donenfeld <zx2c4@gentoo.org>
CommitDate: 2024-01-21 00:55:58 +0000

    media-sound/musescore: add 4.2.0
    
    Closes: https://bugs.gentoo.org/913160
    Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>

 media-sound/musescore/Manifest                     |   1 +
 .../files/musescore-4.2.0-dynamic_cast-crash.patch |  11 ++
 .../files/musescore-4.2.0-missing-headers.patch    |  41 +++++++
 .../files/musescore-4.2.0-unbundle-deps.patch      | 119 ++++++++++++++++++
 .../musescore-4.2.0-uncompressed-man-pages.patch   |  29 +++++
 media-sound/musescore/metadata.xml                 |   1 +
 media-sound/musescore/musescore-4.2.0.ebuild       | 135 +++++++++++++++++++++
 7 files changed, 337 insertions(+)
Comment 13 Larry the Git Cow gentoo-dev 2024-01-22 06:06:47 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7abb83f9a0ce31daa1e7144b1df94215dbac8f06

commit 7abb83f9a0ce31daa1e7144b1df94215dbac8f06
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-01-22 06:05:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-22 06:06:34 +0000

    media-sound/musescore: sync live
    
    Bug: https://bugs.gentoo.org/913160
    Signed-off-by: Sam James <sam@gentoo.org>

 media-sound/musescore/musescore-9999.ebuild | 98 ++++++++++++++++-------------
 1 file changed, 53 insertions(+), 45 deletions(-)