dpkg: new package and host package
PATCH 1/1 dpkg: new package and host package
dpkg is the debian package manager. On target, it is useful to install .deb files containing certain software. On host, it is useful to create such .deb files. The creation of such .deb files could happen from a post-build script, or from project-specific packages.
--- package/Config.in | 1 + package/Config.in.host | 1 + package/dpkg/Config.in | 7 +++++++ package/dpkg/Config.in.host | 9 +++++++++ package/dpkg/dpkg.mk | 30 ++++++++++++++++++++++++++++++ 5 files changed, 48 insertions(+), 0 deletions(-)
package/Config.in +1 -0
@@ -840,6 +840,7 @@ source "package/xl2tp/Config.in" endmenu menu "Package managers" +source "package/dpkg/Config.in" source "package/ipkg/Config.in" source "package/opkg/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
package/Config.in.host +1 -0
@@ -2,6 +2,7 @@ menu "Host utilities" source "package/dfu-util/Config.in.host" source "package/dosfstools/Config.in.host" +source "package/dpkg/Config.in.host" source "package/e2fsprogs/Config.in.host" source "package/genext2fs/Config.in.host" source "package/genimage/Config.in.host"
package/dpkg/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_DPKG + bool "dpkg" + help + This package provides the low-level infrastructure for handling + the installation and removal of Debian software packages. + + http://wiki.debian.org/Teams/Dpkg
package/dpkg/Config.in.host new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_HOST_DPKG + bool "host dpkg" + help + This package provides the low-level infrastructure for handling + the installation and removal of Debian software packages. + You could use it from a post-build script, or from project-specific + packages, to create .deb files for use on target. + + http://wiki.debian.org/Teams/Dpkg
package/dpkg/dpkg.mk new file +30 -0
@@ -0,0 +1,30 @@ +################################################################################ +# +# dpkg +# +################################################################################ + +DPKG_VERSION = 1.16.10 +DPKG_SOURCE = dpkg_$(DPKG_VERSION).tar.xz +DPKG_SITE = http://ftp.de.debian.org/debian/pool/main/d/dpkg +DPKG_LICENSE = GPLv2+ +DPKG_LICENSE_FILES = COPYING + +DPKG_DEPENDENCIES = host-pkgconf +DPKG_CONF_OPT = \ + --localstatedir=/var \ + --disable-dselect \ + --disable-start-stop-daemon \ + --disable-update-alternatives + +HOST_DPKG_DEPENDENCIES = host-pkgconf +HOST_DPKG_CONF_OPT = \ + --disable-dselect \ + --disable-start-stop-daemon \ + --disable-update-alternatives + +$(eval $(autotools-package)) +$(eval $(host-autotools-package)) + +# variables used by other packages +DPKG:=$(HOST_DIR)/usr/bin/dpkg
PATCH 1/1 dpkg: new package and host package
Dear Thomas De Schampheleire,
Quoted 6 lines · Thomas De Schampheleire
dpkg is the debian package manager. On target, it is useful to install .deb files containing certain software. On host, it is useful to create such .deb files. The creation of such .deb files could happen from a post-build script, or from project-specific packages.
Signed-off-by Thomas De Schampheleire <[email protected]>
Thanks. Unfortunately, it doesn't build with a minimal uClibc ARM toolchain, apparently because dpkg doesn't recognize the linux-uclibcgnueabi tuple fragment as a valid operating system. I get:
checking for posix_fadvise... yes
checking dpkg cpu type... arm
configure: WARNING: arm not found in cputable
checking dpkg operating system type... linux-uclibcgnueabi
configure: WARNING: linux-uclibcgnueabi not found in ostable
checking dpkg architecture name... configure: error: cannot determine host dpkg architecture
make: *** [/home/thomas/projets/buildroot/output/build/dpkg-1.16.10/.stamp_configured] Erreur 1
Could you have a look?
Thanks!
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/1 dpkg: new package and host package
Op 27-jul.-2013 15:17 schreef "Thomas Petazzoni" < [email protected]> het volgende:
Quoted 10 lines
Dear Thomas De Schampheleire,
Quoted 6 lines · Thomas De Schampheleire
dpkg is the debian package manager. On target, it is useful to install .deb files containing certain software. On host, it is useful to create such .deb files. The creation of such .deb files could happen from a post-build script, or from project-specific packages.
Signed-off-by Thomas De Schampheleire <
Quoted 11 lines
Thanks. Unfortunately, it doesn't build with a minimal uClibc ARM toolchain, apparently because dpkg doesn't recognize the linux-uclibcgnueabi tuple fragment as a valid operating system. I get:
checking for
posix_fadvise... yes
checking dpkg cpu type... arm
configure: WARNING: arm not found in cputable
checking dpkg operating system type... linux-uclibcgnueabi
configure: WARNING: linux-uclibcgnueabi not found in ostable checking dpkg architecture name... configure: error: cannot determine
host dpkg architecture
Quoted 1 line
make: ***
[/home/thomas/projets/buildroot/output/build/dpkg-1.16.10/.stamp_configured] Erreur 1
Quoted 2 lines
Could you have a look?
Sure, I'll look into it and submit a new patch when it works...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130727/277db6c1/attachment.html>