Debian Bug report logs - #994716
lintian: erroneous unpack-message-for-orig

version graph

Package: lintian; Maintainer for lintian is Debian Lintian Maintainers <[email protected]>; Source for lintian is src:lintian (PTS, buildd, popcon).

Reported by: Aurelien Jarno <[email protected]>

Date: Sun, 19 Sep 2021 19:33:04 UTC

Severity: normal

Found in version lintian/2.106.1

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian Lintian Maintainers <[email protected]>:
Bug#994716; Package lintian. (Sun, 19 Sep 2021 19:33:06 GMT) (full text, mbox, link).


Acknowledgement sent to Aurelien Jarno <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian Lintian Maintainers <[email protected]>. (Sun, 19 Sep 2021 19:33:06 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Aurelien Jarno <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: lintian: erroneous unpack-message-for-orig
Date: Sun, 19 Sep 2021 21:31:42 +0200
Package: lintian
Version: 2.106.1
Severity: normal

Since recently, I get the following lintian error message on the glibc
package:

E: glibc source: unpack-message-for-orig glibc_2.32.orig.tar.xz ar failed for glibc-2.32/htl/libpthread.a
E: glibc source: unpack-message-for-orig glibc_2.32.orig.tar.xz ar failed for glibc-2.32/htl/libpthread_pic.a
E: glibc source: unpack-message-for-orig glibc_2.32.orig.tar.xz ar failed for glibc-2.32/htl/libpthread_syms.a

Those file are not archive, but a linker script. For example
libpthread.a contains:

| GROUP(-lpthread_syms)
| GROUP(-lpthread2 -lrt)

Lintian should handle this case.

-- System Information:
Debian Release: 11.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)



Information forwarded to [email protected], Debian Lintian Maintainers <[email protected]>:
Bug#994716; Package lintian. (Fri, 01 Apr 2022 17:06:02 GMT) (full text, mbox, link).


Acknowledgement sent to Bill Allombert <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Lintian Maintainers <[email protected]>. (Fri, 01 Apr 2022 17:06:02 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Bill Allombert <[email protected]>
To: Aurelien Jarno <[email protected]>, [email protected]
Subject: Re: Bug#994716: lintian: erroneous unpack-message-for-orig
Date: Fri, 1 Apr 2022 19:03:25 +0200
On Sun, Sep 19, 2021 at 09:31:42PM +0200, Aurelien Jarno wrote:
> Package: lintian
> Version: 2.106.1
> Severity: normal
> 
> Since recently, I get the following lintian error message on the glibc
> package:
> 
> E: glibc source: unpack-message-for-orig glibc_2.32.orig.tar.xz ar failed for glibc-2.32/htl/libpthread.a
> E: glibc source: unpack-message-for-orig glibc_2.32.orig.tar.xz ar failed for glibc-2.32/htl/libpthread_pic.a
> E: glibc source: unpack-message-for-orig glibc_2.32.orig.tar.xz ar failed for glibc-2.32/htl/libpthread_syms.a
> 
> Those file are not archive, but a linker script. For example
> libpthread.a contains:
> 
> | GROUP(-lpthread_syms)
> | GROUP(-lpthread2 -lrt)
> 
> Lintian should handle this case.

Hello Lintian maintainers,

There are several bugs here
1) not all files ending by '.a' are 'ar' archive files, and this is not
an error.

2) 'unpack-message-for-orig' is used to report error when
unpacking the orig.tar.gz tarball. This is unrelated to what happen here
(an error of "ar" while inspecting binary package), so this tag is
inappropriate.

The combination is a large set of false positive with inappropriate
error messages, just check

https://lintian.debian.org/tags/unpack-message-for-orig?version=2.114.161

Thanks for maintaining Lintian!
-- 
Bill. <[email protected]>

Imagine a large red swirl here. 



Information forwarded to [email protected], Debian Lintian Maintainers <[email protected]>:
Bug#994716; Package lintian. (Sun, 17 Jul 2022 12:48:05 GMT) (full text, mbox, link).


Acknowledgement sent to Bill Allombert <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Lintian Maintainers <[email protected]>. (Sun, 17 Jul 2022 12:48:05 GMT) (full text, mbox, link).


Message #15 received at [email protected] (full text, mbox, reply):

From: Bill Allombert <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: Re: lintian: erroneous unpack-message-for-orig
Date: Sun, 17 Jul 2022 14:45:17 +0200
Package: lintian
Followup-For: Bug #994716

More generally, lintian should not assume that .a files are archive, that .o are
object files, etc. This leads to too much false positive.

Cheers,
-- 
Bill. <[email protected]>

Imagine a large red swirl here. 



Information forwarded to [email protected], Debian Lintian Maintainers <[email protected]>:
Bug#994716; Package lintian. (Wed, 28 Dec 2022 12:39:02 GMT) (full text, mbox, link).


Acknowledgement sent to Santiago Vila <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Lintian Maintainers <[email protected]>. (Wed, 28 Dec 2022 12:39:02 GMT) (full text, mbox, link).


Message #20 received at [email protected] (full text, mbox, reply):

From: Santiago Vila <[email protected]>
To: [email protected]
Cc: Aurelien Jarno <[email protected]>, Bill Allombert <[email protected]>
Subject: lintian: *.a files should only be tested for unpacking if they are really ar archives
Date: Wed, 28 Dec 2022 13:37:21 +0100
Hello. I was going to report this but I see it's already reported.

Here is another false positive:

lintian believes that the file testdir/t.a in original-awk
source is an ar archive and produces this output:

E: original-awk source: unpack-message-for-orig original-awk_2022-01-22.orig.tar.gz . ar failed for awk-20220122/testdir/t.a

The contents of the file, however, is the following:

	{if (amount[$2] "" == "") item[++num] = $2;
	 amount[$2] += $1
	}
END	{for (i=1; i<=num; i++)
		print item[i], amount[item[i]]
	}

and the "file" command correctly identifies it not as an ar archive:

$ file testdir/*.a
testdir/t.a: ASCII text


Therefore I propose that lintian only tries to unpack *.a files when
the "file" command identifies it as an "ar" archive:

$ file /lib/x86_64-linux-gnu/libc.a
/lib/x86_64-linux-gnu/libc.a: current ar archive

Thanks.



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 05:10:54 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.