diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2012-10-21 16:41:43 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-10-24 08:27:46 +0200 |
commit | 5febf70d37c7e9cf55fa7de5285531a810312e3a (patch) | |
tree | 3e652d50fa637149b600bd5fcf29777840fec80e | |
parent | c00f3c285c722a480ce9f02bcebc64fd36c1a1b0 (diff) | |
download | meta-openembedded-5febf70d37c7e9cf55fa7de5285531a810312e3a.tar.gz |
libgphoto2: fix build
autoconf.bbclass forces building po dirs by copying po/Makefile.in.in. We have
to care for libgphoto2_port/po/Makefile.in.in too and have to remove
AM_PO_SUBDIRS() from configure.ac since that causes
| autoreconf: running: aclocal --system-acdir=/home/Superandy/tmp/oe-core-eglibc/work/armv7a-vfp-neon-angstrom-linux-gnueabi/libgphoto2-2.4.11-r2/libgphoto2-2.4.11/aclocal-copy/ --automake-acdir=/home/Superandy/tmp/oe-core-eglibc/sysroots/x86_64-linux/usr/share/aclocal-1.12 -I /home/Superandy/tmp/oe-core-eglibc/work/armv7a-vfp-neon-angstrom-linux-gnueabi/libgphoto2-2.4.11-r2/libgphoto2-2.4.11/auto-m4/ -I /home/Superandy/tmp/oe-core-eglibc/work/armv7a-vfp-neon-angstrom-linux-gnueabi/libgphoto2-2.4.11-r2/libgphoto2-2.4.11/m4m/ -I /home/Superandy/tmp/oe-core-eglibc/work/armv7a-vfp-neon-angstrom-linux-gnueabi/libgphoto2-2.4.11-r2/libgphoto2-2.4.11/auto-m4/ -I /home/Superandy/tmp/oe-core-eglibc/work/armv7a-vfp-neon-angstrom-linux-gnueabi/libgphoto2-2.4.11-r2/libgphoto2-2.4.11/m4m/ --force -I auto-m4 -I m4m
| configure.ac:230: error: `po-directories' is already registered with AC_CONFIG_COMMANDS.
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
-rw-r--r-- | meta-oe/recipes-graphics/gphoto2/libgphoto2-2.4.11/0001-configure.ac-remove-AM_PO_SUBDIRS.patch | 48 | ||||
-rw-r--r-- | meta-oe/recipes-graphics/gphoto2/libgphoto2_2.4.11.bb | 4 |
2 files changed, 51 insertions, 1 deletions
diff --git a/meta-oe/recipes-graphics/gphoto2/libgphoto2-2.4.11/0001-configure.ac-remove-AM_PO_SUBDIRS.patch b/meta-oe/recipes-graphics/gphoto2/libgphoto2-2.4.11/0001-configure.ac-remove-AM_PO_SUBDIRS.patch new file mode 100644 index 0000000000..5e135dbc74 --- /dev/null +++ b/meta-oe/recipes-graphics/gphoto2/libgphoto2-2.4.11/0001-configure.ac-remove-AM_PO_SUBDIRS.patch | |||
@@ -0,0 +1,48 @@ | |||
1 | From 31a5d2f7db18737aef08c34e8707b4f69f7e5156 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> | ||
3 | Date: Sun, 21 Oct 2012 17:59:20 +0200 | ||
4 | Subject: [PATCH] configure.ac: remove AM_PO_SUBDIRS | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | together with oe autotools.bbclass this is done twice and causes: | ||
10 | |||
11 | | autoreconf: running: aclocal --system-acdir=/home/Superandy/tmp/oe-core-eglibc/work/armv7a-vfp-neon-angstrom-linux-gnueabi/libgphoto2-2.4.11-r2/libgphoto2-2.4.11/aclocal-copy/ --automake-acdir=/home/Superandy/tmp/oe-core-eglibc/sysroots/x86_64-linux/usr/share/aclocal-1.12 -I /home/Superandy/tmp/oe-core-eglibc/work/armv7a-vfp-neon-angstrom-linux-gnueabi/libgphoto2-2.4.11-r2/libgphoto2-2.4.11/auto-m4/ -I /home/Superandy/tmp/oe-core-eglibc/work/armv7a-vfp-neon-angstrom-linux-gnueabi/libgphoto2-2.4.11-r2/libgphoto2-2.4.11/m4m/ -I /home/Superandy/tmp/oe-core-eglibc/work/armv7a-vfp-neon-angstrom-linux-gnueabi/libgphoto2-2.4.11-r2/libgphoto2-2.4.11/auto-m4/ -I /home/Superandy/tmp/oe-core-eglibc/work/armv7a-vfp-neon-angstrom-linux-gnueabi/libgphoto2-2.4.11-r2/libgphoto2-2.4.11/m4m/ --force -I auto-m4 -I m4m | ||
12 | | configure.ac:230: error: `po-directories' is already registered with AC_CONFIG_COMMANDS. | ||
13 | |||
14 | Upstream-Status: Inapropriate [configuration] | ||
15 | |||
16 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> | ||
17 | --- | ||
18 | configure.ac | 1 - | ||
19 | libgphoto2_port/configure.ac | 1 - | ||
20 | 2 files changed, 0 insertions(+), 2 deletions(-) | ||
21 | |||
22 | diff --git a/configure.ac b/configure.ac | ||
23 | index 2f8e1b8..2e90acf 100644 | ||
24 | --- a/configure.ac | ||
25 | +++ b/configure.ac | ||
26 | @@ -227,7 +227,6 @@ ALL_LINGUAS="da de es eu fr hu it ja nl pl ru sv uk vi zh_CN" | ||
27 | GP_GETTEXT_HACK([${PACKAGE}-${LIBGPHOTO2_CURRENT_MIN}],[The gPhoto Team],[${MAIL_GPHOTO_TRANSLATION}]) | ||
28 | AM_GNU_GETTEXT_VERSION([0.14.1]) | ||
29 | AM_GNU_GETTEXT([external]) | ||
30 | -AM_PO_SUBDIRS() | ||
31 | AM_ICONV() | ||
32 | GP_GETTEXT_FLAGS() | ||
33 | |||
34 | diff --git a/libgphoto2_port/configure.ac b/libgphoto2_port/configure.ac | ||
35 | index 0b66d58..df47357 100644 | ||
36 | --- a/libgphoto2_port/configure.ac | ||
37 | +++ b/libgphoto2_port/configure.ac | ||
38 | @@ -116,7 +116,6 @@ GP_GETTEXT_HACK([${PACKAGE}-${LIBGPHOTO2_PORT_CURRENT_MIN}],[Lutz Mueller and ot | ||
39 | ALL_LINGUAS="cs da de fr es eu it ja nl pl pt_BR ru sk sv uk vi zh_CN zh_TW" | ||
40 | AM_GNU_GETTEXT_VERSION([0.14.1]) | ||
41 | AM_GNU_GETTEXT([external]) | ||
42 | -AM_PO_SUBDIRS() | ||
43 | AM_ICONV() | ||
44 | GP_GETTEXT_FLAGS() | ||
45 | |||
46 | -- | ||
47 | 1.7.4.4 | ||
48 | |||
diff --git a/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.4.11.bb b/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.4.11.bb index fbce4fdef9..d7f6ac0f6a 100644 --- a/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.4.11.bb +++ b/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.4.11.bb | |||
@@ -3,7 +3,7 @@ SECTION = "libs" | |||
3 | LICENSE = "LGPLv2.1" | 3 | LICENSE = "LGPLv2.1" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=0448d3676bc0de00406af227d341a4d1" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=0448d3676bc0de00406af227d341a4d1" |
5 | 5 | ||
6 | PR = "r2" | 6 | PR = "r3" |
7 | 7 | ||
8 | DEPENDS = "libtool jpeg virtual/libusb0 libexif" | 8 | DEPENDS = "libtool jpeg virtual/libusb0 libexif" |
9 | 9 | ||
@@ -15,6 +15,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/gphoto/libgphoto2-${PV}.tar.bz2;name=libgphoto2 | |||
15 | file://10-camera-libgphoto2-device.fdi \ | 15 | file://10-camera-libgphoto2-device.fdi \ |
16 | file://10-camera-libgphoto2.fdi \ | 16 | file://10-camera-libgphoto2.fdi \ |
17 | file://40-libgphoto2.rules \ | 17 | file://40-libgphoto2.rules \ |
18 | file://0001-configure.ac-remove-AM_PO_SUBDIRS.patch \ | ||
18 | " | 19 | " |
19 | 20 | ||
20 | SRC_URI[libgphoto2.md5sum] = "16a22b9739e45a95980ed62705fe7333" | 21 | SRC_URI[libgphoto2.md5sum] = "16a22b9739e45a95980ed62705fe7333" |
@@ -25,6 +26,7 @@ inherit autotools pkgconfig gettext lib_package | |||
25 | EXTRA_OECONF = " --with-drivers=all udevscriptdir=/lib/udev ac_cv_lib_ltdl_lt_dlcaller_register=yes" | 26 | EXTRA_OECONF = " --with-drivers=all udevscriptdir=/lib/udev ac_cv_lib_ltdl_lt_dlcaller_register=yes" |
26 | 27 | ||
27 | do_configure_append() { | 28 | do_configure_append() { |
29 | cp ${STAGING_DATADIR}/gettext/po/Makefile.in.in ${S}/libgphoto2_port/po/ | ||
28 | cd ${S}/libgphoto2_port/ | 30 | cd ${S}/libgphoto2_port/ |
29 | autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths | 31 | autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths |
30 | cd ${S} | 32 | cd ${S} |