Make sure that HOWL support is really enabled, as per bug #96818.
authorDiego Elio Pettenò <flameeyes@gentoo.org>
Tue, 25 Oct 2005 05:26:32 +0000 (05:26 +0000)
committerDiego Elio Pettenò <flameeyes@gentoo.org>
Tue, 25 Oct 2005 05:26:32 +0000 (05:26 +0000)
Package-Manager: portage-2.0.53_rc6

media-sound/daapd/ChangeLog
media-sound/daapd/Manifest
media-sound/daapd/daapd-0.2.4a-r2.ebuild [moved from media-sound/daapd/daapd-0.2.4a-r1.ebuild with 77% similarity]
media-sound/daapd/files/daapd-0.2.4-gentoo.patch
media-sound/daapd/files/daapd-0.2.4a-defaults.patch [new file with mode: 0644]
media-sound/daapd/files/digest-daapd-0.2.4a-r2 [moved from media-sound/daapd/files/digest-daapd-0.2.4a-r1 with 100% similarity]

index a761bf5537d9e2e31f6447820ba7d385d55d4abd..5a4f39f1949117f5bf0f99ec117217b79f0b0043 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for media-sound/daapd
 # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/daapd/ChangeLog,v 1.17 2005/10/17 11:44:34 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/daapd/ChangeLog,v 1.18 2005/10/25 05:26:32 flameeyes Exp $
+
+*daapd-0.2.4a-r2 (25 Oct 2005)
+
+  25 Oct 2005; Diego Pettenò <flameeyes@gentoo.org>
+  files/daapd-0.2.4-gentoo.patch, +files/daapd-0.2.4a-defaults.patch,
+  -daapd-0.2.4a-r1.ebuild, +daapd-0.2.4a-r2.ebuild:
+  Make sure that HOWL support is really enabled, as per bug #96818.
 
 *daapd-0.2.4a-r1 (17 Oct 2005)
 
index 38ddd3a72461d13c08a309ee887969483938b745..5fd639d971f4a9c85f94905739b9c830d27d8b88 100644 (file)
@@ -1,17 +1,18 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 24134d107499a585552a174cbf79458c ChangeLog 3652
-MD5 671db4d6a437056ae62192a7799de75a daapd-0.2.4a-r1.ebuild 1835
-MD5 660b25ab66dc0cb5147d21b2db00b685 files/daapd-0.2.4-gentoo.patch 1564
+MD5 7033ecab9f8c5f16aa4dec249f03e207 ChangeLog 3928
+MD5 edeeb9b70969437b5920281d0d7637bc daapd-0.2.4a-r2.ebuild 1725
+MD5 31dc37e250f18a48db2181a27bd4f1a8 files/daapd-0.2.4-gentoo.patch 1547
+MD5 a1337fb36f64debbe8643a95d2231f25 files/daapd-0.2.4a-defaults.patch 617
 MD5 3beda326653c14c1fbd33c762af01e2e files/daapd.conf.d 673
 MD5 55d5a5f4ecb94a9b34a603fa95047c48 files/daapd.init.d-2 1053
-MD5 3bce8ff40d70534e3b94f58ea9043b07 files/digest-daapd-0.2.4a-r1 61
+MD5 3bce8ff40d70534e3b94f58ea9043b07 files/digest-daapd-0.2.4a-r2 61
 MD5 5209c0057b32b7d92999700515bed3aa metadata.xml 440
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2 (GNU/Linux)
 
-iD8DBQFDU47Jj5H05b2HAEkRAgYZAJ0bN51L6Rc0FwW0NN66SyhkHOmNlwCgiyqD
-YzlMsbON4yM7Z4g5sS/yapU=
-=/kxm
+iD8DBQFDXcIWj5H05b2HAEkRAiq0AJ9+ZkUyUc0s6WNYMx1spG9xCKFM4gCffVNJ
+CNIGXE6/goX+L3Zxnkn5SxY=
+=yBF7
 -----END PGP SIGNATURE-----
similarity index 77%
rename from media-sound/daapd/daapd-0.2.4a-r1.ebuild
rename to media-sound/daapd/daapd-0.2.4a-r2.ebuild
index ac6cb722b44e56f55bcf40698b21fa7be6ceb75a..7b0fa6a37436b3684724a5a07675a853667fda85 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/daapd/daapd-0.2.4a-r1.ebuild,v 1.1 2005/10/17 11:44:34 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/daapd/daapd-0.2.4a-r2.ebuild,v 1.1 2005/10/25 05:26:32 flameeyes Exp $
 
 inherit flag-o-matic eutils
 
