]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
apt: merge with apt-native
authorAndreas Oberritter <obi@opendreambox.org>
Thu, 21 Apr 2016 23:55:22 +0000 (01:55 +0200)
committerAndreas Oberritter <obi@opendreambox.org>
Mon, 7 May 2018 21:25:22 +0000 (23:25 +0200)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
meta/recipes-devtools/apt/apt-native_1.2.12.bb [deleted file]
meta/recipes-devtools/apt/apt.inc
meta/recipes-devtools/apt/apt_1.2.12.bb

diff --git a/meta/recipes-devtools/apt/apt-native_1.2.12.bb b/meta/recipes-devtools/apt/apt-native_1.2.12.bb
deleted file mode 100644 (file)
index 8d32ef9..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-require apt.inc
-inherit native
-
-DEPENDS += "dpkg-native gettext-native db-native curl-native xz-native"
-PACKAGES = ""
-USE_NLS = "yes"
-
-SRC_URI += "file://0001-remove-Wsuggest-attribute-from-CFLAGS.patch \
-            file://0001-fix-the-gcc-version-check.patch \
-            file://apt.conf.in \
-"
-
-do_install() {
-       install -d ${D}${bindir}
-       install -m 0755 bin/apt-cdrom ${D}${bindir}/
-       install -m 0755 bin/apt-get ${D}${bindir}/
-       install -m 0755 bin/apt-config ${D}${bindir}/
-       install -m 0755 bin/apt-cache ${D}${bindir}/
-       install -m 0755 bin/apt-sortpkgs ${D}${bindir}/
-       install -m 0755 bin/apt-extracttemplates ${D}${bindir}/
-       install -m 0755 bin/apt-ftparchive ${D}${bindir}/
-
-       oe_libinstall -so -C bin libapt-private ${D}${libdir}/
-
-       oe_libinstall -so -C bin libapt-pkg$GLIBC_VER$LIBSTDCPP_VER ${D}${libdir}/
-       oe_libinstall -so -C bin libapt-inst$GLIBC_VER$LIBSTDCPP_VER ${D}${libdir}/
-
-       install -d ${D}${libdir}/apt/methods
-       install -m 0755 bin/methods/* ${D}${libdir}/apt/methods/
-
-       install -d ${D}${libdir}/dpkg/methods/apt
-       install -m 0644 ${S}/dselect/desc.apt ${D}${libdir}/dpkg/methods/apt/ 
-       install -m 0644 ${S}/dselect/names ${D}${libdir}/dpkg/methods/apt/ 
-       install -m 0755 ${S}/dselect/install ${D}${libdir}/dpkg/methods/apt/ 
-       install -m 0755 ${S}/dselect/setup ${D}${libdir}/dpkg/methods/apt/ 
-       install -m 0755 ${S}/dselect/update ${D}${libdir}/dpkg/methods/apt/ 
-
-       install -d ${D}${sysconfdir}/apt
-       install -d ${D}${sysconfdir}/apt/apt.conf.d
-       install -d ${D}${sysconfdir}/apt/preferences.d
-       install -d ${D}${localstatedir}/lib/apt/lists/partial
-       install -d ${D}${localstatedir}/cache/apt/archives/partial
-
-       install -d ${D}${localstatedir}/log/apt/
-
-       sed -e "s,@STAGING_DIR_NATIVE@,${STAGING_DIR_NATIVE},g" \
-           -e "s,@STAGING_BINDIR_NATIVE@,${STAGING_BINDIR_NATIVE},g" \
-           -e "s,@STAGING_LIBDIR@,${STAGING_LIBDIR},g" \
-           < ${WORKDIR}/apt.conf.in > ${D}${sysconfdir}/apt/apt.conf.sample
-}
index 302637084440ded8ede6ece4a8d3d5b9ac76ea1f..14886648b96a1449d13b238fdf8707d5989fd6cd 100644 (file)
@@ -13,6 +13,9 @@ SRC_URI = "http://snapshot.debian.org/archive/debian/20160526T162943Z/pool/main/
            file://disable-test.patch \
            file://0001-environment.mak-musl-based-systems-can-generate-shar.patch \
            file://0001-apt-1.2.12-Fix-musl-build.patch \
+           file://0001-remove-Wsuggest-attribute-from-CFLAGS.patch \
+           file://0001-fix-the-gcc-version-check.patch \
+           file://apt.conf.in \
            "
 SRC_URI[md5sum] = "80f6f0ef110a45a7e5af8a9d233fb0e7"
 SRC_URI[sha256sum] = "e820d27cba73476df4abcff27dadd1b5847474bfe85f7e9202a9a07526973ea6"
index 8de9c146aee530ce1944fb3e7b2169b37ec40fad..92a6fa0955effe1b96cfeae5321430b9f37f1843 100644 (file)
@@ -2,6 +2,8 @@ DEPENDS = "curl db zlib"
 RDEPENDS_${PN} = "dpkg bash debianutils"
 require apt.inc
 
+USE_NLS_class-native = "yes"
+
 PACKAGES =+ "${PN}-utils"
 FILES_${PN} += "${libdir}/dpkg ${systemd_system_unitdir}/apt-daily.service"
 FILES_${PN}-utils = "${bindir}/apt-extracttemplates \
@@ -73,7 +75,16 @@ PACKAGECONFIG[lzma] = "ac_cv_lib_lzma_lzma_easy_encoder=yes,ac_cv_lib_lzma_lzma_
 PACKAGECONFIG[bz2] = "ac_cv_lib_bz2_BZ2_bzopen=yes,ac_cv_lib_bz2_BZ2_bzopen=no,bzip2"
 PACKAGECONFIG[lz4] = "ac_cv_lib_lz4_LZ4F_createCompressionContext=yes,ac_cv_lib_lz4_LZ4F_createCompressionContext=no,lz4"
 
+do_install_append_class-native() {
+    sed -e "s,@STAGING_DIR_NATIVE@,${STAGING_DIR_NATIVE},g" \
+        -e "s,@STAGING_BINDIR_NATIVE@,${STAGING_BINDIR_NATIVE},g" \
+        -e "s,@STAGING_LIBDIR@,${STAGING_LIBDIR},g" \
+        < ${WORKDIR}/apt.conf.in > ${D}${sysconfdir}/apt/apt.conf.sample
+}
+
 do_install_append_class-target() {
     #Write the correct apt-architecture to apt.conf
     echo 'APT::Architecture "${DPKG_ARCH}";' > ${D}${sysconfdir}/apt/apt.conf
 }
+
+BBCLASSEXTEND = "native"