Bug 2492128 - rpmuncompress foo-ver.gem produces foo-ver..gemspec instead of foo-ver.gemspec
Summary: rpmuncompress foo-ver.gem produces foo-ver..gemspec instead of foo-ver.gemspec
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: Unspecified
OS: Linux
high
medium
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-24 10:05 UTC by Mamoru TASAKA
Modified: 2026-06-25 03:25 UTC (History)
5 users (show)

Fixed In Version: 6.0.91-2
Clone Of:
Environment:
Last Closed: 2026-06-25 03:25:04 UTC
Type: ---
Embargoed:
fedora-admin-xmlrpc: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github rpm-software-management rpm pull 4247 0 None open Fix rubygem extract regression from b8b54f92c65bca7bfdd80c3ecf717d5c48b02e91 2026-06-24 13:14:00 UTC

Description Mamoru TASAKA 2026-06-24 10:05:34 UTC
On rawhide rebuilding rubygem-atk fails:

https://koschei.fedoraproject.org/package/rubygem-atk?collection=f45
https://koji.fedoraproject.org/koji/taskinfo?taskID=146989377

```
+ cd atk-4.3.6
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ mv ../atk-4.3.6.gemspec .
mv: cannot stat '../atk-4.3.6.gemspec': No such file or directory
```

Checking buildroot shows there is actually "atk-4.3.6..gemspec" file:

```
<mock-chroot> sh-5.3# ls -1 /builddir/build/BUILD/rubygem-atk-4.3.4-build/
SPECPARTS
atk-4.3.4
atk-4.3.4..gemspec
rpmbuild.env
```

Most likely this is because of the following change:
https://github.com/rpm-software-management/rpm/pull/4113/changes/b8b54f92c65bca7bfdd80c3ecf717d5c48b02e91

rstrlcpy implemention puts the sentinel null character, while std::string(bn, nvlen); copies the string bn with the "length" of nvlen.

rpm-6.0.91-1.fc45.x86_64
rubygem-atk-4.3.6-1.fc45.src

Reproducible: Always

Comment 1 Panu Matilainen 2026-06-24 10:52:27 UTC
Oops. Thanks for the report, will fix ASAP. 

This is apparently one of the things with zero tests still, which is why such fallout happens.

Comment 2 Panu Matilainen 2026-06-24 12:54:21 UTC
Fix being built in https://koji.fedoraproject.org/koji/taskinfo?taskID=146992055

Comment 4 Mamoru TASAKA 2026-06-24 13:41:12 UTC
Actually -2 seems to fix this issue, thank you.

Comment 5 Mamoru TASAKA 2026-06-25 03:25:04 UTC
Marking this as fixed, thank you.


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