Bug 2031534 - [REGRESSION] spurious "error: maintainer script 'postinst' has bad permissions" errors (fixed upstream)
Summary: [REGRESSION] spurious "error: maintainer script 'postinst' has bad permission...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: debhelper
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Oron Peled
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-12 17:04 UTC by Avi Kivity
Modified: 2021-12-21 01:35 UTC (History)
2 users (show)

Fixed In Version: debhelper-13.5.2-3.fc35 debhelper-13.5.2-3.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-21 01:14:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Avi Kivity 2021-12-12 17:04:26 UTC
Description of problem:


Building a .deb on Fedora can result in a spurious permissions problem.

We saw the bug in [1]. It was also reported [2] and fixed [3] upstream.

The fix involves changing "use v5.28" in Dh_lib.pm to "use v5.24". Fedora has the former while Debian's debhelper 13.5.2 [4] has the latter.

[1] https://github.com/scylladb/scylla/issues/9781
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992370#5
[3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992370#15
[4] https://launchpad.net/debian/+source/debhelper/13.5.2
[5] https://github.com/scylladb/scylla.git


Version-Release number of selected component (if applicable):
13.5.2-2

How reproducible:
Always

Steps to Reproduce:
1. Build Scylla [5]

Actual results:

Fail on building the debian packages

Expected results:

Success, world peace


Additional info:

Comment 1 Sergio Basto 2021-12-12 17:29:53 UTC
is this [1] ? 


[1] 
https://tracker.debian.org/news/1247918/accepted-debhelper-134nmu1-source-into-unstable/

   [ Sean Whitton ]
   * Non-maintainer upload.
   * Replace "use v5.28" with "use v5.24" in Dh_Lib.pm.
     The change to "use v5.28" in 13.4 broke the test to distinguish 0755
     from "0755" in the reset_perm_and_owner function, breaking builds.
     Thanks Adrian Bunk and Ansgar for help isolating the problem.

Comment 2 Sergio Basto 2021-12-12 17:31:32 UTC
i.e. if with root permissions you edit /usr/share/perl5/vendor_perl/Debian/Debhelper/Dh_Lib.pm and replace use v5.28; by use v5.24; it works ?

Comment 3 Avi Kivity 2021-12-12 18:08:10 UTC
Yes to both.

Comment 4 Fedora Update System 2021-12-12 21:44:44 UTC
FEDORA-2021-fe7af4c598 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-fe7af4c598

Comment 5 Fedora Update System 2021-12-12 21:44:55 UTC
FEDORA-2021-9b382fb3ba has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-9b382fb3ba

Comment 6 Fedora Update System 2021-12-13 01:39:28 UTC
FEDORA-2021-fe7af4c598 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-fe7af4c598`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-fe7af4c598

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-12-13 01:54:24 UTC
FEDORA-2021-9b382fb3ba has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-9b382fb3ba`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-9b382fb3ba

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Avi Kivity 2021-12-13 11:26:04 UTC
Thanks for the rapid response!

Comment 9 Sergio Basto 2021-12-13 11:48:44 UTC
Hi, 
I don't think this is the correct way to fix this bug but while we don't have a better fix, I applied this one.

That was my fault on try keeping "use v5.28" ...

Comment 10 Fedora Update System 2021-12-21 01:14:29 UTC
FEDORA-2021-fe7af4c598 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2021-12-21 01:35:34 UTC
FEDORA-2021-9b382fb3ba has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.