Summary: | media-sound/musescore-2.0.2 version bump request | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | lasconic <lasconic> |
Component: | Current packages | Assignee: | Gentoo Sound Team <sound> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alex_y_xu, altrent2003, arturwrona91, DBautell, eugenecormier, karl.j.linden, lumbrius, manuel, proxy-maint |
Priority: | Normal | Keywords: | EBUILD |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 470724, 529156 | ||
Attachments: |
musescore-2.0.0.ebuild ** not working **
New ebuild musescore-2.0 fails Fully working new musescore-2.0.ebuild ebuild correction for missing lame bdep musescore-2.0.1.ebuild musescore-2.0.2.ebuild 0001-media-sound-musescore-2.0.2-bump.patch |
Description
lasconic
2015-03-25 11:47:50 UTC
If you need any help from upstream, IRC channel #musescore on freenode.net Created attachment 400504 [details]
musescore-2.0.0.ebuild ** not working **
I was playing with this for a few hours today and took an old ebuild (musescore-1.3) and started messing with it to get musescore to build.
As it stands, this does not work!!! It fails complaining about -fPIC not being enabled. I can tell you, if you enter the failed work directory and type make, it does compile and finish fine. Also if you download the source and compile yourself after having this ebuild install your dependencies, it does work.
Now we just need a dev to clean up my newb mess and fix the Position-Independent Code, and we should be rocking (I apologize in advanced for the ebuild)
actually that last error code is gone away since I did a world update (I noticed qtcore getting rebuilt for an added icu use flag). Now it fails with the following: /var/tmp/portage/media-sound/musescore-2.0.0/work/MuseScore-2.0.0/manual/genManual.cpp: In function 'void copyAssets(QString&, QString&)': /var/tmp/portage/media-sound/musescore-2.0.0/work/MuseScore-2.0.0/manual/genManual.cpp:354:41: error: in C++98 'files' must be initialized by constructor, not by '{...}' QStringList files = {"mscore.png" }; ^ /var/tmp/portage/media-sound/musescore-2.0.0/work/MuseScore-2.0.0/manual/genManual.cpp:354:41: error: converting to 'QStringList' from initializer list would use explicit constructor 'QStringList::QStringList(const QString&)' /var/tmp/portage/media-sound/musescore-2.0.0/work/MuseScore-2.0.0/manual/genManual.cpp:357:24: error: range-based 'for' loops are not allowed in C++98 mode for (QString f : files) { @Eugene it seems your compiler is not recent enough or it doesn't get the C++11 command line flag from CMake. (In reply to lasconic from comment #4) > @Eugene it seems your compiler is not recent enough or it doesn't get the > C++11 command line flag from CMake. I'm using gcc 4.8.4... it has it, maybe the source needs patching? Created attachment 400816 [details]
New ebuild
This is modified ebuild. To install you need to put dev-qt/* ~amd64 or dev-qt/* ~x86 to /etc/portage/package.accept_keywords. It does not work with stable qt4 because packages in version 4.8.5 are blocking 5.4.1 depending to qtchooser.
I have installed and it works very well.
Artur, are you sure you upped the 'whole' file? seems to be missing some important stuff (and the header still references musescore-1.3) *** Bug 545888 has been marked as a duplicate of this bug. *** https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/86 (from Yuri Tsimbaloff in duplicate bug 545888) Eugene. I've forgot change references in header. Is based on ebuild to 1.3 but I've removed additional operations and changed links to latest tarball. The new ebuild compiles for me. It also seems to work (haven't tested thoroughly) flawlessly. Created attachment 401770 [details]
musescore-2.0 fails
Here's what I'm getting when I download the working ebuild above.... it fails
Ok so fixed my dep problems by adding the following atoms to the RDEPEND: dev-qt/qtwebkit:5 dev-qt/linguist-tools dev-qt/qtxmlpatterns:5 dev-qt/qtprintsupport dev-qt/qtconcurrent dev-qt/qtdeclarative:5 Now I'm getting it compiled properly, but an access violation at the end, it's trying to install directly to /usr/local/share/applications Error: [100%] Built target pluginDocumentation make[2]: Leaving directory '/var/tmp/portage/media-sound/musescore-2.0/work/MuseScore-2.0.0/build.release' Installing the project stripped... -- Install configuration: "RELEASE" CMake Error at cmake_install.cmake:36 (FILE): file cannot create directory: /usr/local/share/applications. Maybe need administrative privileges. Makefile:87: recipe for target 'install/strip' failed make[1]: *** [install/strip] Error 1 make[1]: Leaving directory '/var/tmp/portage/media-sound/musescore-2.0/work/MuseScore-2.0.0/build.release' Makefile:92: recipe for target 'install' failed make: *** [install] Error 2 * ERROR: media-sound/musescore-2.0::Eugenes-Overlay failed (install phase): * emake failed * * If you need support, post the output of `emerge --info '=media-sound/musescore-2.0::Eugenes-Overlay'`, * the complete build log and the output of `emerge -pqv '=media-sound/musescore-2.0::Eugenes-Overlay'`. * The complete build log is located at '/var/tmp/portage/media-sound/musescore-2.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-sound/musescore-2.0/temp/environment'. * Working directory: '/var/tmp/portage/media-sound/musescore-2.0/work/MuseScore-2.0.0' * S: '/var/tmp/portage/media-sound/musescore-2.0/work/MuseScore-2.0.0' (null)*(null) --------------------------- ACCESS VIOLATION SUMMARY --------------------------- (null)*(null) LOG FILE: "/var/log/sandbox/sandbox-16223.log" (null)*(null) VERSION 1.0 FORMAT: F - Function called FORMAT: S - Access Status FORMAT: P - Path as passed to function FORMAT: A - Absolute Path (not canonical) FORMAT: R - Canonical Path FORMAT: C - Command Line F: mkdir S: deny P: /usr/local/share A: /usr/local/share R: /usr/local/share C: /usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake (null)*(null) -------------------------------------------------------------------------------- * QA Notice: make jobserver unavailable: * * make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. * make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. * make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. fixed, it works, I had added some code to the ebuild, but when I return it to the above, it works perfectly (as long as my RDEP adds are there Created attachment 401828 [details]
Fully working new musescore-2.0.ebuild
Ok so this is a fully working new ebuild, how do we get this added to the tree?
Created attachment 401986 [details]
ebuild correction for missing lame bdep
This ebuild adds the lame buildtime dep
Here's a link to a patch by the fedora guys to remove mp3/lame functionality at build time in case someone wants a 'mp3' use flag: http://paste.fedoraproject.org/215454/42997214/ and a bug filed at the musescore project: https://musescore.org/en/node/57736 *** Bug 552716 has been marked as a duplicate of this bug. *** Created attachment 405950 [details]
musescore-2.0.1.ebuild
I've built successfully the 2.0.1 ebuild, however it refuses to start with the below error: # mscore mscore: error while loading shared libraries: libQt5Declarative.so.5: cannot open shared object file: No such file or directory I do have qt5Declarative installed: ~ # eix qtdecl [I] dev-qt/qtdeclarative Available versions: (4) 4.8.5 4.8.6-r1 ~4.8.7 (5) (~)5.4.2^t {+accessibility aqua debug +exceptions gles2 localstorage pch qt3support test webkit +widgets xml ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"} Installed versions: 5.4.2(5)^t(08:59:59 PM 07/26/2015)(widgets xml -debug -gles2 -localstorage -test) Homepage: https://www.qt.io/ Description: The QML and Quick modules for the Qt5 framework But I don't see the library installed: ~ # ls /usr/lib/libQt5Dec* ls: cannot access /usr/lib/libQt5Dec*: No such file or directory Any ideas what's going on? Thanks. (In reply to altrent from comment #20) > I've built successfully the 2.0.1 ebuild, however it refuses to start with > the below error: > # mscore > mscore: error while loading shared libraries: libQt5Declarative.so.5: cannot > open shared object file: No such file or directory > ~ # ls /usr/lib/libQt5Dec* > ls: cannot access /usr/lib/libQt5Dec*: No such file or directory I don't have that file either, but musescore starts correctly. (Version 2.0.0) Have you asked in the IRC channel? Thanks for the reply Manuel. And I apologize for the noise.. it's my mistake. I had an old copy of mscore in /usr/local/bin that was taking precedence. Once I deleted it, everything works like a charm! Current ebuild compiles without error for version 2.0.2 from local overlay but fails in install phase with CMake Error at cmake_install.cmake:40 (file): file INSTALL cannot find "/var/tmp/portage/media-sound/musescore-2.0.2/work/musescore-2.0.2_build/mscore.1.gz". As qt-5 was marked stable, can this ebuild be added in tree soon? Created attachment 410278 [details]
musescore-2.0.2.ebuild
last 2.0.2 ebuild compiles and program works normally I successfully built musescore-2.0.2 using the attached ebuild in a local overlay. The Gentoo stable net-print/cups-filters package led to a dependency issue with app-text/texlive-2014 (a dependency of musescore) whereby both packages wanted a different version of app-text/poppler. Accepting ~amd64 to get net-print/cups-filters-1.0.74 solved the problem. I already had this dependency issue as part of kde4apps to kde5apps migration and just hadn't dealt with it prior to installing this ebuild; few people should experience my issue. After this dependency issue was resolved, the build worked perfectly and the package appears to be working properly. Please add this to tree, as ~amd64 if nothing else. jack and lame in DEPEND but not RDEPEND? Does this really depend on dev-qt/designer? (In reply to Diogo Pereira from comment #27) > jack and lame in DEPEND but not RDEPEND? yes > Does this really depend on dev-qt/designer? not sure at this point, but I carefully checked all deps when I submitted. the situation may have changed since then. I tried the ebuild from comment 24 and can confirm that MuseScore builds fine and it seems to work properly as well. Then I modified the ebuild to experiment with the MuseScore build options. My findings are: • dev-qt/designer is not necessary. The build logs contains a warning but MuseScore builds and works. • The ebuild builds fine if I disable the Sountfont3 option, but it segfaults when started. I think this would be interesting for upstream. Created attachment 418028 [details, diff]
0001-media-sound-musescore-2.0.2-bump.patch
removed designer dep, added postinst msg.
(In reply to Alex Xu (Hello71) from comment #30) > Created attachment 418028 [details, diff] [details, diff] > 0001-media-sound-musescore-2.0.2-bump.patch > > removed designer dep, added postinst msg. Thanks for this ebuild Alex, it works for me. Going to submit this via Github pull request. 8+ months no bump. I think we can call sound team definitively dead. (In reply to Alex Xu (Hello71) from comment #32) > 8+ months no bump. I think we can call sound team definitively dead. I don't know about dead, but, well ... Hello71 if you wish to state you would like to proxy- maintain this I can add you and bump it. I will merge your PR. Merged. SO let me get this straight. This was merged via a pull request skipping past bugzilla, with a patch by a user, not a dev, who has no real connection to the sound herd or project, despite being offered the opportunity to be set as a proxy maintainer. The patch was reviewed by the committing dev. What happens with the next bug or bump? |