* [PATCH] Fix the Debian packaging script on systems with no codename
@ 2016-07-12 19:42 Marcin Mielniczuk
2016-07-26 21:13 ` Michal Marek
0 siblings, 1 reply; 2+ messages in thread
From: Marcin Mielniczuk @ 2016-07-12 19:42 UTC (permalink / raw)
To: mmarek; +Cc: linux-kbuild
When calling `make deb-pkg` on a system with no codename (for example
Arch Linux), lsb_release sometimes outputs `n/a` as the codename.
This breaks dpkg-parsechangelog, which can't process the changelog
correctly.
Signed-off-by: Marcin Mielniczuk <marmistrz.dev@gmail.com>
---
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 86e56fe..87753f5 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -238,7 +238,8 @@ maintainer="$name <$email>"
# Try to determine distribution
if [ -n "$KDEB_CHANGELOG_DIST" ]; then
distribution=$KDEB_CHANGELOG_DIST
-elif distribution=$(lsb_release -cs 2>/dev/null) && [ -n
"$distribution" ]; then
+# In some cases lsb_release returns the codename as n/a, which breaks
dpkg-parsechangelog
+elif distribution=$(lsb_release -cs 2>/dev/null) && [ -n
"$distribution" ] && [ "$distribution" != "n/a" ]; then
: # nothing to do in this case
else
distribution="unstable"
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix the Debian packaging script on systems with no codename
2016-07-12 19:42 [PATCH] Fix the Debian packaging script on systems with no codename Marcin Mielniczuk
@ 2016-07-26 21:13 ` Michal Marek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2016-07-26 21:13 UTC (permalink / raw)
To: Marcin Mielniczuk; +Cc: linux-kbuild
Dne 12.7.2016 v 21:42 Marcin Mielniczuk napsal(a):
> When calling `make deb-pkg` on a system with no codename (for example
> Arch Linux), lsb_release sometimes outputs `n/a` as the codename.
>
> This breaks dpkg-parsechangelog, which can't process the changelog
> correctly.
>
> Signed-off-by: Marcin Mielniczuk <marmistrz.dev@gmail.com>
>
> ---
>
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index 86e56fe..87753f5 100755
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -238,7 +238,8 @@ maintainer="$name <$email>"
> # Try to determine distribution
> if [ -n "$KDEB_CHANGELOG_DIST" ]; then
> distribution=$KDEB_CHANGELOG_DIST
> -elif distribution=$(lsb_release -cs 2>/dev/null) && [ -n
> "$distribution" ]; then
> +# In some cases lsb_release returns the codename as n/a, which breaks
> dpkg-parsechangelog
> +elif distribution=$(lsb_release -cs 2>/dev/null) && [ -n
> "$distribution" ] && [ "$distribution" != "n/a" ]; then
> : # nothing to do in this case
> else
> distribution="unstable"
Applied, but please fix your mailer to send properly formatted patches.
The easiest test is to send a patch to yourself, save it and try to
apply it with 'git am'.
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-26 21:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-12 19:42 [PATCH] Fix the Debian packaging script on systems with no codename Marcin Mielniczuk
2016-07-26 21:13 ` Michal Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox