From the webpage: The cdcat is graphical (QT based) multiplatform (Linux/Windows) catalog program which scans the directories/drives you want and memoryze the filesystem (including the tags of mp3's) and store it in a small file. The database is stored in a gzipped XML format, so you can hack it, or use it if necessary :-) Cdcat can store the content of some specified files up to a size limit if you want. (for example: *.nfo) Features: - Searching with regex or wildcards in file names/comments/tags/etc... - Read mp3 tags (if you enable it) - Autoload database on startup - Can mount/umount/eject the cd-drive on Linux - Read file content from the specified files (e.g: *.nfo) - Platform indepentent Gzipped XML format. - Import/Export functions for CSV/XML-gtktalog/HTML - Possibility to add comment for files or directories. This is a really good app, and compared with gtktalog, is much faster. Thanks! Reproducible: Always Steps to Reproduce: 1. 2. 3.
well after some reading here is my first complete ebuild. I've used SLOT=1, since there are one other app in the same category with the same name. Another issue (or not) is that this installs in /usr/local instead of of /usr anyway I appreciate comments, so I can improve my ebuilds skills...
Created attachment 32334 [details] the ebuild here is the ebuild...
the FEATURES=-sandbox is a workaround to prevent ACCESS VIOLATIONs, following a tipo on gentoo foruns. This was tested only on X86 and without problems...
couple of things -- instead of FEATURES=-sandbox, please figure out why those things are violating the sandbox and redirect them accordingly (in the extreme case, you'll need a Makefile patch, but I doubt you'll have to resort to this). Have you tried, for example: make DESTDIR=${D} install || die ? Also, what exactly do you mean by "there is another app with the same name"? Do you mean that there is another application in portage which installs the same library or the same binary name?
First of all thanks for your feedback.About the other app it has the same binary name like you can see: qpkg -l cdcat app-misc/cdcat-0.3 * CONTENTS: /var /var/lib /var/lib/cdcat /usr /usr/bin /usr/bin/cdcat /usr/share /usr/share/man /usr/share/man/man1 /usr/share/man/man1/cdcat.1.gz I haven't tried make DESTDIR=${D} install || die... althout I will try it as soon as possible. I'm not a ebuild pro and it's hard to get help on ebuild development on irc...
with make DESTDIR=${D} install || die the access violation happens too... About patch the Makefile, I have no ideia what I need to do. Anyway if it helps here is the summary: --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-app-misc_-_cdcat-0.97-9360.log" open_wr: /usr/qt/3/etc/settings/.qtrc.lock open_wr: /usr/qt/3/etc/settings/.qtrc.lock open_wr: /usr/qt/3/etc/settings/.qt_plugins_3.3rc.lock --------------------------------------------------------------------------------
Paulo, You need to add this line before make install: addwrite ${QTDIR}/etc/settings
I have tried your tip, Patrick, but unfortunatly without sucess... it looks like the only way to get this working is using -sandbox in FEATURES. Let's see if the dev's can do a better job...
with a "new" ebuild I have this errors: >>> Install cdcat-0.98 into /var/tmp/portage/cdcat-0.98/image/ category app-misc cp -f "cdcat" "/usr/bin/cdcat" ACCESS DENIED open_wr: /usr/bin/cdcat cp: cannot create regular file `/usr/bin/cdcat': Permission denied make: [install_target] Error 1 (ignored) strip "/usr/bin/cdcat" strip: '/usr/bin/cdcat': No such file ACCESS DENIED mkdir: /usr/share/cdcat mkdir: cannot create directory `/usr/share/cdcat': Permission denied make: *** [install_translations] Error 1 !!! ERROR: app-misc/cdcat-0.98 failed. !!! Function einstall, Line 385, Exitcode 2 !!! einstall failed --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-app-misc_-_cdcat-0.98-8376.log" open_wr: /usr/bin/cdcat mkdir: /usr/share/cdcat -------------------------------------------------------------------------------- There are no such file or dir. I will attach the ebuild as well as the patch I've done for install dirs.
Created attachment 40736 [details] the new ebuild
Created attachment 40737 [details, diff] The patch this is the patch
I have now a ebuild that works nice with the last version 0.99 It has some dirty tricks (addwrite "/usr/bin" and addwrite "/usr/share") but it installs and runs fine on my machine. you will need the patch that I've posted before... it applies fine to current version. Test, and please provide one solution, if you find my dirty tricks too dirty :)
Created attachment 44044 [details] cdcat-0.99.ebuild here is the new ebuild...
Hi! the 1.0 version is out... although I give up on trying to get the right ebuild... If gentoo dev's can make one, I would appreciate, since I don't know any other app that can do the same. now I have a manual install in my /usr/local until I get an ebuild. Sorry for giving up and I hope anybody will take this app to portage.
Created attachment 69640 [details] updated ebuild for 1.01 version this ebuild don't need the patch anymore since I handle it with sed :)
Created attachment 69646 [details] cdcat-1.01.ebuild this new ebuild has now a menu entry :) I will wait now for some test report.
(In reply to comment #16) > Created an attachment (id=69646) [edit] > cdcat-1.01.ebuild > > this new ebuild has now a menu entry :) > I will wait now for some test report. I had been using it on amd64 for quite a time so now I tried your ebuild: it builds and works, so an ~amd64 flag may be added. The name collision is a bit frustrating - but I guess the cleanest solution is to keep using the cdcat name.
Hi! I can be the mantainner of this package. What I need to do?
- set SLOT="0", if this application interferes with another one they need to go in different categories or have a different package name. Possibly they also need to block each other when instaling the same binary for example - GPL is not a valid license, have a look at /usr/portage/licenses - You don't need to have qt in DEPEND, but later calling need-qt - calling qmake calls Qt 4 qmake, call ${QTDIR}/qmake instead
What about renaming this package to hypers-cdcat because of app-admin/cdcat?
Created attachment 79811 [details] the revised ebuild this is the revised ebuild.
*** Bug 123205 has been marked as a duplicate of this bug. ***
(In reply to comment #21) > Created an attachment (id=79811) [edit] > the revised ebuild > > this is the revised ebuild. Will it enter in portage? I can't find it.
[ebuild N ] app-misc/hypers-cdcat-1.01 USE="nls" 0 kB [1] Total size of downloads: 0 kB Portage overlays: [1] /usr/local/portage [2] /usr/local/xgl-coffee [3] /usr/portage/local/layman/flameeyes-overlay Would you like to merge these packages? [Yes/No] >>> Emerging (1 of 1) app-misc/hypers-cdcat-1.01 to / >>> checking ebuild checksums ;-) >>> checking auxfile checksums ;-) >>> checking miscfile checksums ;-) >>> checking cdcat-1.01.tar.bz2 ;-) >>> Unpacking source... >>> Unpacking cdcat-1.01.tar.bz2 to /var/tmp/portage/hypers-cdcat-1.01/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/hypers-cdcat-1.01/work/CdCat-1.01/src ... /usr/qt/3/bin/uic help.ui -o help.h i686-pc-linux-gnu-g++ -c -pipe -Wall -W -O2 -march=athlon -pipe -fno-strict-aliasing -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/qt/3/include -Imoc_files/ -o obj_files/adddialog.o adddialog.cpp i686-pc-linux-gnu-g++ -c -pipe -Wall -W -O2 -march=athlon -pipe -fno-strict-aliasing -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/qt/3/include -Imoc_files/ -o obj_files/cdcat.o cdcat.cpp adddialog.cpp:382: warning: unused parameter 'e' i686-pc-linux-gnu-g++ -c -pipe -Wall -W -O2 -march=athlon -pipe -fno-strict-aliasing -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/qt/3/include -Imoc_files/ -o obj_files/commwidget.o commwidget.cpp i686-pc-linux-gnu-g++ -c -pipe -Wall -W -O2 -march=athlon -pipe -fno-strict-aliasing -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/qt/3/include -Imoc_files/ -o obj_files/config.o config.cpp commwidget.cpp:44: warning: unused parameter 'e' commwidget.cpp:49: warning: unused parameter 'e' commwidget.cpp:82: warning: unused parameter 'e' commwidget.cpp:87: warning: unused parameter 'e' commwidget.cpp:110: warning: unused parameter 'me' commwidget.cpp:117: warning: unused parameter 'pe' i686-pc-linux-gnu-g++ -c -pipe -Wall -W -O2 -march=athlon -pipe -fno-strict-aliasing -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/qt/3/include -Imoc_files/ -o obj_files/dbase.o dbase.cpp i686-pc-linux-gnu-g++ -c -pipe -Wall -W -O2 -march=athlon -pipe -fno-strict-aliasing -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/qt/3/include -Imoc_files/ -o obj_files/dirview.o dirview.cpp i686-pc-linux-gnu-g++ -c -pipe -Wall -W -O2 -march=athlon -pipe -fno-strict-aliasing -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/qt/3/include -Imoc_files/ -o obj_files/find.o find.cpp i686-pc-linux-gnu-g++ -c -pipe -Wall -W -O2 -march=athlon -pipe -fno-strict-aliasing -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/qt/3/include -Imoc_files/ -o obj_files/guibase.o guibase.cpp import.h:69: error: extra qualification 'importGtktalogCsv::' on member 'importGtktalogCsv' make: *** [obj_files/guibase.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: app-misc/hypers-cdcat-1.01 failed. Call stack: ebuild.sh, line 1540: Called dyn_compile ebuild.sh, line 940: Called src_compile ebuild.sh, line 609: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! This ebuild is from an overlay: '/usr/local/portage' emerge --info Portage 2.1.1_pre1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r4, 2.6.17-ck1 i686) ================================================================= System uname: 2.6.17-ck1 i686 AMD Athlon(tm) processor Gentoo Base System version 1.12.1 ccache version 2.4 [disabled] dev-lang/python: 2.4.2 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r2 dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r2 sys-devel/gcc-config: 1.3.13-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon -pipe -fomit-frame-pointer" DISTDIR="/mnt/mandrake/opt/distfiles" FEATURES="autoconfig confcache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="cs_CZ" LDFLAGS="-Wl,-O1" LINGUAS="cs" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/xgl-coffee /usr/portage/local/layman/flameeyes-overlay" SYNC="rsync://necropolis.bilovec/gentoo-portage" USE="x86 3dnow X aac acpi alsa apache2 asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli crypt cups curl dbus dri dts dvd dvdread encode exif expat ffmpeg firefox flac flash foomaticdb fortran ftp gd gdbm gif glut gmp gpm gtk gtk2 hal iconv icq idn imlib jabber java jpeg kde kdeenablefinal kdehiddenvisibility lcms libg++ libwww logrotate mad maildir mbox mikmod mime mmx mng mono motif moznoirc moznomail mozsvg mp3 mpeg msn musepack mysql nas ncurses nls nptl nptlonly nsplugin nvidia ogg openal opengl pam pcre pdf pdflib perl php pic png python qt quicktime readline recode reflection ruby sdl session slang sndfile spell spl ssl svg tcltk tcpd theora tiff truetype truetype-fonts type1-fonts udev usb vorbis win32codecs wma xine xml xml2 xorg xprint xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_cs userland_GNU video_cards_nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #24) I was too quick here .. it seems its related to gcc-4.1.1, as found on mailinglist: http://sourceforge.net/mailarchive/message.php?msg_id=17093528 Should somebody create patch for ebuild?
Created attachment 93800 [details, diff] gcc4 patch This app should be renamed to smth like hcdcat to avoid collisions.
Created attachment 93829 [details] Working ebuild This is an ebuild that applies the patch and correctly creates desktop entry. There are some issues regarding the file x-hcf.xml codification and update-mime-database complaining about it, then that part is commented in the ebuild. This issues should be resolved upstream IMO. Perhaps there exists a function in an eclass I didn't find that lets you create mime and desktop entries (more flexible than make_desktop_entry in eutils). It could be added to eutils.eclass. I used hcdcat name for the app, but the ebuild will work if you name it hypers-cdcat as the name is taken from the name of the ebuild, nothing is hardcoded.
thanks. I'm kinda busy now, but I will try it asap.
Created attachment 97280 [details, diff] hcdcat-desktop_file.patch desktop file patch: - converted to utf-8 - added polish translation - no extra sed needed with this patch
Created attachment 97281 [details, diff] hcdcat-gentoo_langpaths.patch change directory cdcat to hcdcat to find translations. I admit - I'm not 100% sure what to do with this project name changing, but I believe it's best here :/
Created attachment 97282 [details] hcdcat-1.01b.ebuild new ebuild: - this is qt app - not kde one! ebuild should inherit qt3 eclass, not kde-functions - qt translations aren't nls ones - this is totally different trolltech's implementation - translations installing only, when set in LINGUAS - patched desktop file - see how you can easly install desktop files and icons thx to eutils class (look to {do,new}icon and {do,new}menu functions - don't install copying files - you have them all in /usr/portage/licences - you don't need another extra copy ;) some more cleanups and changes. gcc4 patch is of course needed as well. btw. have ppc and sparc keywords been tested? Best regards, Przemek
Is there an overlay with this tremendous program available anywhere ? Thank you very much
(this is an automated message based on filtering criteria that matched this bug) Hello, The Gentoo Team would like to firstly thank you for your ebuild submission. We also apologize for not being able to accommodate you in a timely manner. There are simply too many new packages. Allow me to use this opportunity to introduce you to Gentoo Sunrise. The sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to commit to and all users can have ebuilds reviewed by Gentoo devs for entry into the overlay. So, the sunrise team is suggesting that you look into this and submit your ebuild to the overlay where even *you* can commit to. =) Because this is a mass message, we are also asking you to be patient with us. We anticipate a large number of requests in a short time. Thanks, On behalf of the Gentoo Sunrise Team, Jeremy. [1]: http://www.gentoo.org/proj/en/sunrise/ [2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq
Is it possible to use hcdcat with qt4 ?
Latest version (1.01b) has been released on 2005-11-06. It don't seems to be QT4 compatible : make /usr/bin/uic help.ui -o ui_help.h uic: File generated with too old version of Qt Designer (3.1) File 'help.ui' is not valid make: *** [ui_help.h] Erreur 1 I suggest a RESOLVED/WONTFIX (qt3 last rites)
Maybe with http://www2.informatik.hu-berlin.de/~groeper/cdcat/cdcat-unicode-alpha-custom-UNOFFICIAL.tar.gz as could be read under http://osdir.com/ml/db.cdcat/2007-11/msg00007.html ?
Created attachment 225561 [details, diff] Patch to fix gzip<->xml http://www2.informatik.hu-berlin.de/~groeper/cdcat/cdcat-unicode-alpha-custom-UNOFFICIAL.tar.gz has a bug which is fixed with this patch.
http://crissi.linux-administrator.com/linux/cdcat/ contains a new source :-)
Created attachment 333544 [details] 2.1 ebuild 2.1 ebuild (needs polishing, just istalls somehow)
Created attachment 333546 [details, diff] patch for 2.1 - disable lib7zip I had to make a patch because I did not find this in portage
Created attachment 553488 [details] Patch for Qt5 and ebuild. I made a patch for Qt5 and ebuild. lib7zip is disabled.