Hi! Here's a simple ebuild I've put together (my first attempt at one) which installs MusicMan, a plugin for Konqueror for managing ID3 tags and filenames of MP3 files (see http://musicman.sourceforge.net/) I've read the guides on contributing ebuilds and common mistakes in ebuilds and I don't think there are any obvious errors in it. There's a mysterious QT issue in that I get access violation messages if I compile it with the sandbox; using FEATURES="-sandbox" 'solves' the problem. Judging from the forums, this problem has occurred with other packages as well. I don't know the best portage category for it, I thought maybe media-sound was the most appropriate. Regards Daniel Rendall
Created attachment 31008 [details] musicman-0.11.ebuild
maybe inherit kde at the top will remove access violations
Created attachment 31027 [details] musicman-0.11.ebuild (revised to inherit kde) Revised version of the ebuild which inherits kde (thus removing the sandbox issue). After some experimentation I determined that it should use the inherited 'src_compile' function but needs to define the 'src_install' function otherwise things end up in the wrong place because the /usr prefix is missing. I think this now emerges cleanly.
Created attachment 31867 [details] musicman-0.11.ebuild (another one) Here is the ebuild I have been using. I have had no problems with it.
Hi Daniel, your ebuild looks good; I've a few remarks: - as written in the COPYING file and musicman.lsm this application appears to be released under the GPL-1 license, not LGPL-2.1 - can you please check with the author to be 100% sure? - I successfully tested it om my gcc-3.3 machine. However, if I try to compile using the new gcc-3.4 it fails: /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -pipe -O2 -fno-exceptions -fno-check-new -c -o musicmanconfig.lo `test -f 'musicmanconfig.cpp' || echo './'`musicmanconfig.cpp cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ mmconfig.cpp:37: error: extra `;' make[3]: *** [mmconfig.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/musicman-0.11/work/musicman/musicman/kcmmusicman' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/musicman-0.11/work/musicman/musicman' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/musicman-0.11/work/musicman' make: *** [all] Error 2 !!! ERROR: media-sound/musicman-0.11 failed. !!! Function kde_src_compile, Line 129, Exitcode 2 !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, NOT this status message.
Added to portage CVS. Thanks!