@@ -23,7 +23,8 @@ DEPEND="sys-libs/zlib
 src_unpack() {
        unpack ${A}
        cd ${S}
-       epatch ${FILESDIR}/${PN}-0.2.4-gentoo.patch
+       epatch "${FILESDIR}/${PN}-0.2.4-gentoo.patch"
+       epatch "${FILESDIR}/${P}-defaults.patch"
 }
 
 src_compile() {
@@ -31,21 +32,17 @@ src_compile() {
        use howl && want_howl="1" || want_howl="0"
        use mpeg4 && want_mpeg4="1" || want_mpeg4="0"
 
-       # This warning outputs a lot of noise and it's disabled by the original
-       # makefile, as we rewrite CFLAGS, append this again.
-       append-flags -Wno-multichar
-
-       # The makefile is dump, uses $(CC) to compile .cc files
+       # The makefile is dumb, uses $(CC) to compile .cc files
        # pass it a C++ compiler and C++ flags
        emake \
-               CC=$(tc-getCXX) CFLAGS="${CXXFLAGS}" \
+               CC=$(tc-getCXX) OPTFLAGS="${CXXFLAGS}" \
                HOWL_ENABLE="$want_howl" MPEG4_ENABLE="$want_mpeg4" \
                || die "make failed"
 
        # Make sure that it requires mDNSResponder while using howl
        cp ${FILESDIR}/daapd.init.d-2 ${WORKDIR}/daapd.init.d
        use howl && \
-               sed -i -e 's:#WITHHOWL::' ${WORKDIR}/daapd.init.d || \
+               sed -i -e 's:#WITHHOWL ::' ${WORKDIR}/daapd.init.d || \
                sed -i -e '/#WITHHOWL/d' ${WORKDIR}/daapd.init.d
 }
 
index cfa78fb87c62f8c7363db67af2af7aef204a5008..2239fcd522f3757c7e763c7de6422c5c220a1f22 100644 (file)
@@ -1,6 +1,7 @@
-diff -uprN daapd-0.2.4.orig/makefile daapd-0.2.4/makefile
---- daapd-0.2.4.orig/makefile  2005-04-28 17:35:27.000000000 +0200
-+++ daapd-0.2.4/makefile       2005-04-28 17:36:49.000000000 +0200
+Index: daapd-0.2.4a/makefile
+===================================================================
+--- daapd-0.2.4a.orig/makefile
++++ daapd-0.2.4a/makefile
 @@ -11,19 +11,19 @@ MPEG4_ENABLE = 0
  CC = g++
  MAKE = $(MAKE_COMMAND)
@@ -12,10 +13,11 @@ diff -uprN daapd-0.2.4.orig/makefile daapd-0.2.4/makefile
 -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
+-CFLAGS = -Wall -Wno-multichar
 +LIBPATH = -L. -L/usr/lib
 +INCPATH = -I. -I/usr/include
 +DEPLOY = /usr
- CFLAGS = -Wall -Wno-multichar
++CFLAGS := $(OPTFLAGS) -Wall -Wno-multichar
  
  # HOWL
  ifeq ($(HOWL_ENABLE),1)
@@ -27,9 +29,10 @@ diff -uprN daapd-0.2.4.orig/makefile daapd-0.2.4/makefile
  endif
        HOWLRECENT := $(word $(words $(HOWLDIRS)),$(HOWLDIRS) )
        INCPATH := $(INCPATH) -I$(HOWLRECENT)
-diff -uprN daapd-0.2.4.orig/types.h daapd-0.2.4/types.h
---- daapd-0.2.4.orig/types.h   2005-04-28 17:35:27.000000000 +0200
-+++ daapd-0.2.4/types.h        2005-04-28 17:37:15.000000000 +0200
+Index: daapd-0.2.4a/types.h
+===================================================================
+--- daapd-0.2.4a.orig/types.h
++++ daapd-0.2.4a/types.h
 @@ -20,6 +20,10 @@
        Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
diff --git a/media-sound/daapd/files/daapd-0.2.4a-defaults.patch b/media-sound/daapd/files/daapd-0.2.4a-defaults.patch
new file mode 100644 (file)
index 0000000..fea56d8
--- /dev/null
@@ -0,0 +1,21 @@
+As pointed out by Paul forgey in bug #96818, makefile was defining as constant
+overwriting the passed values for the three _ENABLED variables.
+This patch makes them take a default value if not set otherwise, allowing us to
+pass different values during make stage.
+
+Index: daapd-0.2.4a/makefile
+===================================================================
+--- daapd-0.2.4a.orig/makefile
++++ daapd-0.2.4a/makefile
+@@ -1,8 +1,8 @@
+ # configure daapd here
+ 
+-HOWL_ENABLE = 0
+-ZLIB_ENABLE = 1
+-MPEG4_ENABLE = 0
++HOWL_ENABLE := 0
++ZLIB_ENABLE := 1
++MPEG4_ENABLE := 0
+ 
+ 
+ # no need to touch anything below this line