<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#f7f7f7" text="#2c2c2c" link="#4a90d9" vlink="#4a90d9">
<div>On Fri, 2016-08-05 at 08:44 -0700, Khem Raj wrote:</div>
<blockquote type="cite">
<pre>
On 7/29/16 12:53 PM, Aníbal Limón wrote:
<blockquote type="cite">
Test was made building core-image-sato with package_deb on qemux86 and
qemuarm then run for two of them testimage and install packages with
apt-get using PACKAGE_FEED_URI's configuration.

Now apt support drop priviligies for install packages using a sandbox
with _apt user, the useradd class was inherit and configured to install
_apt user and group.

Rebased patches:

        - 0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch
        - 0001-fix-the-gcc-version-check.patch
        - 0001-remove-Wsuggest-attribute-from-CFLAGS.patch
        - disable-test.patch
        - no-curl.patch
</blockquote>

This breaks on musl. Another plea to add a world build on AB for atleast
1 target for musl.

</pre>
</blockquote>
<div><br>
</div>
<div>Feel free to open a bug for that. Perhaps also link it to&nbsp;<a href="https://bugzilla.yoctoproject.org/show_bug.cgi?id=9450">https://bugzilla.yoctoproject.org/show_bug.cgi?id=9450</a></div>
<div><br>
</div>
<div>&nbsp; &nbsp; -Bill</div>
<div><br>
</div>
<blockquote type="cite">
<pre>see

<a href="http://errors.yoctoproject.org/Errors/Details/74375/">http://errors.yoctoproject.org/Errors/Details/74375/</a>

Fix is simply to include &lt;sys/types.h&gt; which is getting included
indirectly via some  other header on glibc but not on musl

<blockquote type="cite">

Signed-off-by: Aníbal Limón &lt;<a href="mailto:anibal.limon@linux.intel.com">anibal.limon@linux.intel.com</a>&gt;
---
 meta/recipes-devtools/apt/apt-native_1.0.10.1.bb   |   4 -
 meta/recipes-devtools/apt/apt-native_1.2.12.bb     |   4 &#43;
 meta/recipes-devtools/apt/apt.inc                  |  11 &#43;-
 ...ys-run-dpkg-configure-a-at-the-end-of-our.patch | 278 &#43;--------------------
 .../apt/apt/0001-fix-the-gcc-version-check.patch   | 128 &#43;&#43;--------
 ...001-remove-Wsuggest-attribute-from-CFLAGS.patch |  24 &#43;-
 meta/recipes-devtools/apt/apt/disable-test.patch   |  47 &#43;&#43;--
 meta/recipes-devtools/apt/apt_1.0.10.1.bb          |  19 --
 meta/recipes-devtools/apt/apt_1.2.12.bb            |  19 &#43;&#43;
 meta/recipes-devtools/apt/files/no-curl.patch      |  30 &#43;&#43;-
 10 files changed, 131 insertions(&#43;), 433 deletions(-)
 delete mode 100644 meta/recipes-devtools/apt/apt-native_1.0.10.1.bb
 create mode 100644 meta/recipes-devtools/apt/apt-native_1.2.12.bb
 delete mode 100644 meta/recipes-devtools/apt/apt_1.0.10.1.bb
 create mode 100644 meta/recipes-devtools/apt/apt_1.2.12.bb

diff --git a/meta/recipes-devtools/apt/apt-native_1.0.10.1.bb b/meta/recipes-devtools/apt/apt-native_1.0.10.1.bb
deleted file mode 100644
index 1e660da..0000000
--- a/meta/recipes-devtools/apt/apt-native_1.0.10.1.bb
&#43;&#43;&#43; /dev/null
@@ -1,4 &#43;0,0 @@
-require apt-native.inc
-
-SRC_URI &#43;= &quot;<a href="file://noconfigure.patch">file://noconfigure.patch</a> \
-            <a href="file://no-curl.patch&quot;">file://no-curl.patch&quot;</a>
diff --git a/meta/recipes-devtools/apt/apt-native_1.2.12.bb b/meta/recipes-devtools/apt/apt-native_1.2.12.bb
new file mode 100644
index 0000000..1e660da
--- /dev/null
&#43;&#43;&#43; b/meta/recipes-devtools/apt/apt-native_1.2.12.bb
@@ -0,0 &#43;1,4 @@
&#43;require apt-native.inc
&#43;
&#43;SRC_URI &#43;= &quot;<a href="file://noconfigure.patch">file://noconfigure.patch</a> \
&#43;            <a href="file://no-curl.patch&quot;">file://no-curl.patch&quot;</a>
diff --git a/meta/recipes-devtools/apt/apt.inc b/meta/recipes-devtools/apt/apt.inc
index 78ef5a7..87cc206 100644
--- a/meta/recipes-devtools/apt/apt.inc
&#43;&#43;&#43; b/meta/recipes-devtools/apt/apt.inc
@@ -2,7 &#43;2,7 @@ SUMMARY = &quot;Advanced front-end for dpkg&quot;
 LICENSE = &quot;GPLv2.0&#43;&quot;
 SECTION = &quot;base&quot;
 
-SRC_URI = &quot;<a href="http://snapshot.debian.org/archive/debian/20150805T094928Z/pool/main/a/${BPN}/${BPN}_${PV}.tar.xz">http://snapshot.debian.org/archive/debian/20150805T094928Z/pool/main/a/${BPN}/${BPN}_${PV}.tar.xz</a> \
&#43;SRC_URI = &quot;<a href="http://snapshot.debian.org/archive/debian/20160526T162943Z/pool/main/a/${BPN}/${BPN}_${PV}.tar.xz">http://snapshot.debian.org/archive/debian/20160526T162943Z/pool/main/a/${BPN}/${BPN}_${PV}.tar.xz</a> \
            <a href="file://use-host.patch">file://use-host.patch</a> \
            <a href="file://makerace.patch">file://makerace.patch</a> \
            <a href="file://no-nls-dpkg.patch">file://no-nls-dpkg.patch</a> \
@@ -13,15 &#43;13,15 @@ SRC_URI = &quot;<a href="http://snapshot.debian.org/archive/debian/20150805T094928Z/pool/main/">http://snapshot.debian.org/archive/debian/20150805T094928Z/pool/main/</a>
            <a href="file://disable-test.patch">file://disable-test.patch</a> \
            <a href="file://0001-environment.mak-musl-based-systems-can-generate-shar.patch">file://0001-environment.mak-musl-based-systems-can-generate-shar.patch</a> \
            &quot;
-SRC_URI[md5sum] = &quot;6505c4297b338adb2087ce87bbc4a276&quot;
-SRC_URI[sha256sum] = &quot;3fb1de9598363c416591d49e3c285458e095b035e6c06d5b944a54e15fc9b543&quot;
&#43;SRC_URI[md5sum] = &quot;80f6f0ef110a45a7e5af8a9d233fb0e7&quot;
&#43;SRC_URI[sha256sum] = &quot;e820d27cba73476df4abcff27dadd1b5847474bfe85f7e9202a9a07526973ea6&quot;
 LIC_FILES_CHKSUM = &quot;<a href="file://COPYING.GPL;md5=0636e73ff0215e8d672dc4c32c317bb3&quot;">file://COPYING.GPL;md5=0636e73ff0215e8d672dc4c32c317bb3&quot;</a>
 
 # the package is taken from snapshots.debian.org; that source is static and goes stale
 # so we check the latest upstream from a directory that does get updated
 UPSTREAM_CHECK_URI = &quot;${DEBIAN_MIRROR}/main/a/apt/&quot;
 
-inherit autotools gettext
&#43;inherit autotools gettext useradd
 
 EXTRA_AUTORECONF = &quot;--exclude=autopoint,autoheader&quot;
 
@@ -29,3 &#43;29,6 @@ do_configure_prepend() {
     rm -rf ${S}/buildlib/config.sub
     rm -rf ${S}/buildlib/config.guess
 }
