From: Henning Schild <henning.schild@siemens.com>
To: Ben Hutchings <ben@decadent.org.uk>,
linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org
Cc: Konrad Schwarz <konrad.schwarz@siemens.com>,
Masahiro Yamada <yamada.masahiro@socionext.com>,
Michal Marek <michal.lkml@markovi.net>,
Jim Davis <jim.epost@gmail.com>
Subject: Re: [PATCH v2] scripts: builddeb: allow customization of "Depends:" fields
Date: Mon, 4 Dec 2017 17:50:08 +0100 [thread overview]
Message-ID: <20171204175008.5e7c4acd@md1em3qc> (raw)
In-Reply-To: <20171204164808.25492-1-henning.schild@siemens.com>
Hi,
this is a simpler version that allows just the customization of
"Depends:", as requested by Ben.
It addresses the security issues Jim mentioned by not using eval
anymore.
Henning
Am Mon, 4 Dec 2017 17:48:08 +0100
schrieb Henning Schild <henning.schild@siemens.com>:
> The debian packages coming out of "make *deb-pkg" lack the "Depends:"
> field. If one tries to install a fresh system with such a
> "linux-image" debootstrap or multistrap might try to install the
> kernel before its deps and the package hooks will fail.
>
> Different debian-based distros use different values for the missing
> fields. And the values differ between distro versions as well. So
> hardcoding is not possible.
>
> This patch introduces an option variable for every debian package
> built by builddeb. That allows advanced users to specify additional
> dependencies for all packages. All the new variables are optional.
>
> Signed-off-by: Henning Schild <henning.schild@siemens.com>
> ---
> scripts/package/builddeb | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index b4f0f2b3f8d2..079bd4c4aea9 100755
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -288,6 +288,7 @@ if [ "$ARCH" = "um" ]; then
>
> Package: $packagename
> Architecture: any
> +Depends: $KDEB_DEP_IMAGE
> Description: User Mode Linux kernel, version $version
> User-mode Linux is a port of the Linux kernel to its own system call
> interface. It provides a kind of virtual machine, which runs Linux
> @@ -304,6 +305,7 @@ else
>
> Package: $packagename
> Architecture: any
> +Depends: $KDEB_DEP_IMAGE
> Description: Linux kernel, version $version
> This package contains the Linux kernel, modules and corresponding
> other files, version: $version.
> @@ -335,6 +337,7 @@ cat <<EOF >> debian/control
>
> Package: $kernel_headers_packagename
> Architecture: any
> +Depends: $KDEB_DEP_IMAGE_HEADERS
> Description: Linux kernel headers for $KERNELRELEASE on
> \${kernel:debarch} This package provides kernel header files for
> $KERNELRELEASE on \${kernel:debarch} .
> @@ -347,6 +350,7 @@ Package: $libc_headers_packagename
> Section: devel
> Provides: linux-kernel-headers
> Architecture: any
> +Depends: $KDEB_DEP_LIBC_HEADERS
> Description: Linux support headers for userspace development
> This package provides userspaces headers from the Linux kernel.
> These headers are used by the installed headers for GNU glibc and
> other system libraries. @@ -375,6 +379,7 @@ if [ -n "$BUILD_DEBUG"
> ] ; then
> Package: $dbg_packagename
> Section: debug
> +Depends: $KDEB_DEP_IMAGE_DBG
> Architecture: any
> Description: Linux kernel debugging symbols for $version
> This package will come in handy if you need to debug the kernel. It
> provides
prev parent reply other threads:[~2017-12-04 16:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-27 16:13 [PATCH] builddeb: introduce variables for control-file customization Henning Schild
2017-11-27 23:57 ` Jim Davis
2017-11-28 8:41 ` Henning Schild
2017-12-01 16:51 ` Ben Hutchings
2017-12-01 18:34 ` Henning Schild
2017-12-01 18:47 ` Ben Hutchings
2017-12-04 9:01 ` Henning Schild
2017-12-04 13:15 ` Riku Voipio
2017-12-04 14:35 ` Ben Hutchings
2017-12-04 16:48 ` [PATCH v2] scripts: builddeb: allow customization of "Depends:" fields Henning Schild
2017-12-04 16:50 ` Henning Schild [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171204175008.5e7c4acd@md1em3qc \
--to=henning.schild@siemens.com \
--cc=ben@decadent.org.uk \
--cc=jim.epost@gmail.com \
--cc=konrad.schwarz@siemens.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.lkml@markovi.net \
--cc=yamada.masahiro@socionext.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox