Debian Bug report logs - #932634
lintian: false-positive embedded-library libyaml due to matching string (defined in data/binaries/embedded-libs) with package rust-yaml-rust

version graph

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

Affects: bat, spotify-tui

Reported by: Helen Koike <[email protected]>

Date: Sun, 21 Jul 2019 14:09:02 UTC

Severity: important

Tags: moreinfo, wontfix

Found in versions 2.115.4, lintian/2.15.0

Fixed in versions lintian/2.115.0, lintian/2.116.0

Done: Axel Beckert <[email protected]>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#932634: lintian: false-positive embedded-library libyaml due to matching string (defined in data/binaries/embedded-libs) with package rust-yaml-rust
Reply-To: Helen Koike <[email protected]>, [email protected]
Resent-From: Helen Koike <[email protected]>
Resent-To: [email protected]
Resent-CC: Debian Lintian Maintainers <[email protected]>
X-Loop: [email protected]
Resent-Date: Thu, 25 Jul 2019 17:12:03 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: followup 932634
X-Debian-PR-Package: lintian
X-Debian-PR-Keywords: moreinfo
References: <156371787604.21517.16955905459348106523.reportbug@floko.floko.floko> <[email protected]> <156371787604.21517.16955905459348106523.reportbug@floko.floko.floko>
X-Debian-PR-Source: lintian
Received: via spool by [email protected] id=B932634.156407454822818
          (code B ref 932634); Thu, 25 Jul 2019 17:12:03 +0000
Received: (at 932634) by bugs.debian.org; 25 Jul 2019 17:09:08 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02
	(2018-09-13) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-9.9 required=4.0 tests=BAYES_00,FOURLA,
	FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HAS_BUG_NUMBER,
	HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,
	SPF_PASS,TXREP autolearn=ham autolearn_force=no
	version=3.4.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 22; hammy, 150; neutral, 59; spammy,
	0. spammytokens: hammytokens:0.000-+--U*lamby, 0.000-+--sk:lamby@d,
	0.000-+--sk:lambyd, 0.000-+--lambydebianorg, [email protected]
Received: from mail-lj1-f170.google.com ([209.85.208.170])
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.89)
	(envelope-from <[email protected]>)
	id 1hqhEq-0005vZ-0M
	for [email protected]; Thu, 25 Jul 2019 17:09:08 +0000
Received: by mail-lj1-f170.google.com with SMTP id z28so48799520ljn.4
        for <[email protected]>; Thu, 25 Jul 2019 10:09:07 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:references:in-reply-to:from:date
         :message-id:subject:to:cc;
        bh=YW3OQ3nOph0gClhJjQlBIIj1ZUf9AiQGbAACTfv6yIg=;
        b=uW5azByiq6x6wF69YgfdcHvWIgjDXZwOkIHiNWxu3wAEbqbMXV9qb0kbmPj5gQNNhu
         xOP/z+stuXzKaU4pdWdquy8yi3ntU7SZGojAOVRSKCng7ppDRnLgTRIbeJeAhlxS6QnJ
         8V2+oRT6vl6WCODimYa8dwfbiVXyXgBgTrLPArAk6xO06xp23f+OQUXyGPq9EsUSm4o+
         SjI7rowtgsFvI3ICeQnr6M5exnty/wzH3T0q2Jh8iVlyf1LlZBHdHq0cgqEO+jvYZZze
         Y//KPtV1lEgBT9U9UqsvJOO1ivXqBQnidsEj4pzXBvJ5ncn8Z4dOJi4RSOipgYWFlmAf
         0yXg==
X-Gm-Message-State: APjAAAUqIHMpmSte2SwPK1Ewh8EbL4972yAB6rzMJzW90RWmLgAuhq5U
	CrtgeryK9PQEZQ14p/87ARg32XyrQG4=
X-Google-Smtp-Source: APXvYqyhsDiW7YGXCEhDc16xxR2nshjrl/szX965kp6ZgGPUqwk6KTNEgc/dMAqwNMW54Li7/6q1AA==
X-Received: by 2002:a2e:8e83:: with SMTP id z3mr46156434ljk.98.1564074544372;
        Thu, 25 Jul 2019 10:09:04 -0700 (PDT)
Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com. [209.85.167.48])
        by smtp.gmail.com with ESMTPSA id u13sm7621094lfi.4.2019.07.25.10.09.03
        for <[email protected]>
        (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128);
        Thu, 25 Jul 2019 10:09:03 -0700 (PDT)
Received: by mail-lf1-f48.google.com with SMTP id v85so35019084lfa.6
        for <[email protected]>; Thu, 25 Jul 2019 10:09:03 -0700 (PDT)
X-Received: by 2002:a19:ed07:: with SMTP id y7mr2262825lfy.56.1564074542980;
 Thu, 25 Jul 2019 10:09:02 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <[email protected]>
From: Helen Koike <[email protected]>
Date: Thu, 25 Jul 2019 14:08:52 -0300
X-Gmail-Original-Message-ID: <CAPW4XYYwB6jhaROy=L4pSq3rYPChX8Gyt2_fNZeZoWscZOmA=A@mail.gmail.com>
Message-ID: <CAPW4XYYwB6jhaROy=L4pSq3rYPChX8Gyt2_fNZeZoWscZOmA=A@mail.gmail.com>
To: Chris Lamb <[email protected]>
Cc: Debian Bug Tracking System <[email protected]>
Content-Type: text/plain; charset="UTF-8"
Hi Chris,

On Wed, Jul 24, 2019 at 2:51 PM Chris Lamb <[email protected]> wrote:
>
> tags 932634 + moreinfo
> thanks
>
> Hi Helen,
>
> > In lintian/data/binaries/embedded-libs, the criterium to detect if a
> > library was linked statically against libyaml is to verify the string:
> >
> > libyaml   ||(?m)^did not find expected <stream-start>
> >
> > But this string is also found in package rust-yaml-rust.
>
> Indeed. So, I not sure how Lintian is meant to "know" that this is
> from the Rust version of YAML over the libyaml version. If bat was
> called, say, "rust-bat" instead then we could use embedded-libs's
> ability to filter via a regular expression, but that is alas not the
> case. Any ideas...?

right, the binary package is not called rust-bat but the source package is [1].
Can lintian check for the source package name? (also not sure if it is
a good idea).
Do you think it would be a good idea to rename the binary package?
Or maybe we could try find another string that is present in libyaml and not
in rust-yaml-rust.

Just a question regarding how lintian works: one thing that confused me is that
bat doesn't depend on rust-yaml-rust directly, it depends on rust-syntect which
depends on rust-yaml-rust. So I was wondering why I didn't get this
error in lintian
when building rust-syntect.

[1] https://ftp-master.debian.org/new/rust-bat_0.11.0-1.html

Thanks
Helen

>
>
> Best wishes,,
>
> --
>       ,''`.
>      : :'  :     Chris Lamb
>      `. `'`      [email protected] chris-lamb.co.uk
>        `-

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 14:35:13 2025; Machine Name: bembo

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.