&#43;
&#43;USERADD_PACKAGES = &quot;${PN}&quot;
&#43;USERADD_PARAM_${PN} = &quot;--system --no-create-home --home-dir /nonexistent --shell /bin/false --user-group _apt&quot;
diff --git a/meta/recipes-devtools/apt/apt/0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch b/meta/recipes-devtools/apt/apt/0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch
index d33069b..b3a883b 100644
--- a/meta/recipes-devtools/apt/apt/0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch
&#43;&#43;&#43; b/meta/recipes-devtools/apt/apt/0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch
@@ -1,4 &#43;1,4 @@
-From 106797f1c66fa578dad21fd9380bf9d576573dfd Mon Sep 17 00:00:00 2001
&#43;From dfc1370d50322e2e9d225a7a63b44993fc01a727 Mon Sep 17 00:00:00 2001
 From: Roy Li &lt;<a href="mailto:rongqing.li@windriver.com">rongqing.li@windriver.com</a>&gt;
 Date: Fri, 22 May 2015 08:05:15 &#43;0800
 Subject: [PATCH] Revert &quot;always run 'dpkg --configure -a' at the end of our
@@ -16,21 &#43;16,16 @@ be passed into dpkg, and lead to the below similar error:
 
 Signed-off-by: Roy Li &lt;<a href="mailto:rongqing.li@windriver.com">rongqing.li@windriver.com</a>&gt;
 ---
- apt-pkg/deb/dpkgpm.cc                              |  9 &#43;--
- test/integration/framework                         | 25 &#43;&#43;&#43;&#43;----
- test/integration/test-apt-progress-fd              | 67 &#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;----------
- test/integration/test-apt-progress-fd-deb822       | 18 &#43;&#43;----
- test/integration/test-apt-progress-fd-error        |  2 &#43;-
- ...est-bug-769609-triggers-still-pending-after-run | 75 ----------------------
- .../test-no-fds-leaked-to-maintainer-scripts       |  6 &#43;-
- 7 files changed, 56 insertions(&#43;), 146 deletions(-)
- delete mode 100755 test/integration/test-bug-769609-triggers-still-pending-after-run
&#43; apt-pkg/deb/dpkgpm.cc                                     |  9 &#43;&#43;-------
&#43; test/integration/test-apt-progress-fd-deb822              | 14 &#43;&#43;&#43;&#43;&#43;&#43;&#43;-------
&#43; test/integration/test-no-fds-leaked-to-maintainer-scripts |  6 &#43;&#43;----
&#43; 3 files changed, 11 insertions(&#43;), 18 deletions(-)
 
 diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
-index b187efb..f269764 100644
&#43;index 834cb0e..84ded3a 100644
 --- a/apt-pkg/deb/dpkgpm.cc
 &#43;&#43;&#43; b/apt-pkg/deb/dpkgpm.cc
-@@ -1049,12 &#43;1049,6 @@ void pkgDPkgPM::BuildPackagesProgressMap()
&#43;@@ -1037,12 &#43;1037,6 @@ void pkgDPkgPM::BuildPackagesProgressMap()
           PackagesTotal&#43;&#43;;
        }
     }
@@ -42,8 &#43;37,8 @@ index b187efb..f269764 100644
 -   &#43;&#43;PackagesTotal;
  }
                                                                          /*}}}*/
- #if (APT_PKG_MAJOR &gt;= 4 &amp;&amp; APT_PKG_MINOR &lt; 13)
-@@ -1294,8 &#43;1288,9 @@ bool pkgDPkgPM::GoNoABIBreak(APT::Progress::PackageManager *progress)
&#43; bool pkgDPkgPM::Go(int StatusFd)
&#43;@@ -1250,8 &#43;1244,9 @@ bool pkgDPkgPM::Go(APT::Progress::PackageManager *progress)
  
     // support subpressing of triggers processing for special
     // cases like d-i that runs the triggers handling manually
@@ -54,159 &#43;49,11 @@ index b187efb..f269764 100644
        List.push_back(Item(Item::ConfigurePending, PkgIterator()));
  
     // for the progress
