Re: Bug in recent changes to builddeb

From: Sedat Dilek
Date: Tue Mar 28 2023 - 00:49:57 EST


On Tue, Mar 28, 2023 at 12:52 AM Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote:
>
>
>
> On 3/27/23 15:41, Randy Dunlap wrote:
> > at least Cc linux-kbuild.
> >
>
> or just see https://patchwork.kernel.org/project/linux-kbuild/patch/3351f907cfd0b5d8372e858a8ec9065cc2bd91df.1679434718.git.kevin@xxxxxxxxxxxxxxx/
>
> and use a later git tree.
>
> I.e., it's fixed now.
>
> > On 3/27/23 13:55, Ron Economos wrote:
> >> Looks like there's a bug in /scripts/package/builddeb. On lines 188, 197 and 198, the variable $version is used. However, it's not defined (removed with recent changes).
> >>
> >> This causes the headers to be put into /usr/src/linux-headers-. When the next version is attempted to be installed, the following error occurs.
> >>
> >> $ sudo dpkg -i linux-headers-6.3.0-rc4_6.3.0-rc4-2_riscv64.deb
> >> Selecting previously unselected package linux-headers-6.3.0-rc4.
> >> (Reading database ... 376925 files and directories currently installed.)
> >> Preparing to unpack linux-headers-6.3.0-rc4_6.3.0-rc4-2_riscv64.deb ...
> >> Unpacking linux-headers-6.3.0-rc4 (6.3.0-rc4-2) ...
> >> dpkg: error processing archive linux-headers-6.3.0-rc4_6.3.0-rc4-2_riscv64.deb (--install):
> >> trying to overwrite '/usr/src/linux-headers-/.config', which is also in package linux-headers-6.3.0-rc3 6.3.0-rc3-4
> >> dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
> >> Errors were encountered while processing:
> >> linux-headers-6.3.0-rc4_6.3.0-rc4-2_riscv64.deb
> >>
> >

Hi Masahiro,

when do you plan the next git-pull request to Linus?

For people using Debian and builddeb this is really annoying.

Thanks.

Regards,
-Sedat-

[1] https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/log/?h=fixes