🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #7516

Bug#1156367: libur-perl: please make the build reproducible [nocheck]

#7516
From: gregor herrmann
Date: Fri, 04 Dec 2026 23:30
101 lines
6229 bytes
------------=_1796426430-7038-82
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, 04 Dec 2026 09:53:08 -0800, Chris Lamb wrote:

> This is because the testsuite generates a Meta.sqlite3 file that ends
> up in the binary package, and so if the testsuite is skipped then the
> package contents will differ.
>
> Patch attached that removes this file after running the tests.

This looks good; but it breaks autopkgtests (where the test don't have=20
access to lib/ and therefore don't find Meta.sqlite3):

  46s WARNING: Re-creating /usr/share/perl5/UR/DataSource/Meta.sqlite3 from=
 /usr/share/perl5/UR/DataSource/Meta.sqlite3-dump.
  46s DBI connect('dbname=3D/usr/share/perl5/UR/DataSource/Meta.sqlite3',''=
,...) failed: unable to open database file at /usr/share/perl5/UR/DataSourc=
e/SQLite.pm line 800.
  46s Can't create DB handle for file /usr/share/perl5/UR/DataSource/Meta.s=
qlite3: unable to open database file at (eval 205) line 3.
  46s # Looks like your test exited with 255 just after 5.

180s #   Failed test 'No exceptions during commit'=20
180s #   at t/URT/t/92_save_object_with_propertyless_column.t line 44.=20
180s # Can't create DB handle for file /usr/share/perl5/UR/DataSource/Meta.=
sqlite3: unable to open database file at (eval 205) line 3.=20
180s not ok 11 - Deleted object was deleted from database

The reason Meta.sqlite3 doesn't exist unless the tests are run is=20
that we remove it in debian/clean (as re-creating breaks building=20
twice in a row).

I guess we need a different approach:
- don't dh_clean it
- move it away and back before/after tests to enable building twice
- always install it for reproducability with and without tests

Oh, this also doesn't work, lib/UR/DataSource/Meta.sqlite3 isn't=20
shipped in the .orig tarball. It's only created during tests.=20
Nice. And I was wrong above, dh_clean is not because of re-creation=20
but because of creation. Ok.


Maybe we need to create it, with our without tests, during package=20
build (and always ship it).

*some time later*

Seems to work. Well, good, I guess.

> However,
> the binary package includes files such as:
> /usr/share/perl5/UR/DataSource/Meta.sqlite3-dump
> ... regardless of whether the testsuite is run or not =E2=80=94 just brin=
ging
> to your attention as this smells a little weird (but might be fine).

That's all weird, very weird =E2=80=A6


Cheers,
gregor

--=20
  .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian=
.org
  : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 =
AA06
  `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Eu=
rope
    `-=20=20=20

------------=_1796426430-7038-82
Content-Type: application/pgp-signature; name="signature.asc"
Content-Disposition: inline; filename="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: Digital Signature

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAmsTSr5fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx
RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ
qgZ/hw/8CZ8B3zyYP8av3VkBMaRdEFqG+2B5IWKKvNd0nw2eYykP1e/iZZ9OiMBg
TdEcB2i23g9hastbJFZS/6jUKNSNXRxsdusXOk2st2rTKcrkgljjcaBymtltcjc7
86xOD1Gt/zCH/vdsRpsvwrARXlHXZdvkO+h+x0DFcIz6GJIslwXJ0ax5JkMDNi2b
DbLn9qZdvw1pm9yZcGHm0nxxvvCjyGm9Acz0e58oKfA/c1OZnMGf65iJVFfUWqIL
5KpNkrPVOqgcknbCosulWrkiAWwxwP6WMINrltPsCaFYcVbjMmotbySJWam2F/zH
Dql1kKItScSLl7RUWD0C8L/4hn8TEOJeXuBMYwf2vDKKYCDfZWahOIClFgVVXVRL
yVVQarb033bhB+rj6fF6/hSdTqboxciU+5KhTt6gxql6MZSXUg/sAUSkJ/JNgxQG
hrVVFnvVrRE1/DwZR67VTPIv4+OrDv0tOMZwpFG2xLFO00Ubl1n0rtLOCHwpCvFe
HcFt7yMNcuz54d0oy2XjaS8PjRmPKiasMEHkAsNCD1M+9gy/GEclMeBYXW/5R/7S
shUawq12m2/oi0BcBklCjQ9YwpGu5AIeX0vrnBVbR57IUDMb6F1kcsJ+7KtEUFJ/
9P997NJ+0jyMwpUDw46kseaQmMrWy4pHXP4+8HPo9d9uVQLkqSU=
=UDRU
-----END PGP SIGNATURE-----

------------=_1796426430-7038-82--
Technical Details
Message-ID: <O6KSZ-g1xk-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-nl.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <O6FJD-fYDH-3@gated-at.bofh.it> <O6FJD-fYDH-3@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-nl.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: gregor herrmann <gregoa@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1156367: libur-perl: please make the build reproducible [nocheck]
Date: Sat, 05 Dec 2026 00:30:02 +0100
Message-ID: <O6KSZ-g1xk-3@gated-at.bofh.it>
References: <O6FJD-fYDH-3@gated-at.bofh.it> <O6FJD-fYDH-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Dec  4 23:24:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: gregor herrmann <gregoa@debian.org>, 1156367@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-perl-maintainers@lists.alioth.debian.org
X-Debian-Pr-Message: followup 1156367
X-Debian-Pr-Package: src:libur-perl
X-Debian-Pr-Keywords: pending patch
X-Debian-Pr-Source: libur-perl
MIME-Version: 1.0
X-Face: -kg'V!M2hYTiiEt:oj$rToa+c^7N.t}]V^j}|%+]%3J&tOm^9mc^1-#9o=\8VJpV7b~nxIM!qu>r_:w\EtWQA01;$jp>,cgp9EWV:i9B]LCgiNn\jA=un9d-ZcRzyq~9vYUf*tx9B}de^fH5Q(d(_N"0WXs%Jh!~.*g.iC=bSTqL:/EE0Y~\g_QCvwS6=cv]$tB7z<Xh[Wxa.2d"m?]^f
X-Temperature-Innsbruck: -7°C (2026-12-04
 23:40:02 CET)
Content-Type: multipart/signed; boundary="----------=_1796426430-7038-82"; micalg="pgp-sha512"; protocol="application/pgp-signature"
X-Debian-User: gregoa
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2007040
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 101
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sat, 5 Dec 2026 00:20:22 +0100
X-Original-Message-ID: <axNKticSrIdIJYCp@jadzia.comodo.priv.at>
X-Original-References: <179640659957.18643.14562951552000610842@a35c6f3403b7> <179640659957.18643.14562951552000610842@a35c6f3403b7>