Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66364 - Ebuild for daapd version 0.2.3d
Summary: Ebuild for daapd version 0.2.3d
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
: 65739 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-04 16:21 UTC by Sébastien ESTIENNE
Modified: 2004-10-06 01:45 UTC (History)
2 users (show)

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


Attachments
daapd-0.2.3d.ebuild (daapd-0.2.3d.ebuild,1.66 KB, text/plain)
2004-10-04 16:23 UTC, Sébastien ESTIENNE
Details
daapd-0.2.3d-gentoo.patch (daapd-0.2.3d-gentoo.patch,1.93 KB, text/plain)
2004-10-04 16:23 UTC, Sébastien ESTIENNE
Details
fixed init script (daapd.init.d,1.04 KB, text/plain)
2004-10-04 16:28 UTC, Sébastien ESTIENNE
Details
daapd-0.2.3d-gentoo.patch (daapd-0.2.3d-gentoo.patch,1.53 KB, text/plain)
2004-10-04 16:30 UTC, Sébastien ESTIENNE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sébastien ESTIENNE 2004-10-04 16:21:28 UTC
Ebuild modified for new versions
Support for howl use flag
Fixed init script

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Sébastien ESTIENNE 2004-10-04 16:23:03 UTC
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
Comment 2 Sébastien ESTIENNE 2004-10-04 16:23:54 UTC
Created attachment 41101 [details]
daapd-0.2.3d-gentoo.patch

patch to makefile for proper path to howl
Comment 3 Sébastien ESTIENNE 2004-10-04 16:26:10 UTC
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
Comment 4 Sébastien ESTIENNE 2004-10-04 16:28:26 UTC
Created attachment 41103 [details]
fixed init script

added 
"use mDNSResponder" in depend section
Comment 5 Sébastien ESTIENNE 2004-10-04 16:30:23 UTC
Created attachment 41104 [details]
daapd-0.2.3d-gentoo.patch

cleaned up the previous version
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-10-05 01:39:38 UTC
is there a way to test this without actually having iTunes?
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2004-10-05 01:50:39 UTC
in portage.
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2004-10-05 01:52:53 UTC
*** Bug 65739 has been marked as a duplicate of this bug. ***
Comment 9 Jonas Bähr 2004-10-05 08:02:28 UTC
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.
Comment 10 Sébastien ESTIENNE 2004-10-05 08:18:48 UTC
>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.
Comment 11 Sébastien ESTIENNE 2004-10-05 09:17:38 UTC
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
Comment 12 Jeremy Huddleston (RETIRED) gentoo-dev 2004-10-05 12:46:38 UTC
Jonas: rc-update add mDNSResponder default

removed zlib stuff
Comment 13 Sébastien ESTIENNE 2004-10-06 01:45:29 UTC
>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.