Skip to contentSkip to conversation

jack: fix wrong configure check on the build host

PATCH New Petr Štetiar 1 participant 2 messages Feb 26, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 jack: fix wrong configure check on the build host

| checking existing, conflicting JACK installs...
| You appear to have at least one existing installation of JACK.
| Complete or partial JACK installs exist in: /usr/lib

[...]

NOTE: package jack-0.118.0-r2: task do_configure: Failed

---
 recipes/jack/files/remove-wrong-host-test.patch |   66 +++++++++++++++++++++++
 recipes/jack/jack_0.118.0.bb                    |    6 ++-
 2 files changed, 70 insertions(+), 2 deletions(-)
 create mode 100644 recipes/jack/files/remove-wrong-host-test.patch
recipes/jack/files/remove-wrong-host-test.patch new file +66 -0
new file mode 100644
index 0000000..54c4a83
@@ -0,0 +1,66 @@
+| checking existing, conflicting JACK installs...
+| 
+| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+| You appear to have at least one existing installation of JACK.
+| Complete or partial JACK installs exist in: /usr/lib
+
+[...]
+
+NOTE: package jack-0.118.0-r2: task do_configure: Failed
+
+Index: RELEASE_0_118_0/configure.ac
+===================================================================
+--- RELEASE_0_118_0.orig/configure.ac	2011-02-26 06:54:25.711716288 +0100
++++ RELEASE_0_118_0/configure.ac	2011-02-26 06:54:47.061718126 +0100
+@@ -3,51 +3,6 @@
+ 
+ AC_INIT(jackd/jackd.c)
+ 
+-
+-dnl
+-dnl Check for existing JACK installs
+-dnl 
+-
+-AC_MSG_CHECKING([existing, conflicting JACK installs])
+-not_overwriting=0
+-installs=
+-for dir in /usr/lib /usr/local/lib /opt/lib ; do
+-    if test -d $dir ; then
+-	if test $(find $dir/ -name 'libjack.*' 2>/dev/null | wc -l) -gt 0 ; then
+-	    if echo $prefix/lib | grep -vs $dir >/dev/null 2>&1 ; then
+-		not_overwriting=$(expr $not_overwriting + 1)
+-	    fi
+-	    installs="$installs $dir"
+-	fi	    
+-    fi
+-done
+-
+-if test $not_overwriting -gt 0 ; then
+-    echo 
+-    echo
+-    echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+-    echo "You appear to have at least one existing installation of JACK."
+-    echo
+-    echo "Complete or partial JACK installs exist in:$installs"
+-    echo 
+-    echo "Installing this version will leave at least one of these"
+-    echo "existing installations installed and this will probably break"
+-    echo "JACK on your machine. "
+-    echo
+-    echo "Before building, you should first remove the existing JACK"
+-    echo "installation(s). "
+-    echo
+-    echo "Alternatively use ./configure --prefix=... to force overwriting"
+-    echo "the existing install."
+-    echo
+-    echo "WARNING: ON ANY DEBIAN-DERIVED DISTRIBUTION (Debian, Ubuntu etc)"
+-    echo "CHANGING THE INSTALLATION PREFIX WILL NOT PRODUCE A WORKING JACK"
+-    echo "INSTALL. Please contact the distribution packager for JACK and"
+-    echo "ask them to fix their packaging."
+-    echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+-    exit 1
+-fi
+-
+ AC_CONFIG_AUX_DIR(config)
+ AC_CANONICAL_TARGET
+ 
recipes/jack/jack_0.118.0.bb +4 -2
index 5ca9d65..e979c7a 100644
@@ -8,11 +8,13 @@ LICENSE = "GPLv2 LGPLv2.1"
 
 DEPENDS = "alsa-lib"
 
-PR = "r2"
+PR = "r3"
 
 SVNPV = "${@'${PV}'.replace('.', '_')}"
 SRCREV = "4084"
-SRC_URI = "svn://subversion.jackaudio.org/jack/tags;module=RELEASE_${SVNPV};proto=http"
+SRC_URI = "svn://subversion.jackaudio.org/jack/tags;module=RELEASE_${SVNPV};proto=http \
+           file://remove-wrong-host-test.patch \
+           "
 
 # This is not omap3 specific, but there is a strong correlation between using twl4030 and using omap3
 SRC_URI_append_omap3 = " file://jack_fix_TWL4030_alsa_capture.patch"
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 2/2 jack: remove old versions

