* [Buildroot] [PATCH] dpkg: new package and host package
@ 2013-07-24 9:51 Thomas De Schampheleire
2013-07-27 13:17 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Thomas De Schampheleire @ 2013-07-24 9:51 UTC (permalink / raw)
To: buildroot
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 <thomas.de.schampheleire@gmail.com>
---
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(-)
diff --git a/package/Config.in b/package/Config.in
--- a/package/Config.in
+++ b/package/Config.in
@@ -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
diff --git a/package/Config.in.host b/package/Config.in.host
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -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"
diff --git a/package/dpkg/Config.in b/package/dpkg/Config.in
new file mode 100644
--- /dev/null
+++ b/package/dpkg/Config.in
@@ -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
diff --git a/package/dpkg/Config.in.host b/package/dpkg/Config.in.host
new file mode 100644
--- /dev/null
+++ b/package/dpkg/Config.in.host
@@ -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
diff --git a/package/dpkg/dpkg.mk b/package/dpkg/dpkg.mk
new file mode 100644
--- /dev/null
+++ b/package/dpkg/dpkg.mk
@@ -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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] dpkg: new package and host package
2013-07-24 9:51 [Buildroot] [PATCH] dpkg: new package and host package Thomas De Schampheleire
@ 2013-07-27 13:17 ` Thomas Petazzoni
2013-07-27 15:26 ` Thomas De Schampheleire
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2013-07-27 13:17 UTC (permalink / raw)
To: buildroot
Dear Thomas De Schampheleire,
On Wed, 24 Jul 2013 11:51:03 +0200, Thomas De Schampheleire wrote:
> 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 <thomas.de.schampheleire@gmail.com>
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
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] dpkg: new package and host package
2013-07-27 13:17 ` Thomas Petazzoni
@ 2013-07-27 15:26 ` Thomas De Schampheleire
0 siblings, 0 replies; 3+ messages in thread
From: Thomas De Schampheleire @ 2013-07-27 15:26 UTC (permalink / raw)
To: buildroot
Op 27-jul.-2013 15:17 schreef "Thomas Petazzoni" <
thomas.petazzoni@free-electrons.com> het volgende:
>
> Dear Thomas De Schampheleire,
>
> On Wed, 24 Jul 2013 11:51:03 +0200, Thomas De Schampheleire wrote:
> > 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 <
thomas.de.schampheleire@gmail.com>
>
> 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?
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>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-07-27 15:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-24 9:51 [Buildroot] [PATCH] dpkg: new package and host package Thomas De Schampheleire
2013-07-27 13:17 ` Thomas Petazzoni
2013-07-27 15:26 ` Thomas De Schampheleire
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox