Skip to contentSkip to conversation

libdebian-installer: new package

PATCH New Benoît Allard 2 participants 4 messages Mar 17, 2016 – Mar 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libdebian-installer: new package

This package is a mandatory dependency of cdebootstrap.

---
 package/Config.in                                    |  1 +
 package/libdebian-installer/Config.in                | 11 +++++++++++
 package/libdebian-installer/libdebian-installer.hash |  3 +++
 package/libdebian-installer/libdebian-installer.mk   | 19 +++++++++++++++++++
 4 files changed, 34 insertions(+)
 create mode 100644 package/libdebian-installer/Config.in
 create mode 100644 package/libdebian-installer/libdebian-installer.hash
 create mode 100644 package/libdebian-installer/libdebian-installer.mk
package/Config.in +1 -0
index 2401867..db4ceab 100644
@@ -1208,6 +1208,7 @@ menu "Other"
 	source "package/libcroco/Config.in"
 	source "package/libcrossguid/Config.in"
 	source "package/libdaemon/Config.in"
+	source "package/libdebian-installer/Config.in"
 	source "package/libee/Config.in"
 	source "package/libev/Config.in"
 	source "package/libevdev/Config.in"
package/libdebian-installer/Config.in new file +11 -0
new file mode 100644
index 0000000..f3b0ed3
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_LIBDEBIAN_INSTALLER
+	bool "libdebian-installer"
+	select BR2_PACKAGE_CHECK
+	help
+	  This library is used by debian-installer to perform common
+	  functions such as logging messages and executing commands.
+	  If you aren't working on debian-installer or building your
+	  own install system based on debian-installer, then you
+	  probably don't need this library.
+
+	  http://debian.org
package/libdebian-installer/libdebian-installer.hash new file +3 -0
new file mode 100644
index 0000000..1a647a8
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 5bf6c1b88e99164d0411f8434523f0f3b8e7e3902da17c55fee740ab34746ebf libdebian-installer_0.104.tar.xz
+
package/libdebian-installer/libdebian-installer.mk new file +19 -0
new file mode 100644
index 0000000..18330fc
@@ -0,0 +1,19 @@
+################################################################################
+#
+# libdebian-installer
+#
+################################################################################
+
+
+LIBDEBIAN_INSTALLER_VERSION = 0.104
+LIBDEBIAN_INSTALLER_SOURCE = libdebian-installer_$(LIBDEBIAN_INSTALLER_VERSION).tar.xz
+LIBDEBIAN_INSTALLER_SITE = http://http.debian.net/debian/pool/main/libd/libdebian-installer
+LIBDEBIAN_INSTALLER_LICENSE = GPLv2
+LIBDEBIAN_INSTALLER_LICENSE_FILES = debian/copyright
+LIBDEBIAN_INSTALLER_INSTALL_STAGING = YES
+LIBDEBIAN_INSTALLER_INSTALL_TARGET = YES
+# Provided files are too old.
+LIBDEBIAN_INSTALLER_AUTORECONF = YES
+LIBDEBIAN_INSTALLER_DEPENDENCIES = check host-pkgconf
+
+$(eval $(autotools-package))
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/2 cdebootstrap: new package

cdebootstrap is used to create a Debian base system from scratch.

---
 package/Config.in                      |  3 +++
 package/cdebootstrap/Config.in         | 12 ++++++++++++
 package/cdebootstrap/cdebootstrap.hash |  3 +++
 package/cdebootstrap/cdebootstrap.mk   | 17 +++++++++++++++++
 4 files changed, 35 insertions(+)
 create mode 100644 package/cdebootstrap/Config.in
 create mode 100644 package/cdebootstrap/cdebootstrap.hash
 create mode 100644 package/cdebootstrap/cdebootstrap.mk
package/Config.in +3 -0
index db4ceab..3d19bda 100644
@@ -1598,6 +1598,9 @@ menu "System tools"
 	source "package/audit/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	source "package/bootutils/Config.in"
+endif
+	source "package/cdebootstrap/Config.in"
+if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	source "package/coreutils/Config.in"
 endif
 	source "package/cpuload/Config.in"
package/cdebootstrap/Config.in new file +12 -0
new file mode 100644
index 0000000..0ed9bfe
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_CDEBOOTSTRAP
+	bool "cdebootstrap"
+	select BR2_PACKAGE_LIBCURL
+	select BR2_PACKAGE_LIBDEBIAN_INSTALLER
+	select BR2_PACKAGE_ZLIB
+	select BR2_PACKAGE_BZIP2
+	select BR2_PACKAGE_XZ
+	help
+	  cdebootstrap generates systems from scratch for Debian and\
+	  derivates.
+
+	  https://packages.debian.org/cdebootstrap
package/cdebootstrap/cdebootstrap.hash new file +3 -0
new file mode 100644
index 0000000..eb0783e
@@ -0,0 +1,3 @@
+#Locally computed
+sha256 e33fe2c245894ab40dc4db764f31a0bf59cc80c34d9ebf2e71b715e49631bb34 cdebootstrap_0.6.4.tar.gz
+
package/cdebootstrap/cdebootstrap.mk new file +17 -0
new file mode 100644
index 0000000..172b83f
@@ -0,0 +1,17 @@
+################################################################################
+#
+# cdebootstrap
+#
+################################################################################
+
+CDEBOOTSTRAP_VERSION = 0.6.4
+CDEBOOTSTRAP_SOURCE = cdebootstrap_$(CDEBOOTSTRAP_VERSION).tar.gz
+CDEBOOTSTRAP_SITE = http://http.debian.net/debian/pool/main/c/cdebootstrap
+CDEBOOTSTRAP_LICENSE = GPLv2
+CDEBOOTSTRAP_LICENSE_FILES = debian/copyright
+CDEBOOTSTRAP_INSTALL_STAGING = NO
+CDEBOOTSTRAP_INSTALL_TARGET = YES
+CDEBOOTSTRAP_CONF_OPTS = 
+CDEBOOTSTRAP_DEPENDENCIES = libcurl libdebian-installer zlib bzip2 host-pkgconf xz
+
+$(eval $(autotools-package))
Signature · 1 line
2.1.4
#2 lore raw

PATCH 2/2 cdebootstrap: new package

Beno?t,

Quoted 3 lines · Beno?t Allard

cdebootstrap is used to create a Debian base system from scratch.

Could you give some details about the use case for such a package?

It seems somewhat weird, in the context of Buildroot, to use cdebootstrap on the target.

package/cdebootstrap/Config.in line 7

Quoted 13 lines
package/cdebootstrap/Config.in new file +7 -0
new file mode 100644
index 0000000..0ed9bfe
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_CDEBOOTSTRAP
+	bool "cdebootstrap"
+	select BR2_PACKAGE_LIBCURL
+	select BR2_PACKAGE_LIBDEBIAN_INSTALLER
+	select BR2_PACKAGE_ZLIB
+	select BR2_PACKAGE_BZIP2
+	select BR2_PACKAGE_XZ

Whenever possible, alphabetic ordering is preferred (though I agree it is not a rule we comply with everywhere in Buildroot).

package/cdebootstrap/Config.in line 10

Quoted 3 lines
package/cdebootstrap/Config.in new file +3 -0
+	help
+	  cdebootstrap generates systems from scratch for Debian and\
+	  derivates.

The trailing \ is not good.

package/cdebootstrap/cdebootstrap.hash line 3

Quoted 9 lines
package/cdebootstrap/cdebootstrap.hash new file +3 -0
new file mode 100644
index 0000000..eb0783e
@@ -0,0 +1,3 @@
+#Locally computed
+sha256 e33fe2c245894ab40dc4db764f31a0bf59cc80c34d9ebf2e71b715e49631bb34 cdebootstrap_0.6.4.tar.gz
+

Useless empty line here.

Quoted 6 lines
package/cdebootstrap/cdebootstrap.mk new file +0 -0
new file mode 100644
index 0000000..172b83f

package/cdebootstrap/cdebootstrap.mk line 9

Quoted 9 lines
package/cdebootstrap/cdebootstrap.mk new file +9 -0
@@ -0,0 +1,17 @@
+################################################################################
+#
+# cdebootstrap
+#
+################################################################################
+
+CDEBOOTSTRAP_VERSION = 0.6.4
+CDEBOOTSTRAP_SOURCE = cdebootstrap_$(CDEBOOTSTRAP_VERSION).tar.gz
+CDEBOOTSTRAP_SITE = http://http.debian.net/debian/pool/main/c/cdebootstrap

Those URLs are not stable, you should use snapshot.debian.org instead. Grep for snapshot.debian.org in Buildroot.

package/cdebootstrap/cdebootstrap.mk line 13

Quoted 4 lines
package/cdebootstrap/cdebootstrap.mk new file +4 -0
+CDEBOOTSTRAP_LICENSE = GPLv2
+CDEBOOTSTRAP_LICENSE_FILES = debian/copyright
+CDEBOOTSTRAP_INSTALL_STAGING = NO
+CDEBOOTSTRAP_INSTALL_TARGET = YES

Those two lines are not needed, since it's the default value.

package/cdebootstrap/cdebootstrap.mk line 14

Quoted 1 line
package/cdebootstrap/cdebootstrap.mk new file +1 -0
+CDEBOOTSTRAP_CONF_OPTS = 

Not needed.