-diff --git a/test/integration/framework b/test/integration/framework
-index 70ad381..00672ad 100644
---- a/test/integration/framework
-&#43;&#43;&#43; b/test/integration/framework
-@@ -1178,13 &#43;1178,10 @@ testnopackage() {
-         fi
- }
- 
--testdpkgstatus() {
--        local STATE=&quot;$1&quot;
--        local NR=&quot;$2&quot;
--        shift 2
--        msgtest &quot;Test that $NR package(s) are in state $STATE with&quot; &quot;dpkg -l $*&quot;
--        local PKGS=&quot;$(dpkg -l &quot;$@&quot; 2&gt;/dev/null | grep &quot;^${STATE}&quot; | wc -l)&quot;
--        if [ &quot;$PKGS&quot; != $NR ]; then
-&#43;testdpkginstalled() {
-&#43;        msgtest &quot;Test for correctly installed package(s) with&quot; &quot;dpkg -l $*&quot;
-&#43;        local PKGS=&quot;$(dpkg -l &quot;$@&quot; 2&gt;/dev/null | grep '^i' | wc -l)&quot;
-&#43;        if [ &quot;$PKGS&quot; != $# ]; then
-                 echo &gt;&amp;2 $PKGS
-                 dpkg -l &quot;$@&quot; | grep '^[a-z]' &gt;&amp;2
-                 msgfail
-@@ -1193,12 &#43;1190,16 @@ testdpkgstatus() {
-         fi
- }
- 
--testdpkginstalled() {
--        testdpkgstatus 'ii' &quot;$#&quot; &quot;$@&quot;
--}
--
- testdpkgnotinstalled() {
--        testdpkgstatus 'ii' '0' &quot;$@&quot;
-&#43;        msgtest &quot;Test for correctly not-installed package(s) with&quot; &quot;dpkg -l $*&quot;
-&#43;        local PKGS=&quot;$(dpkg -l &quot;$@&quot; 2&gt; /dev/null | grep '^i' | wc -l)&quot;
-&#43;        if [ &quot;$PKGS&quot; != 0 ]; then
-&#43;                echo
-&#43;                dpkg -l &quot;$@&quot; | grep '^[a-z]' &gt;&amp;2
-&#43;                msgfail
-&#43;        else
-&#43;                msgpass
-&#43;        fi
- }
- 
- testmarkedauto() {
-diff --git a/test/integration/test-apt-progress-fd b/test/integration/test-apt-progress-fd
-index 68cc043..d72e7e7 100755
---- a/test/integration/test-apt-progress-fd
-&#43;&#43;&#43; b/test/integration/test-apt-progress-fd
-@@ -19,14 &#43;19,13 @@ testequal &quot;dlstatus:1:0:Retrieving file 1 of 1
- dlstatus:1:0:Retrieving file 1 of 1
- pmstatus:dpkg-exec:0:Running dpkg
- pmstatus:testing:0:Installing testing (amd64)
--pmstatus:testing:16.6667:Preparing testing (amd64)
--pmstatus:testing:33.3333:Unpacking testing (amd64)
--pmstatus:testing:50:Preparing to configure testing (amd64)
--pmstatus:dpkg-exec:50:Running dpkg
--pmstatus:testing:50:Configuring testing (amd64)
--pmstatus:testing:66.6667:Configuring testing (amd64)
--pmstatus:testing:83.3333:Installed testing (amd64)
--pmstatus:dpkg-exec:83.3333:Running dpkg&quot; cat apt-progress.log
-&#43;pmstatus:testing:20:Preparing testing (amd64)
-&#43;pmstatus:testing:40:Unpacking testing (amd64)
-&#43;pmstatus:testing:60:Preparing to configure testing (amd64)
-&#43;pmstatus:dpkg-exec:60:Running dpkg
-&#43;pmstatus:testing:60:Configuring testing (amd64)
-&#43;pmstatus:testing:80:Configuring testing (amd64)
-&#43;pmstatus:testing:100:Installed testing (amd64)&quot; cat apt-progress.log
- 
- # upgrade
- exec 3&gt; apt-progress.log
-@@ -35,14 &#43;34,13 @@ testequal &quot;dlstatus:1:0:Retrieving file 1 of 1
- dlstatus:1:0:Retrieving file 1 of 1
- pmstatus:dpkg-exec:0:Running dpkg
- pmstatus:testing:0:Installing testing (amd64)
--pmstatus:testing:16.6667:Preparing testing (amd64)
--pmstatus:testing:33.3333:Unpacking testing (amd64)
--pmstatus:testing:50:Preparing to configure testing (amd64)
--pmstatus:dpkg-exec:50:Running dpkg
--pmstatus:testing:50:Configuring testing (amd64)
--pmstatus:testing:66.6667:Configuring testing (amd64)
--pmstatus:testing:83.3333:Installed testing (amd64)
--pmstatus:dpkg-exec:83.3333:Running dpkg&quot; cat apt-progress.log
-&#43;pmstatus:testing:20:Preparing testing (amd64)
-&#43;pmstatus:testing:40:Unpacking testing (amd64)
-&#43;pmstatus:testing:60:Preparing to configure testing (amd64)
-&#43;pmstatus:dpkg-exec:60:Running dpkg
-&#43;pmstatus:testing:60:Configuring testing (amd64)
-&#43;pmstatus:testing:80:Configuring testing (amd64)
-&#43;pmstatus:testing:100:Installed testing (amd64)&quot; cat apt-progress.log
- 
- # reinstall
- exec 3&gt; apt-progress.log
-@@ -51,24 &#43;49,22 @@ testequal &quot;dlstatus:1:0:Retrieving file 1 of 1
- dlstatus:1:0:Retrieving file 1 of 1
- pmstatus:dpkg-exec:0:Running dpkg
- pmstatus:testing:0:Installing testing (amd64)
--pmstatus:testing:16.6667:Preparing testing (amd64)
--pmstatus:testing:33.3333:Unpacking testing (amd64)
--pmstatus:testing:50:Preparing to configure testing (amd64)
--pmstatus:dpkg-exec:50:Running dpkg
--pmstatus:testing:50:Configuring testing (amd64)
--pmstatus:testing:66.6667:Configuring testing (amd64)
--pmstatus:testing:83.3333:Installed testing (amd64)
--pmstatus:dpkg-exec:83.3333:Running dpkg&quot; cat apt-progress.log
-&#43;pmstatus:testing:20:Preparing testing (amd64)
-&#43;pmstatus:testing:40:Unpacking testing (amd64)
-&#43;pmstatus:testing:60:Preparing to configure testing (amd64)
-&#43;pmstatus:dpkg-exec:60:Running dpkg
-&#43;pmstatus:testing:60:Configuring testing (amd64)
-&#43;pmstatus:testing:80:Configuring testing (amd64)
-&#43;pmstatus:testing:100:Installed testing (amd64)&quot; cat apt-progress.log
- 
- # and remove
- exec 3&gt; apt-progress.log
- testsuccess aptget remove testing -y -o APT::Status-Fd=3
- testequal &quot;pmstatus:dpkg-exec:0:Running dpkg
- pmstatus:testing:0:Removing testing (amd64)
--pmstatus:testing:25:Preparing for removal of testing (amd64)
--pmstatus:testing:50:Removing testing (amd64)
--pmstatus:testing:75:Removed testing (amd64)
--pmstatus:dpkg-exec:75:Running dpkg&quot; cat apt-progress.log
-&#43;pmstatus:testing:33.3333:Preparing for removal of testing (amd64)
-&#43;pmstatus:testing:66.6667:Removing testing (amd64)
-&#43;pmstatus:testing:100:Removed testing (amd64)&quot; cat apt-progress.log
- 
- # install non-native and ensure we get proper progress info
- exec 3&gt; apt-progress.log
-@@ -79,13 &#43;75,12 @@ testequal &quot;dlstatus:1:0:Retrieving file 1 of 1
- dlstatus:1:0:Retrieving file 1 of 1
- pmstatus:dpkg-exec:0:Running dpkg
- pmstatus:testing2:0:Installing testing2 (i386)
--pmstatus:testing2:16.6667:Preparing testing2 (i386)
--pmstatus:testing2:33.3333:Unpacking testing2 (i386)
--pmstatus:testing2:50:Preparing to configure testing2 (i386)
--pmstatus:dpkg-exec:50:Running dpkg
--pmstatus:testing2:50:Configuring testing2 (i386)
--pmstatus:testing2:66.6667:Configuring testing2 (i386)
--pmstatus:testing2:83.3333:Installed testing2 (i386)
--pmstatus:dpkg-exec:83.3333:Running dpkg&quot; cat apt-progress.log
-&#43;pmstatus:testing2:20:Preparing testing2 (i386)
-&#43;pmstatus:testing2:40:Unpacking testing2 (i386)
-&#43;pmstatus:testing2:60:Preparing to configure testing2 (i386)
-&#43;pmstatus:dpkg-exec:60:Running dpkg
-&#43;pmstatus:testing2:60:Configuring testing2 (i386)
-&#43;pmstatus:testing2:80:Configuring testing2 (i386)
-&#43;pmstatus:testing2:100:Installed testing2 (i386)&quot; cat apt-progress.log
- 
- rm -f apt-progress*.log
 diff --git a/test/integration/test-apt-progress-fd-deb822 b/test/integration/test-apt-progress-fd-deb822
-index badc985..9d22794 100755
&#43;index 58fd732..3359762 100755
 --- a/test/integration/test-apt-progress-fd-deb822
 &#43;&#43;&#43; b/test/integration/test-apt-progress-fd-deb822
-@@ -27,41 &#43;27,37 @@ Message: Installing testing (amd64)
&#43;@@ -27,36 &#43;27,36 @@ Message: Installing testing (amd64)
  
  Status: progress
  Package: testing:amd64
@@ -248,109 &#43;95,10 @@ index badc985..9d22794 100755
 -Percent: 83.3333
 &#43;Percent: 100
  Message: Installed testing (amd64)
--
--Status: progress
--Percent: 83.3333
--Message: Running dpkg
- &quot; cat apt-progress.log
- 
  
-diff --git a/test/integration/test-apt-progress-fd-error b/test/integration/test-apt-progress-fd-error
-index 6323007..a47095b 100755
---- a/test/integration/test-apt-progress-fd-error
-&#43;&#43;&#43; b/test/integration/test-apt-progress-fd-error
-@@ -18,7 &#43;18,7 @@ setupaptarchive
- exec 3&gt; apt-progress.log
- testfailure aptget install foo1 foo2 -y -o APT::Status-Fd=3
- msgtest &quot;Ensure correct error message&quot;
--if grep -q &quot;aptarchive/pool/foo2_0.8.15_amd64.deb:36.3636:trying to overwrite '/usr/bin/file-conflict', which is also in package foo1 0.8.15&quot; apt-progress.log; then
-&#43;if grep -q &quot;aptarchive/pool/foo2_0.8.15_amd64.deb:40:trying to overwrite '/usr/bin/file-conflict', which is also in package foo1 0.8.15&quot; apt-progress.log; then
-         msgpass
- else
-         cat apt-progress.log
-diff --git a/test/integration/test-bug-769609-triggers-still-pending-after-run b/test/integration/test-bug-769609-triggers-still-pending-after-run
-deleted file mode 100755
-index 146fa76..0000000
---- a/test/integration/test-bug-769609-triggers-still-pending-after-run
-&#43;&#43;&#43; /dev/null
-@@ -1,75 &#43;0,0 @@
--#!/bin/sh
--set -e
--
--TESTDIR=$(readlink -f $(dirname $0))
--. $TESTDIR/framework
--
--setupenvironment
--configarchitecture 'amd64'
--
--msgtest 'Check if installed dpkg supports' 'noawait trigger'
--if dpkg-checkbuilddeps -d 'dpkg (&gt;= 1.16.1)' /dev/null; then
--        msgpass
--else
--        msgskip 'dpkg version too old'
--        exit 0
--fi
--configdpkgnoopchroot
--
--buildtriggerpackages() {
--        local TYPE=&quot;$1&quot;
--        setupsimplenativepackage &quot;triggerable-$TYPE&quot; 'all' '1.0' 'unstable' &quot;Depends: trigdepends-$TYPE&quot;
--        BUILDDIR=&quot;incoming/triggerable-${TYPE}-1.0&quot;
--        cat &gt;${BUILDDIR}/debian/postinst &lt;&lt;EOF
--#!/bin/sh
--if [ &quot;\$1&quot; = 'triggered' ]; then
--        ls -l /proc/self/fd/
--fi
--EOF
--        echo &quot;$TYPE /usr/share/doc&quot; &gt; ${BUILDDIR}/debian/triggers
--        buildpackage &quot;$BUILDDIR&quot; 'unstable' 'main' 'native'
--        rm -rf &quot;$BUILDDIR&quot;
--        buildsimplenativepackage &quot;trigdepends-$TYPE&quot; 'all' '1.0' 'unstable'
--}
--
--#buildtriggerpackages 'interest'
--buildtriggerpackages 'interest-noawait'
--buildsimplenativepackage &quot;trigstuff&quot; 'all' '1.0' 'unstable'
--
--setupaptarchive
--
--runtests() {
--        local TYPE=&quot;$1&quot;
--        msgmsg 'Working with trigger type' &quot;$TYPE&quot;
--        testsuccess aptget install triggerable-$TYPE -y
--        cp rootdir/tmp/testsuccess.output terminal.output
--        testsuccess grep '^REWRITE ' terminal.output
--        testdpkginstalled triggerable-$TYPE trigdepends-$TYPE
--
--        testsuccess aptget install trigdepends-$TYPE -y --reinstall
--        cp rootdir/tmp/testsuccess.output terminal.output
--        testsuccess grep '^REWRITE ' terminal.output
--        testsuccess grep ' root root ' terminal.output
--        testdpkginstalled triggerable-$TYPE trigdepends-$TYPE
--
--        testsuccess aptget install trigstuff -y
--        cp rootdir/tmp/testsuccess.output terminal.output
--        testsuccess grep '^REWRITE ' terminal.output
--        testsuccess grep ' root root ' terminal.output
--        testdpkginstalled triggerable-$TYPE trigdepends-$TYPE trigstuff
--
--        testsuccess aptget purge trigstuff -y
--        cp rootdir/tmp/testsuccess.output terminal.output
--        testsuccess grep '^REWRITE ' terminal.output
--        testsuccess grep ' root root ' terminal.output
--        testdpkginstalled triggerable-$TYPE trigdepends-$TYPE
--        testdpkgnotinstalled trigstuff
--
--        testsuccess aptget purge trigdepends-$TYPE -y
--        cp rootdir/tmp/testsuccess.output terminal.output
--        testfailure grep '^REWRITE ' terminal.output
--        testfailure grep ' root root ' terminal.output
--        testdpkgnotinstalled triggerable-$TYPE trigdepends-$TYPE
--}
--#runtests 'interest'
--runtests 'interest-noawait'
&#43; Status: progress
 diff --git a/test/integration/test-no-fds-leaked-to-maintainer-scripts b/test/integration/test-no-fds-leaked-to-maintainer-scripts
-index 41c0570..d3960d7 100755
&#43;index d86e638..ef6d23b 100755
 --- a/test/integration/test-no-fds-leaked-to-maintainer-scripts
 &#43;&#43;&#43; b/test/integration/test-no-fds-leaked-to-maintainer-scripts
 @@ -59,8 &#43;59,7 @@ startup packages configure
diff --git a/meta/recipes-devtools/apt/apt/0001-fix-the-gcc-version-check.patch b/meta/recipes-devtools/apt/apt/0001-fix-the-gcc-version-check.patch
index beea56d..3ac9246 100644
--- a/meta/recipes-devtools/apt/apt/0001-fix-the-gcc-version-check.patch
&#43;&#43;&#43; b/meta/recipes-devtools/apt/apt/0001-fix-the-gcc-version-check.patch
@@ -1,4 &#43;1,4 @@
-From 15c6ef6a827d3681ad06e862d27ab3dfb84cb687 Mon Sep 17 00:00:00 2001
&#43;From 53c5d0982f03fd0e24c4195d6e1e42b9ade9d500 Mon Sep 17 00:00:00 2001
 From: Roy Li &lt;<a href="mailto:rongqing.li@windriver.com">rongqing.li@windriver.com</a>&gt;
 Date: Wed, 27 May 2015 14:30:28 &#43;0800
 Subject: [PATCH] fix the gcc version check
@@ -9,37 &#43;9,29 @@ Upstream-Status: pending
 
 Signed-off-by: Roy Li &lt;<a href="mailto:rongqing.li@windriver.com">rongqing.li@windriver.com</a>&gt;
 ---
- apt-pkg/cacheset.h           |  4 &#43;&#43;--
- apt-pkg/deb/debsrcrecords.cc | 12 &#43;&#43;&#43;&#43;&#43;&#43;------
- apt-pkg/srcrecords.cc        |  4 &#43;&#43;--
- apt-pkg/srcrecords.h         |  4 &#43;&#43;--
- apt-pkg/vendorlist.cc        |  4 &#43;&#43;--
- 5 files changed, 14 insertions(&#43;), 14 deletions(-)
&#43; apt-pkg/contrib/macros.h     | 2 &#43;-
&#43; apt-pkg/deb/debsrcrecords.cc | 4 &#43;&#43;--
&#43; apt-pkg/srcrecords.cc        | 4 &#43;&#43;--
&#43; 3 files changed, 5 insertions(&#43;), 5 deletions(-)
 
-diff --git a/apt-pkg/cacheset.h b/apt-pkg/cacheset.h
-index b7229bc..8cc2917 100644
---- a/apt-pkg/cacheset.h
-&#43;&#43;&#43; b/apt-pkg/cacheset.h
-@@ -119,12 &#43;119,12 @@ public:
-                 inline std::string FullName(bool const Pretty) const { return getPkg().FullName(Pretty); }
-                 inline std::string FullName() const { return getPkg().FullName(); }
-                 APT_DEPRECATED inline const char *Section() const {
--#if __GNUC__ &gt;= 4
-&#43;#if __GNUC__ &gt;= 4 &#43; (6 &gt;= __GNUC_MINOR__)
-         #pragma GCC diagnostic push
-         #pragma GCC diagnostic ignored &quot;-Wdeprecated-declarations&quot;
&#43;diff --git a/apt-pkg/contrib/macros.h b/apt-pkg/contrib/macros.h
&#43;index 2727fd8..0ecae50 100644
&#43;--- a/apt-pkg/contrib/macros.h
&#43;&#43;&#43;&#43; b/apt-pkg/contrib/macros.h
&#43;@@ -136,7 &#43;136,7 @@
  #endif
-            return getPkg().Section();
&#43; #endif
&#43; 
 -#if __GNUC__ &gt;= 4
 &#43;#if __GNUC__ &gt;= 4 &#43; (6 &gt;= __GNUC_MINOR__)
-         #pragma GCC diagnostic pop
- #endif
-                 }
&#43;         #define APT_IGNORE_DEPRECATED_PUSH \
&#43;                 _Pragma(&quot;GCC diagnostic push&quot;) \
&#43;                 _Pragma(&quot;GCC diagnostic ignored \&quot;-Wdeprecated-declarations\&quot;&quot;)
 diff --git a/apt-pkg/deb/debsrcrecords.cc b/apt-pkg/deb/debsrcrecords.cc
-index 49a348d..4bc9dcf 100644
&#43;index e8295de..40160b2 100644
 --- a/apt-pkg/deb/debsrcrecords.cc
 &#43;&#43;&#43; b/apt-pkg/deb/debsrcrecords.cc
-@@ -126,13 &#43;126,13 @@ bool debSrcRecordParser::Files(std::vector&lt;pkgSrcRecords::File&gt; &amp;F)
&#43;@@ -139,13 &#43;139,13 @@ bool debSrcRecordParser::Files(std::vector&lt;pkgSrcRecords::File&gt; &amp;F)
     for (std::vector&lt;pkgSrcRecords::File2&gt;::const_iterator f2 = F2.begin(); f2 != F2.end(); &#43;&#43;f2)
     {
        pkgSrcRecords::File2 f;
@@ -55,46 &#43;47,11 @@ index 49a348d..4bc9dcf 100644
          #pragma GCC diagnostic pop
  #endif
        f.Path = f2-&gt;Path;
-@@ -190,14 &#43;190,14 @@ bool debSrcRecordParser::Files2(std::vector&lt;pkgSrcRecords::File2&gt; &amp;List)
-          // we have it already, store the new hash and be done
-          if (file != List.end())
-          {
--#if __GNUC__ &gt;= 4
-&#43;#if __GNUC__ &gt;= 4 &#43; (6 &gt;= __GNUC_MINOR__)
-         // set for compatibility only, so warn users not us
-         #pragma GCC diagnostic push
-         #pragma GCC diagnostic ignored &quot;-Wdeprecated-declarations&quot;
- #endif
-             if (checksumField == &quot;Files&quot;)
-                file-&gt;MD5Hash = hash;
--#if __GNUC__ &gt;= 4
-&#43;#if __GNUC__ &gt;= 4 &#43; (6 &gt;= __GNUC_MINOR__)
-         #pragma GCC diagnostic pop
- #endif
-             // an error here indicates that we have two different hashes for the same file
-@@ -212,7 &#43;212,7 @@ bool debSrcRecordParser::Files2(std::vector&lt;pkgSrcRecords::File2&gt; &amp;List)
-          F.FileSize = strtoull(size.c_str(), NULL, 10);
-          F.Hashes.push_back(hashString);
- 
--#if __GNUC__ &gt;= 4
-&#43;#if __GNUC__ &gt;= 4 &#43; (6 &gt;= __GNUC_MINOR__)
-         // set for compatibility only, so warn users not us
-         #pragma GCC diagnostic push
-         #pragma GCC diagnostic ignored &quot;-Wdeprecated-declarations&quot;
-@@ -220,7 &#43;220,7 @@ bool debSrcRecordParser::Files2(std::vector&lt;pkgSrcRecords::File2&gt; &amp;List)
-          F.Size = F.FileSize;
-          if (checksumField == &quot;Files&quot;)
-             F.MD5Hash = hash;
--#if __GNUC__ &gt;= 4
-&#43;#if __GNUC__ &gt;= 4 &#43; (6 &gt;= __GNUC_MINOR__)
-         #pragma GCC diagnostic pop
- #endif
- 
 diff --git a/apt-pkg/srcrecords.cc b/apt-pkg/srcrecords.cc
-index 3175ee7..340e796 100644
&#43;index 53d7e60..1484828 100644
 --- a/apt-pkg/srcrecords.cc
 &#43;&#43;&#43; b/apt-pkg/srcrecords.cc
-@@ -160,7 &#43;160,7 @@ bool pkgSrcRecords::Parser::Files2(std::vector&lt;pkgSrcRecords::File2&gt; &amp;F2)/*{{{*/
&#43;@@ -157,7 &#43;157,7 @@ bool pkgSrcRecords::Parser::Files2(std::vector&lt;pkgSrcRecords::File2&gt; &amp;F2)/*{{{*/
     for (std::vector&lt;pkgSrcRecords::File&gt;::const_iterator f = F.begin(); f != F.end(); &#43;&#43;f)
     {
        pkgSrcRecords::File2 f2;
@@ -103,7 &#43;60,7 @@ index 3175ee7..340e796 100644
          #pragma GCC diagnostic push
          #pragma GCC diagnostic ignored &quot;-Wdeprecated-declarations&quot;
  #endif
-@@ -168,7 &#43;168,7 @@ bool pkgSrcRecords::Parser::Files2(std::vector&lt;pkgSrcRecords::File2&gt; &amp;F2)/*{{{*/
&#43;@@ -165,7 &#43;165,7 @@ bool pkgSrcRecords::Parser::Files2(std::vector&lt;pkgSrcRecords::File2&gt; &amp;F2)/*{{{*/
        f2.Size = f-&gt;Size;
        f2.Hashes.push_back(HashString(&quot;MD5Sum&quot;, f-&gt;MD5Hash));
        f2.FileSize = f-&gt;Size;
@@ -112,49 &#43;69,6 @@ index 3175ee7..340e796 100644
          #pragma GCC diagnostic pop
  #endif
        f2.Path = f-&gt;Path;
-diff --git a/apt-pkg/srcrecords.h b/apt-pkg/srcrecords.h
-index dde22bd..91f8061 100644
---- a/apt-pkg/srcrecords.h
-&#43;&#43;&#43; b/apt-pkg/srcrecords.h
-@@ -30,7 &#43;30,7 @@ class pkgSrcRecords
- {
-    public:
- 
--#if __GNUC__ &gt;= 4
-&#43;#if __GNUC__ &gt;= 4 &#43; (6 &gt;= __GNUC_MINOR__)
-         // ensure that con- &amp; de-structor don't trigger this warning
-         #pragma GCC diagnostic push
-         #pragma GCC diagnostic ignored &quot;-Wdeprecated-declarations&quot;
-@@ -48,7 &#43;48,7 @@ class pkgSrcRecords
-       unsigned long long FileSize;
-       HashStringList Hashes;
-    };
--#if __GNUC__ &gt;= 4
-&#43;#if __GNUC__ &gt;= 4 &#43; (6 &gt;= __GNUC_MINOR__)
-         #pragma GCC diagnostic pop
- #endif
- 
-diff --git a/apt-pkg/vendorlist.cc b/apt-pkg/vendorlist.cc
-index fb33ff1..ba1d3c3 100644
---- a/apt-pkg/vendorlist.cc
-&#43;&#43;&#43; b/apt-pkg/vendorlist.cc
-@@ -11,7 &#43;11,7 @@
- 
- #include &lt;apti18n.h&gt;
- 
--#if __GNUC__ &gt;= 4
-&#43;#if __GNUC__ &gt;= 4 &#43; (6 &gt;= __GNUC_MINOR__)
-         #pragma GCC diagnostic push
-         #pragma GCC diagnostic ignored &quot;-Wdeprecated-declarations&quot;
- #endif
-@@ -163,6 &#43;163,6 @@ const Vendor* pkgVendorList::FindVendor(const std::vector&lt;string&gt; GPGVOutput)        /*
- }
-                                                                         /*}}}*/
- 
--#if __GNUC__ &gt;= 4
-&#43;#if __GNUC__ &gt;= 4 &#43; (6 &gt;= __GNUC_MINOR__)
-         #pragma GCC diagnostic pop
- #endif
 -- 
-1.9.1
&#43;2.1.4
 
diff --git a/meta/recipes-devtools/apt/apt/0001-remove-Wsuggest-attribute-from-CFLAGS.patch b/meta/recipes-devtools/apt/apt/0001-remove-Wsuggest-attribute-from-CFLAGS.patch
index 7c42ff0..47870e3 100644
--- a/meta/recipes-devtools/apt/apt/0001-remove-Wsuggest-attribute-from-CFLAGS.patch
&#43;&#43;&#43; b/meta/recipes-devtools/apt/apt/0001-remove-Wsuggest-attribute-from-CFLAGS.patch
@@ -1,4 &#43;1,4 @@
-From 2bff7ee06a4f96e7d326991d61fb86f8aa651d48 Mon Sep 17 00:00:00 2001
&#43;From 9fdf50d63df08ee65e7d8e62c35f19ac4841bca9 Mon Sep 17 00:00:00 2001
 From: Roy Li &lt;<a href="mailto:rongqing.li@windriver.com">rongqing.li@windriver.com</a>&gt;
 Date: Wed, 27 May 2015 09:48:45 &#43;0800
 Subject: [PATCH] remove Wsuggest-attribute from CXXFLAGS
@@ -15,29 &#43;15,29 @@ Signed-off-by: Roy Li &lt;<a href="mailto:rongqing.li@windriver.com">rongqing.li@windriver.com</a>&gt;
  2 files changed, 2 deletions(-)
 
 diff --git a/buildlib/environment.mak.in b/buildlib/environment.mak.in
-index b0a8d9d..91ed011 100644
&#43;index 9620722..c344d01 100644
 --- a/buildlib/environment.mak.in
 &#43;&#43;&#43; b/buildlib/environment.mak.in
-@@ -11,7 &#43;11,6 @@ CPPFLAGS&#43;= @CPPFLAGS@ @DEFS@ -D_REENTRANT -D_FORTIFY_SOURCE=2
- CXX = @CXX@
- CXXFLAGS&#43;= @CXXFLAGS@ -Wall -Wextra
&#43;@@ -14,7 &#43;14,6 @@ CXXFLAGS&#43;= @CXXFLAGS@ -Wall -Wextra
  CXXFLAGS&#43;= -Wcast-align -Wlogical-op -Wredundant-decls -Wmissing-declarations -Wunsafe-loop-optimizations
--CXXFLAGS&#43;= -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=noreturn
&#43; CXXFLAGS&#43;= -Wctor-dtor-privacy -Wdisabled-optimization -Winit-self -Wmissing-include-dirs -Wnoexcept -Wsign-promo -Wundef
&#43; # suggests methods which already have such an attribute
&#43;-#CXXFLAGS&#43;= -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=noreturn
&#43; # sanitize options to be enabled for testing
&#43; #CXXFLAGS&#43;= -fsanitize=address -fsanitize=undefined -fno-sanitize=vptr
  # a bit too pedantic to be run by default
- #CXXFLAGS&#43;= -Wpedantic -Wno-long-long -Wno-vla -Wno-variadic-macros
- NUM_PROCS = @NUM_PROCS@
 diff --git a/test/libapt/makefile b/test/libapt/makefile
-index 7f23ace..e805f13 100644
&#43;index 5ff9cf6..c5b5190 100644
 --- a/test/libapt/makefile
 &#43;&#43;&#43; b/test/libapt/makefile
-@@ -39,7 &#43;39,6 @@ CXXFLAGS &#43;= -pthread
&#43;@@ -40,7 &#43;40,6 @@ CXXFLAGS &#43;= -pthread
  # disable some flags for gtest again
  CXXFLAGS&#43;= -Wno-missing-declarations
  CXXFLAGS&#43;= -Wno-missing-field-initializers
 -CXXFLAGS&#43;= -Wno-suggest-attribute=pure -Wno-suggest-attribute=const -Wno-suggest-attribute=noreturn
&#43; CXXFLAGS&#43;= -Wno-undef
  
  # All Google Test headers.  Usually you shouldn't change this definition.
- GTEST_HEADERS = /usr/include/gtest/*.h \
 -- 
-1.9.1
&#43;2.1.4
 
diff --git a/meta/recipes-devtools/apt/apt/disable-test.patch b/meta/recipes-devtools/apt/apt/disable-test.patch
index 676795d..0532671 100644
--- a/meta/recipes-devtools/apt/apt/disable-test.patch
&#43;&#43;&#43; b/meta/recipes-devtools/apt/apt/disable-test.patch
@@ -1,35 &#43;1,51 @@
-[PATCH] disable test
&#43;From 67bc7948e0a721c75d636931abc105da5dcb0763 Mon Sep 17 00:00:00 2001
&#43;From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= &lt;<a href="mailto:anibal.limon@linux.intel.com">anibal.limon@linux.intel.com</a>&gt;
&#43;Date: Thu, 26 May 2016 15:32:11 -0500
&#43;Subject: [PATCH] [PATCH] disable test
&#43;MIME-Version: 1.0
&#43;Content-Type: text/plain; charset=UTF-8
&#43;Content-Transfer-Encoding: 8bit
 
 Upstream-Status: Inappropriate [configuration]
 
 test needs gtest package, so not build the test dir
 
 Signed-off-by: Roy Li &lt;<a href="mailto:rongqing.li@windriver.com">rongqing.li@windriver.com</a>&gt;
&#43;Signed-off-by: Aníbal Limón &lt;<a href="mailto:anibal.limon@linux.intel.com">anibal.limon@linux.intel.com</a>&gt;
 ---
- Makefile     | 7 &#43;&#43;&#43;----
- configure.ac | 6 ------
- 2 files changed, 3 insertions(&#43;), 10 deletions(-)
&#43; Makefile     | 9 &#43;&#43;&#43;------
&#43; configure.ac | 7 -------
&#43; 2 files changed, 3 insertions(&#43;), 13 deletions(-)
 
 diff --git a/Makefile b/Makefile
-index 5f5fb27..5070e96 100644
&#43;index 7680f08..69527a5 100644
 --- a/Makefile
 &#43;&#43;&#43; b/Makefile
 @@ -9,8 &#43;9,8 @@ endif
  .PHONY: default
  default: startup all
  
--.PHONY: headers library clean veryclean all binary program doc test update-po
&#43;-.PHONY: fast headers library clean veryclean all binary program doc test update-po
 -all headers library clean veryclean binary program doc manpages docbook test update-po startup dirs:
-&#43;.PHONY: headers library clean veryclean all binary program doc update-po
&#43;&#43;.PHONY: fast headers library clean veryclean all binary program doc update-po
 &#43;all headers library clean veryclean binary program doc manpages docbook update-po startup dirs:
          $(MAKE) -C vendor $@
          $(MAKE) -C apt-pkg $@
          $(MAKE) -C apt-inst $@
-@@ -21,9 &#43;21,8 @@ all headers library clean veryclean binary program doc manpages docbook test upd
&#43;@@ -21,8 &#43;21,6 @@ all headers library clean veryclean binary program doc manpages docbook test upd
          $(MAKE) -C dselect $@
- #        $(MAKE) -C doc $@
&#43;         $(MAKE) -C doc $@
          $(MAKE) -C po $@
--        $(MAKE) -C test $@
&#43;-        # FIXME: -C test has issue swith parallel builds, investigate!
&#43;-        -$(MAKE) -C test $@
&#43; 
&#43; fast:
&#43;         $(MAKE) -C vendor all
&#43;@@ -32,9 &#43;30,8 @@ fast:
&#43;         $(MAKE) -C methods all
&#43;         $(MAKE) -C cmdline all
&#43;         $(MAKE) -C ftparchive all
&#43;-        $(MAKE) -C test all
  
 -all headers library clean veryclean binary program doc manpages docbook test update-po: startup dirs
 &#43;all headers library clean veryclean binary program doc manpages docbook update-po: startup dirs
@@ -37,22 &#43;53,23 @@ index 5f5fb27..5070e96 100644
  dirs: startup
  
 diff --git a/configure.ac b/configure.ac
-index 5663aaf..b0f9564 100644
&#43;index 1f05da5..e47f459 100644
 --- a/configure.ac
 &#43;&#43;&#43; b/configure.ac
-@@ -89,12 &#43;89,6 @@ AC_CHECK_LIB(curl, curl_easy_init,
&#43;@@ -90,13 &#43;90,6 @@ AC_CHECK_LIB(curl, curl_easy_init,
       AC_MSG_ERROR([failed: I need CURL due https support]),
  )
  
 -AC_LANG_PUSH([C&#43;&#43;])
 -AC_CHECK_HEADER(gtest/gtest.h,,
--     AC_MSG_ERROR([failed: I need gtest to build tests]),
&#43;-     AC_MSG_WARN([failed: I need gtest (packaged as libgtest-dev) for unit testing]),
 -)
 -AC_LANG_POP([C&#43;&#43;])
 -
- 
&#43;-
  AC_SUBST(BDBLIB)
  
&#43; HAVE_ZLIB=no
 -- 
-1.9.1
&#43;2.1.4
 
diff --git a/meta/recipes-devtools/apt/apt_1.0.10.1.bb b/meta/recipes-devtools/apt/apt_1.0.10.1.bb
deleted file mode 100644
index 85c0d56..0000000
--- a/meta/recipes-devtools/apt/apt_1.0.10.1.bb
&#43;&#43;&#43; /dev/null
@@ -1,19 &#43;0,0 @@
-DEPENDS = &quot;curl db zlib&quot;
-RDEPENDS_${PN} = &quot;dpkg bash debianutils&quot;
-require apt.inc
-
-require apt-package.inc
-
-PACKAGECONFIG ??= &quot;lzma&quot;
-PACKAGECONFIG[lzma] = &quot;ac_cv_lib_lzma_lzma_easy_encoder=yes,ac_cv_lib_lzma_lzma_easy_encoder=no,xz&quot;
-PACKAGECONFIG[bz2] = &quot;ac_cv_lib_bz2_BZ2_bzopen=yes,ac_cv_lib_bz2_BZ2_bzopen=no,bzip2&quot;
-
-FILES_${PN} &#43;= &quot;${bindir}/apt-key&quot;
-apt-manpages &#43;= &quot;doc/apt-key.8&quot;
-
-do_install_append() {
-    #Write the correct apt-architecture to apt.conf
-    APT_CONF=${D}/etc/apt/apt.conf
-    echo 'APT::Architecture &quot;${DPKG_ARCH}&quot;;' &gt; ${APT_CONF}
-    oe_libinstall -so -C bin libapt-private ${D}${libdir}/
-}
diff --git a/meta/recipes-devtools/apt/apt_1.2.12.bb b/meta/recipes-devtools/apt/apt_1.2.12.bb
new file mode 100644
index 0000000..85c0d56
--- /dev/null
&#43;&#43;&#43; b/meta/recipes-devtools/apt/apt_1.2.12.bb
@@ -0,0 &#43;1,19 @@
&#43;DEPENDS = &quot;curl db zlib&quot;
&#43;RDEPENDS_${PN} = &quot;dpkg bash debianutils&quot;
&#43;require apt.inc
&#43;
&#43;require apt-package.inc
&#43;
&#43;PACKAGECONFIG ??= &quot;lzma&quot;
&#43;PACKAGECONFIG[lzma] = &quot;ac_cv_lib_lzma_lzma_easy_encoder=yes,ac_cv_lib_lzma_lzma_easy_encoder=no,xz&quot;
&#43;PACKAGECONFIG[bz2] = &quot;ac_cv_lib_bz2_BZ2_bzopen=yes,ac_cv_lib_bz2_BZ2_bzopen=no,bzip2&quot;
&#43;
&#43;FILES_${PN} &#43;= &quot;${bindir}/apt-key&quot;
&#43;apt-manpages &#43;= &quot;doc/apt-key.8&quot;
&#43;
&#43;do_install_append() {
&#43;    #Write the correct apt-architecture to apt.conf
&#43;    APT_CONF=${D}/etc/apt/apt.conf
&#43;    echo 'APT::Architecture &quot;${DPKG_ARCH}&quot;;' &gt; ${APT_CONF}
&#43;    oe_libinstall -so -C bin libapt-private ${D}${libdir}/
&#43;}
diff --git a/meta/recipes-devtools/apt/files/no-curl.patch b/meta/recipes-devtools/apt/files/no-curl.patch
index 30238fa..0838552 100644
--- a/meta/recipes-devtools/apt/files/no-curl.patch
&#43;&#43;&#43; b/meta/recipes-devtools/apt/files/no-curl.patch
@@ -1,13 &#43;1,23 @@
 Upstream-Status: Inappropriate [configuration]
&#43;From 5d61ac822fd9a3871cd5089389c210606232ecdc Mon Sep 17 00:00:00 2001
&#43;From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= &lt;<a href="mailto:anibal.limon@linux.intel.com">anibal.limon@linux.intel.com</a>&gt;
&#43;Date: Thu, 26 May 2016 15:34:45 -0500
&#43;Subject: [PATCH] Upstream-Status: Inappropriate [configuration]
&#43;MIME-Version: 1.0
&#43;Content-Type: text/plain; charset=UTF-8
&#43;Content-Transfer-Encoding: 8bit
 
&#43;Signed-off-by: Aníbal Limón &lt;<a href="mailto:anibal.limon@linux.intel.com">anibal.limon@linux.intel.com</a>&gt;
 ---
- configure.in     |    6 ------
- methods/makefile |    7 -------
- 2 files changed, 13 deletions(-)
&#43; configure.ac     | 7 -------
&#43; methods/makefile | 7 -------
&#43; 2 files changed, 14 deletions(-)
 
&#43;diff --git a/configure.ac b/configure.ac
&#43;index e47f459..cd24264 100644
 --- a/configure.ac
 &#43;&#43;&#43; b/configure.ac
-@@ -86,12 &#43;86,6 @@ AC_CHECK_HEADER(db.h,
&#43;@@ -83,13 &#43;83,6 @@ AC_CHECK_HEADER(db.h,
  
  LIBS=&quot;$saveLIBS&quot;
  
@@ -17,9 &#43;27,12 @@ Upstream-Status: Inappropriate [configuration]
 -        curl_ok=no)],
 -     AC_MSG_ERROR([failed: I need CURL due https support]),
 -)
- 
&#43;-
  AC_SUBST(BDBLIB)
  
&#43; HAVE_ZLIB=no
&#43;diff --git a/methods/makefile b/methods/makefile
&#43;index 3274e92..255086b 100644
 --- a/methods/makefile
 &#43;&#43;&#43; b/methods/makefile
 @@ -51,13 &#43;51,6 @@ LIB_MAKES = apt-pkg/makefile
@@ -28,11 &#43;41,14 @@ Upstream-Status: Inappropriate [configuration]
  
 -# The https method
 -PROGRAM=https
--SLIBS = -lapt-pkg -lcurl $(INTLLIBS)
&#43;-SLIBS = -lapt-pkg -lcurl $(INTLLIBS) -lresolv
 -LIB_MAKES = apt-pkg/makefile
 -SOURCE = https.cc server.cc
 -include $(PROGRAM_H)
 -
  # The ftp method
  PROGRAM=ftp
- SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS)
&#43; SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS) -lresolv
&#43;-- 
&#43;2.1.4
&#43;

</blockquote>
</pre>
</blockquote>
</body>
</html>