Return-Path: Received: from spielplatz.cestona.ro (85-10-192-88.clients.your-server.de [85.10.192.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8DBBFE0090C for ; Tue, 25 Feb 2014 12:26:08 -0800 (PST) Received: from Error.fritz.box (agsb-4d04814a.pool.mediaways.net [::ffff:77.4.129.74]) (AUTH: LOGIN thilo@cestona.ro) by spielplatz with ESMTPA; Tue, 25 Feb 2014 21:26:07 +0100 id 0000000001D480F7.530CFC5F.00005251 From: Thilo Cestonaro To: Yocto discussion list Date: Tue, 25 Feb 2014 21:26:03 +0100 Message-Id: <1393359963-10611-1-git-send-email-thilo@cestona.ro> X-Mailer: git-send-email 1.8.3.2 Subject: [PATCH] create dpkg-deb compatible ipks/opks again X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Feb 2014 20:26:10 -0000 With a change from last august in dpkg-deb, the packages generated by opkg-build will not be accepted by dpkg-deb anymore. The change disallows that the data.tar.gz is packed into the ipk/opk before the control.tar.gz. For details have a look here: http://anonscm.debian.org/gitweb/?p=dpkg/dpkg.git;a=commitdiff;h=547dca4c3ff23df5dfa554f1943b371cd7056ee4 For details which order is correct, see "man 5 deb", but in short it is: debian-binary, control.tar.gz and data.tar.gz Signed-off-by: Thilo Cestonaro --- opkg-build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opkg-build b/opkg-build index 90a7111..e314712 100755 --- a/opkg-build +++ b/opkg-build @@ -247,9 +247,9 @@ fi rm -f $pkg_file if [ "$outer" = "ar" ] ; then - ( cd $tmp_dir && ar -crf $pkg_file ./debian-binary ./data.tar.gz ./control.tar.gz ) + ( cd $tmp_dir && ar -crf $pkg_file ./debian-binary ./control.tar.gz ./data.tar.gz ) else - ( cd $tmp_dir && tar -cz --format=gnu -f $pkg_file ./debian-binary ./data.tar.gz ./control.tar.gz ) + ( cd $tmp_dir && tar -cz --format=gnu -f $pkg_file ./debian-binary ./control.tar.gz ./data.tar.gz ) fi rm $tmp_dir/debian-binary $tmp_dir/data.tar.gz $tmp_dir/control.tar.gz -- 1.8.3.2