package/cdebootstrap/cdebootstrap.mk line 15

Quoted 1 line
package/cdebootstrap/cdebootstrap.mk new file +1 -0
+CDEBOOTSTRAP_DEPENDENCIES = libcurl libdebian-installer zlib bzip2 host-pkgconf xz

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH 2/2 cdebootstrap: new package

Quoted 11 lines · On Thu, 17 Mar 2016 21:30:43 +0100 Thomas Petazzoni…

Beno?t,

Quoted 3 lines · Beno?t Allard

cdebootstrap is used to create a Debian base system from scratch.

Could you give some details about the use case for such a package?

It seems somewhat weird, in the context of Buildroot, to use cdebootstrap on the target.

Sure, looks like it's time for me to explain a bit our use-case of buildroot.

Greenbone is selling Debian-based Network appliances. Those appliances have a flash (recovery) partition next to their main hard-disk(s). The goal of this partition is to recover the appliance in case of troubles, and one of the options we offer there is to perform a 'Factory-Reset' during which the whole system will be wiped, formatted and installed from scratch again. To do that, we need (among others) 'cdebootstrap'. We like the system on that flash partition to be as small and dedicated as possible. Previously, we did that with some kind of stripped-down statically-linked homegrown gentoo/arch and **a lots** of magic. I believe you can understand our relief when we discovered the buildroot project. Kudos to you all there !

This same partition, we also burn it on CD, and copy it on USB stick to perform the initial install of our system, hence all the questions around iso9660 and syslinux as well.

I'll address the remarks to the patch in a new version of it.

Quoted 67 lines
Quoted 7 lines
(quoted diff) +0 -0

b/package/cdebootstrap/Config.in new file mode 100644 index 0000000..0ed9bfe

package/cdebootstrap/Config.in line 7

Quoted 7 lines
package/cdebootstrap/Config.in new file +7 -0
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_CDEBOOTSTRAP
+	bool "cdebootstrap"
+	select BR2_PACKAGE_LIBCURL
+	select BR2_PACKAGE_LIBDEBIAN_INSTALLER
+	select BR2_PACKAGE_ZLIB
+	select BR2_PACKAGE_BZIP2
+	select BR2_PACKAGE_XZ

Whenever possible, alphabetic ordering is preferred (though I agree it is not a rule we comply with everywhere in Buildroot).

package/cdebootstrap/Config.in line 10

Quoted 4 lines
package/cdebootstrap/Config.in new file +2 -0
+	help
+	  cdebootstrap generates systems from scratch for Debian

and\

package/cdebootstrap/Config.in new file +1 -0
+	  derivates.

The trailing \ is not good.

Quoted 10 lines
(quoted diff) +0 -0

b/package/cdebootstrap/cdebootstrap.hash new file mode 100644 index 0000000..eb0783e

package/cdebootstrap/cdebootstrap.hash new file +2 -0
@@ -0,0 +1,3 @@
+#Locally computed
+sha256

e33fe2c245894ab40dc4db764f31a0bf59cc80c34d9ebf2e71b715e49631bb34 cdebootstrap_0.6.4.tar.gz +

Useless empty line here.

Quoted 15 lines
(quoted diff) +0 -0

b/package/cdebootstrap/cdebootstrap.mk new file mode 100644 index 0000000..172b83f

package/cdebootstrap/cdebootstrap.mk new file +9 -0
@@ -0,0 +1,17 @@
+################################################################################
+#
+# cdebootstrap
+#
+################################################################################
+
+CDEBOOTSTRAP_VERSION = 0.6.4
+CDEBOOTSTRAP_SOURCE = cdebootstrap_$(CDEBOOTSTRAP_VERSION).tar.gz
+CDEBOOTSTRAP_SITE =
Quoted 1 line

http://http.debian.net/debian/pool/main/c/cdebootstrap

Those URLs are not stable, you should use snapshot.debian.org instead. Grep for snapshot.debian.org in Buildroot.

package/cdebootstrap/cdebootstrap.mk line 13

Quoted 4 lines
package/cdebootstrap/cdebootstrap.mk new file +4 -0
+CDEBOOTSTRAP_LICENSE = GPLv2
+CDEBOOTSTRAP_LICENSE_FILES = debian/copyright
+CDEBOOTSTRAP_INSTALL_STAGING = NO
+CDEBOOTSTRAP_INSTALL_TARGET = YES

Those two lines are not needed, since it's the default value.

Quoted 1 line

+CDEBOOTSTRAP_CONF_OPTS =

Quoted 8 lines

Not needed.

Quoted 2 lines

+CDEBOOTSTRAP_DEPENDENCIES = libcurl libdebian-installer zlib bzip2 host-pkgconf xz

Thanks!

Thomas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160318/500202cf/attachment.asc>