The jack is not pinned anywhere and according to the git log it seems, that just the latest stable version is maintained and used.

---
 recipes/jack/jack_0.103.0.bb |   30 ------------------------------
 recipes/jack/jack_0.116.2.bb |   32 --------------------------------
 2 files changed, 0 insertions(+), 62 deletions(-)
 delete mode 100644 recipes/jack/jack_0.103.0.bb
 delete mode 100644 recipes/jack/jack_0.116.2.bb
recipes/jack/jack_0.103.0.bb deleted +0 -30
deleted file mode 100644
index f7bd62a..0000000
@@ -1,30 +0,0 @@
-DESCRIPTION = "JACK is a low-latency audio server. It can \
-connect a number of different applications to an audio \
-device, as well as allowing them to share audio between \
-themselves."
-SECTION = "libs/multimedia"
-PRIORITY = "optional"
-LICENSE = "GPL LGPL"
-PR = "r0"
-
-DEPENDS = "alsa-lib"
-
-SRC_URI = "${SOURCEFORGE_MIRROR}/jackit/jack-audio-connection-kit-${PV}.tar.gz"
-S = "${WORKDIR}/jack-audio-connection-kit-${PV}"
-
-inherit autotools pkgconfig
-
-EXTRA_OECONF = "--enable-timestamps --disable-capabilities --disable-oldtrans \
-		--disable-portaudio --disable-coreaudio --enable-oss --enable-alsa"
-
-EXTRA_OEMAKE = 'transform="s,^,,"'
-LDFLAGS_append = " -ldl -L${STAGING_LIBDIR}"
-
-PACKAGES =+ "libjack jack-server jack-examples"
-
-FILES_libjack = "${libdir}/*.so.* ${libdir}/jack/*.so"
-FILES_jack-server = "${bindir}/jackd"
-FILES_jack-examples = "${bindir}/*"
-
-SRC_URI[md5sum] = "03a0f63b997ce7b83a1eeaa6b80f4388"
-SRC_URI[sha256sum] = "a5d9fd696d7ee4a1c7679b5a688155bc1e0abbdf5f144d6762dbbee874df235f"
recipes/jack/jack_0.116.2.bb deleted +0 -32
deleted file mode 100644
index d97043a..0000000
@@ -1,32 +0,0 @@
-DESCRIPTION = "JACK is a low-latency audio server. It can \
-connect a number of different applications to an audio \
-device, as well as allowing them to share audio between \
-themselves."
-SECTION = "libs/multimedia"
-PRIORITY = "optional"
-LICENSE = "GPL LGPL"
-PR = "r1"
-
-DEPENDS = "alsa-lib"
-
-SRC_URI = "http://jackaudio.org/downloads/jack-audio-connection-kit-${PV}.tar.gz"
-S = "${WORKDIR}/jack-audio-connection-kit-${PV}"
-
-inherit autotools
-
-EXTRA_OECONF = "--enable-timestamps --disable-capabilities --disable-oldtrans \
-		--disable-portaudio --disable-coreaudio --enable-oss --enable-alsa"
-
-EXTRA_OEMAKE = 'transform="s,^,,"'
-LDFLAGS_append = " -ldl -L${STAGING_LIBDIR}"
-
-PACKAGES =+ "libjack jack-server jack-examples"
-
-FILES_libjack = "${libdir}/*.so.* ${libdir}/jack/*.so"
-FILES_jack-server = "${bindir}/jackd"
-FILES_jack-examples = "${bindir}/*"
-FILES_${PN}-doc += " ${datadir}/jack-audio-connection-kit/reference/html/* "
-
-
-SRC_URI[md5sum] = "9c0ae9880e9b6e081f1a238fe6a28bd5"
-SRC_URI[sha256sum] = "ce6e1f61a3b003137af56b749e5ed4274584167c0877ea9ef2d83f47b11c8d3d"
Signature · 1 line
1.7.0.4