summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2013-02-04 23:06:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-06 09:37:22 +0000
commit77b1409522abd9bef511a160ec2f768cdd3c7580 (patch)
tree49096409d9cd3b5436eda032a3bb577d39ec4f84 /meta/recipes-devtools/opkg
parent626dc8b98937bece2793b7f40761bb37b21f8771 (diff)
downloadpoky-77b1409522abd9bef511a160ec2f768cdd3c7580.tar.gz
ipk: use OPKGLIBDIR in all places
* it's not recommended to change this value, because it breaks upgrade path on target (all old u-a alternatives are forgot in old OPKGLIBDIR value * but make it consistent, so if someone really want to change that, then setting OPKGLIBDIR_distro in distro.conf would be enough * without this there were at least 4 places to change: rootfs_ipk: opkglibdir variable (notice that I've removed /opkg from it to correspond with EXTRA_OECONF option used in opkg recipes package_ipk: ${target_rootfs}${localstatedir}/lib/opkg/ hardcoded in package_install_internal_ipk opkg-collateral: value in lists file opkg: EXTRA_OECONF for all 3 classes, FILES_libopkg, do_install * validated with buildhistory that without OPKGLIBDIR explicitly set the output is the same and that after setting OPKGLIBDIR_forcevariable := "${libdir}" everything including empty directory from package_ipk is moved to libdir (From OE-Core rev: cf0aa9c4fdae8855803e96b1922d54a2431795d3) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg')
-rw-r--r--meta/recipes-devtools/opkg/opkg-collateral.bb6
-rw-r--r--meta/recipes-devtools/opkg/opkg-collateral/lists2
-rw-r--r--meta/recipes-devtools/opkg/opkg.inc25
3 files changed, 17 insertions, 16 deletions
diff --git a/meta/recipes-devtools/opkg/opkg-collateral.bb b/meta/recipes-devtools/opkg/opkg-collateral.bb
index 251c535438..cacd8800e9 100644
--- a/meta/recipes-devtools/opkg/opkg-collateral.bb
+++ b/meta/recipes-devtools/opkg/opkg-collateral.bb
@@ -2,18 +2,18 @@ DESCRIPTION = "opkg configuration files"
2SECTION = "base" 2SECTION = "base"
3LICENSE = "MIT" 3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" 4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
5PR = "r1" 5PR = "r2"
6 6
7SRC_URI = "file://opkg.conf.comments \ 7SRC_URI = "file://opkg.conf.comments \
8 file://lists \
9 file://dest \ 8 file://dest \
10 file://src " 9 file://src "
11 10
11OPKGLIBDIR = "${localstatedir}/lib"
12do_compile () { 12do_compile () {
13 cat ${WORKDIR}/opkg.conf.comments >${WORKDIR}/opkg.conf 13 cat ${WORKDIR}/opkg.conf.comments >${WORKDIR}/opkg.conf
14 cat ${WORKDIR}/src >>${WORKDIR}/opkg.conf 14 cat ${WORKDIR}/src >>${WORKDIR}/opkg.conf
15 cat ${WORKDIR}/dest >>${WORKDIR}/opkg.conf 15 cat ${WORKDIR}/dest >>${WORKDIR}/opkg.conf
16 cat ${WORKDIR}/lists >>${WORKDIR}/opkg.conf 16 echo "lists_dir ext ${OPKGLIBDIR}/opkg" >>${WORKDIR}/opkg.conf
17} 17}
18 18
19do_install () { 19do_install () {
diff --git a/meta/recipes-devtools/opkg/opkg-collateral/lists b/meta/recipes-devtools/opkg/opkg-collateral/lists
deleted file mode 100644
index f8aecd8e15..0000000000
--- a/meta/recipes-devtools/opkg/opkg-collateral/lists
+++ /dev/null
@@ -1,2 +0,0 @@
1lists_dir ext /var/lib/opkg
2
diff --git a/meta/recipes-devtools/opkg/opkg.inc b/meta/recipes-devtools/opkg/opkg.inc
index 47458ff350..8d48006d64 100644
--- a/meta/recipes-devtools/opkg/opkg.inc
+++ b/meta/recipes-devtools/opkg/opkg.inc
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
9 file://src/opkg-cl.c;beginline=1;endline=20;md5=321f658c3f6b6c832e25c8850b5dffba" 9 file://src/opkg-cl.c;beginline=1;endline=20;md5=321f658c3f6b6c832e25c8850b5dffba"
10 10
11PE = "1" 11PE = "1"
12INC_PR = "r12" 12INC_PR = "r13"
13 13
14# Werror gives all kinds bounds issuses with gcc 4.3.3 14# Werror gives all kinds bounds issuses with gcc 4.3.3
15do_configure_prepend() { 15do_configure_prepend() {
@@ -17,16 +17,19 @@ do_configure_prepend() {
17} 17}
18 18
19inherit autotools pkgconfig 19inherit autotools pkgconfig
20EXTRA_OECONF += " --disable-gpg \
21 --disable-openssl \
22 --disable-ssl-curl \
23 --disable-curl \
24 --disable-sha256"
25 20
26target_localstatedir := "${localstatedir}" 21target_localstatedir := "${localstatedir}"
27EXTRA_OECONF += "--with-opkglibdir=${localstatedir}/lib" 22OPKGLIBDIR = "${target_localstatedir}/lib"
28EXTRA_OECONF_class-native = "--with-opkglibdir=${target_localstatedir}/lib --disable-gpg --disable-curl --disable-openssl" 23
29EXTRA_OECONF_class-nativesdk = "--with-opkglibdir=${target_localstatedir}/lib --disable-gpg --disable-curl --disable-openssl" 24SHARED_EXTRA_OECONF = "\
25 --with-opkglibdir=${OPKGLIBDIR} \
26 --disable-gpg \
27 --disable-curl \
28 --disable-openssl \
29"
30EXTRA_OECONF_class-target = "${SHARED_EXTRA_OECONF} --disable-ssl-curl --disable-sha256"
31EXTRA_OECONF_class-native = "${SHARED_EXTRA_OECONF}"
32EXTRA_OECONF_class-nativesdk = "${SHARED_EXTRA_OECONF}"
30 33
31PROVIDES += "virtual/update-alternatives" 34PROVIDES += "virtual/update-alternatives"
32RPROVIDES_update-alternatives-cworth += "update-alternatives" 35RPROVIDES_update-alternatives-cworth += "update-alternatives"
@@ -41,11 +44,11 @@ PACKAGES =+ "libopkg-dev libopkg-staticdev libopkg update-alternatives-cworth"
41FILES_update-alternatives-cworth = "${bindir}/update-alternatives" 44FILES_update-alternatives-cworth = "${bindir}/update-alternatives"
42FILES_libopkg-dev = "${libdir}/*.la ${libdir}/*.so" 45FILES_libopkg-dev = "${libdir}/*.la ${libdir}/*.so"
43FILES_libopkg-staticdev = "${libdir}/*.a" 46FILES_libopkg-staticdev = "${libdir}/*.a"
44FILES_libopkg = "${libdir}/*.so.* ${localstatedir}/lib/opkg/" 47FILES_libopkg = "${libdir}/*.so.* ${OPKGLIBDIR}/opkg/"
45 48
46do_install_append() { 49do_install_append() {
47 # We need to create the lock directory 50 # We need to create the lock directory
48 install -d ${D}${localstatedir}/lib/opkg 51 install -d ${D}${OPKGLIBDIR}/opkg
49} 52}
50 53
51do_install_append_class-native() { 54do_install_append_class-native() {