Devuan bug report logs - #379
base-files: 10.3+devuan4 breaks building of kernels using make bindeb-pkg

version graph

Package: base-files; Maintainer for base-files is Devuan Developers <devuan-dev@lists.dyne.org>; Source for base-files is src:base-files.

Reported by: Arthur Marsh <arthur.marsh@internode.on.net>

Date: Wed, 22 Jan 2020 23:33:02 UTC

Severity: normal

Tags: moreinfo

Found in version 10.3+devuan4

Fixed in version 11+devuan1

Done: Mark Hindley <mark@hindley.org.uk>

Full log


Message #52 received at 379@bugs.devuan.org (full text, mbox, reply):

Received: (at 379) by bugs.devuan.org; 1 Feb 2020 21:42:10 +0000
Return-Path: <matheu@danwin1210.me>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Sat, 01 Feb 2020 21:42:10 +0000 (UTC)
Received: from danwin1210.me (danwin1210.me [116.202.17.147])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 97ED5F60885
	for <379@bugs.devuan.org>; Sat,  1 Feb 2020 22:40:31 +0100 (CET)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (4096-bit key; secure) header.d=danwin1210.me header.i=@danwin1210.me header.b="U9bShJ2g";
	dkim-atps=neutral
Received: from localhost (unknown [10.8.3.3])
	by danwin1210.me (Postfix) with ESMTPA id 093A41F4C0;
	Sat,  1 Feb 2020 21:40:22 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=danwin1210.me;
	s=mail; t=1580593230;
	bh=F2xmj1CA1xhqMfDc7J5iOPHfhR+TMVhv3AoPVOHzFTA=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
	b=U9bShJ2g9YroiDCmdADx0Ev2UsAvWpdI4y8A8n1BTaBUIDIpZK+2eBX6jnRs9m0qz
	 genf99fFoullm/k/zwxXxXuYUbdDt8oCF+mYZXYsQSdJvMrGmTYSJHTO6w/L3SCD1F
	 K/QrPWxBRXOGDddO6OBckLL2gI7KFeC9VjwFbMrqeJxW8XpyBI3G1ISyAJ1tiVfCd2
	 LXJnzaACuuylxlJR2Dy+HRfMLxYfHdieEl8+KCIBxtvTvtXJLQAGxMOUmx+Zb0sFdC
	 uvwbhPuLEnSB/nHDyaACWR3FhJUZdXmFQ+Ti3GaA3dMPcJYnSG2vdbxh9xPUFlFgl8
	 JFBo0G5yKQAs5Qqaqdo37OfIax0zGa8rk7Ez5Nf0CBMb8SZHvUgiEzVcxpnO8CYxve
	 tFa6FRzbEruJBVwzGKCH0fLabCIv7HiUpIEbATaSCyYuXvcVv33a5iQZLs64HKrOzG
	 Mrk9r/U2b7eM6BGs6yyw937DeJWl8baKaic3PtwZKY9ISEhUzgDLgDaT2g5adRCcL8
	 qyuUJ25JvFLirhhRQuuABVDtbPI7vTsubfZHBYIIMrq5urUAy+s4WMko4sT6SYkL0S
	 Whksn73Ssk6cRnN8xZqe3aduOMobdcI56aXJZvl/lESgp+0w0h6/EOdTIiQLHyR7lD
	 OSK8guoIIdecofBqEF7CIhSw=
Received: from danwin1210.me (localhost [127.0.0.1])
	by localhost (Postfix) with ESMTP id C06B510048C;
	Sat,  1 Feb 2020 21:40:21 +0000 (UTC)
Date: Sat, 1 Feb 2020 21:40:31 +0000
X-OPENPGPKEY: Message passed unmodified
From: matheu@danwin1210.me
To: 379@bugs.devuan.org
Cc: dng@lists.dyne.org, Mark Hindley <mark@hindley.org.uk>,
	devuan@evilham.com
Subject: Re: [DNG] "chimeara/ceres" in lsb_release output causes failure to
 compile kernel
Message-ID: <20200201214031.GB5778@meba>
References: <202001262330.15857.dr.klepp@gmx.at>
 <20200128001720.GR18108@linuxmafia.com>
 <20200128125156.GA12260@zeus.ad.home.arpa>
 <20200128134159.GT18108@linuxmafia.com>
 <65a37917b73704e6184c31dfb4671527.squirrel@danielas3rtn54uwmofdo3x2bsdifr47huasnmbgqzfrec5ubupvtpid.onion>
 <20200129073737.GA10223@hindley.org.uk>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="3lcZGd9BuhuYXNfi"
