Ebuild modified for new versions Support for howl use flag Fixed init script Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 41100 [details] daapd-0.2.3d.ebuild this new ebuild support the howl use-flag and bump versions from 0.2.3b to 0.2.3d
Created attachment 41101 [details] daapd-0.2.3d-gentoo.patch patch to makefile for proper path to howl
Comment on attachment 41101 [details] daapd-0.2.3d-gentoo.patch diff -urN daapd-0.2.3d/makefile daapd-0.2.3d.patched/makefile --- daapd-0.2.3d/makefile 2004-09-08 03:17:58.000000000 +0200 +++ daapd-0.2.3d.patched/makefile 2004-10-05 00:33:44.729241904 +0200 @@ -11,19 +11,19 @@ CC = g++ MAKE = $(MAKE_COMMAND) TARGET = daapd -DEPS = daaplib_ libhttpd_ +DEPS = OBJS = daapd.o db.o dboutput.o songcache.o parsemp3.o LIBS = -ldaaplib -lhttpd-persistent -lid3tag -lz -lpthread -LIBPATH = -L. -L./daaplib/src -L./libhttpd/src -L/usr/local/lib -INCPATH = -I. -I./daaplib/include -I./libhttpd/src -I/usr/local/include -DEPLOY = /usr/local +LIBPATH = -L. -L/usr/lib +INCPATH = -I. -I/usr/include +DEPLOY = /usr CFLAGS = -Wall -Wno-multichar # HOWL ifeq ($(HOWL_ENABLE),1) - HOWLDIRS := $(sort $(wildcard /usr/local/include/howl*) ) + HOWLDIRS := $(sort $(wildcard /usr/include/howl*) ) ifeq ($(words $(HOWLDIRS) ), 0) -$(error howl not found in /usr/local/include. Install howl or disable it in the makefile) +$(error howl not found in /usr/include. Install howl or disable it in the makefile) endif HOWLRECENT := $(word $(words $(HOWLDIRS)),$(HOWLDIRS) ) INCPATH := $(INCPATH) -I$(HOWLRECENT) diff -urN daapd-0.2.3d/types.h daapd-0.2.3d.patched/types.h --- daapd-0.2.3d/types.h 2004-09-08 03:17:59.000000000 +0200 +++ daapd-0.2.3d.patched/types.h 2004-10-05 00:48:31.871375800 +0200 @@ -20,6 +20,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#ifndef UINT64_TO_DOUBLE +#define UINT64_TO_DOUBLE(a) ((double)((int64_t)(a))) +#endif + #ifndef DAAP_TYPES_H #define DAAP_TYPES_H
Created attachment 41103 [details] fixed init script added "use mDNSResponder" in depend section
Created attachment 41104 [details] daapd-0.2.3d-gentoo.patch cleaned up the previous version
is there a way to test this without actually having iTunes?
in portage.
*** Bug 65739 has been marked as a duplicate of this bug. ***
the new version works, the init-script don't. mDNSResponder isn't started and so itunes doesn't see the server. (I've compiled without any useflags and used the initscript from this report) (ps x | grep mDNS showd me that it is not running. there should be three instances when started by hand) An other thing is he description. I think it should contain the word 'iTunes', so that it is found when searching the packages for itunes.
>is there a way to test this without actually having iTunes? yes you can test it with tunesbrowser, it's in the portage and can work with rendezvous (howl) I just checked that it worked with daapd, and it worked for me :) So you can emerge it to test daapd, but it will be a lot better when gnome or rhythmnbox will support it natively.
I noticed that you modified the ebuild that i submitted added some code for Zlib support, but you didn't added it to the IUSE. But in fact it's useless, i also thought that daapd can enable/disable zlib but in fact the variable about zlib is unused in the makefile, so you can remove the part about zlib in the current ebuild (daapd-0.2.3d.ebuild): zlib? ( sys-libs/zlib ) if ! use zlib; then sed -ie 's/ZLIB_ENABLE = 1/ZLIB_ENABLE = 0/g' makefile fi
Jonas: rc-update add mDNSResponder default removed zlib stuff
>the new version works, the init-script don't. mDNSResponder isn't started and so itunes doesn't see the server. I decided to use "use" instead of "need" in the initscript so, daapd will only start mDNSResponder if mDNSResponder is in the default runlevel, because daapd can run without mDNSResponder (and can be compiled without howl support). If i had used "need" , daapd couldn't start if mDNSResponder is not running or installed.