Content-Disposition: inline
In-Reply-To: <20200129073737.GA10223@hindley.org.uk>
X-Virus-Scanned: clamav-milter 0.102.1 at proxy
X-Virus-Status: Clean
X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org
[Message part 1 (text/plain, inline)]
On 200129-07:37+0000, Mark Hindley wrote:
> On Tue, Jan 28, 2020 at 09:46:38PM -0000, matheu--- via Dng wrote:
> > Hi!
> > 
> > I tried to see how to report this bug on bugs.devuan.org, or on
> > dev1galaxy.org but couldn't magage with Tor.
> 
> Matheu,
> 
> Thanks. This looks as if it might well be related to #379. So please 
> could you resend this information to 379@bugs.devuan.org.
> 
> Please also attach the KERNEL_SRC_ROOT/debian/changelog file.

We're in KERNEL_SRC_ROOT/ and we are compiling linux-stable, like so:

$ make j4 deb-pkg

  HOSTCC  scripts/kconfig/conf.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --syncconfig Kconfig
  UPD     include/config/kernel.release
make clean
sh ./scripts/package/mkdebian
  TAR     linux-5.5.0+.tar.gz
origversion=$(dpkg-parsechangelog -SVersion |sed 's/-[^-]*$//');\
	mv linux-5.5.0+.tar.gz ../linux-5.5.0+_${origversion}.orig.tar.gz
dpkg-parsechangelog: warning:     debian/changelog(l2): found end of file where expected first heading
dpkg-parsechangelog: error: fatal error occurred while parsing debian/changelog
dpkg-buildpackage -r"fakeroot -u" -a$(cat debian/arch)  -i.git -us -uc
dpkg-buildpackage: warning:     debian/changelog(l2): found end of file where expected first heading
dpkg-buildpackage: error: fatal error occurred while parsing debian/changelog
make[1]: *** [scripts/Makefile.package:77: deb-pkg] Error 25
make: *** [Makefile:1427: deb-pkg] Error 2
sed 's$lsb_release -cs$lsb_release -cs |cut -d -f2/$' scripts/package/mkdebian  | grep -A1 dpkg-parsechang

It results in the above error.

The issue is with the lsb_release, or the kernel folks should accept the
second field to have a '/'... and change the mkdebian file accordingly.

$ lsb_release -cs
chimaera/ceres
$
does not work with the kernel.

The workaround is to insert '| cut -d/ -f2' into KERNEL_SRC_ROOT/scripts/package/mkdebian .

$ sed -i 's$lsb_release -cs$lsb_release -cs |cut -d/ -f2$' scripts/package/mkdebian

which will result in:

127c127
< elif distribution=$(lsb_release -cs |cut -d/ -f2 2>/dev/null) && [ -n "$distribution" ] && [ "$distribution" != "n/a" ]; then
---
> elif distribution=$(lsb_release -cs 2>/dev/null) && [ -n "$distribution" ] && [ "$distribution" != "n/a" ]; then

and then the compilation is OK.

Such as:

make clean
sh ./scripts/package/mkdebian
  TAR     linux-5.5.0+.tar.gz
origversion=$(dpkg-parsechangelog -SVersion |sed 's/-[^-]*$//');\
        mv linux-5.5.0+.tar.gz ../linux-5.5.0+_${origversion}.orig.tar.gz
dpkg-buildpackage -r"fakeroot -u" -a$(cat debian/arch)  -i.git -us -uc
dpkg-buildpackage: info: source package linux-5.5.0+
dpkg-buildpackage: info: source version 5.5.0+-1
dpkg-buildpackage: info: source distribution ceres
dpkg-buildpackage: info: source changed by mehr <mehr@meba>
 dpkg-source -i.git --before-build .
dpkg-buildpackage: info: host architecture amd64
 fakeroot -u debian/rules clean
rm -rf debian/*tmp debian/files
make clean
 dpkg-source -i.git -b .
dpkg-source: warning: source directory 'linux-stable_W' is not <sourcepackage>-<upstreamversion> 'linux-5.5.0+-5.5.0+'
dpkg-source: warning: .orig directory name linux-stable_W.orig is not <package>-<upstreamversion> (wanted linux-5.5.0+-5.5.0+.orig)
dpkg-source: info: using source format '1.0'
dpkg-source: info: building linux-5.5.0+ using existing linux-5.5.0+_5.5.0+.orig.tar.gz
...


The KERNEL_SRC_ROOT/debian/changelog file is attached.

Regards!
[debian-changelog (text/plain, attachment)]

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sat Apr 20 10:01:38 2024;