Bug 2342281 - quilt setup doesn't work on Fedora 41 and newer
Summary: quilt setup doesn't work on Fedora 41 and newer
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: quilt
Version: 41
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Josh Boyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-27 16:10 UTC by Andreas Schneider
Modified: 2025-03-25 01:23 UTC (History)
4 users (show)

Fixed In Version: quilt-0.68-3.fc42 quilt-0.68-3.fc41
Clone Of:
Environment:
Last Closed: 2025-03-18 00:16:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Andreas Schneider 2025-01-27 16:10:06 UTC
quilt setup --fast -v *.spec

doesn't work with Fedora 41. The reason is that rpm creates the package directory (e.g. tree-sitter-0.24.7) in a subdirectory (rust-tree-sitter-0.24.7-build).

quilt is not aware of the additional subdirectory which is created and fails:

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Dbl3fm (%prep)
The %prep section of rust-tree-sitter.spec failed; results may be incomplete
ln: failed to create symbolic link 'tree-sitter-0.24.7/patches': No such file or directory
/usr/share/quilt/setup: line 532: cd: tree-sitter-0.24.7: No such file or directory
/usr/share/quilt/setup: line 543: tree-sitter-0.24.7/series: No such file or directory
/usr/share/quilt/setup: line 546: tree-sitter-0.24.7/series: No such file or directory
ln: failed to create symbolic link 'tree-sitter-0.24.7/patches': No such file or directory
/usr/share/quilt/setup: line 532: cd: tree-sitter-0.24.7: No such file or directory
/usr/share/quilt/setup: line 543: tree-sitter-0.24.7/series: No such file or directory
/usr/share/quilt/setup: line 546: tree-sitter-0.24.7/series: No such file or directory

Reproducible: Always

Steps to Reproduce:
1. Clone a fedora rpm package
2. Run: quilt setup --fast -v *.spec

Comment 1 Andreas Schneider 2025-01-27 16:19:55 UTC
The rpm %mkbuilddir does:

setting SOURCE_DATE_EPOCH=1737936000                                                                                                                                                      
Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.alwjxD                                                                                                                                
+ umask 022                                                                                                                                                                               
+ cd /var/tmp/quiltSPHKQp/build/rust-tree-sitter-0.24.7-build                                                                                                                             
+ test -d /var/tmp/quiltSPHKQp/build/rust-tree-sitter-0.24.7-build                                                                                                                        
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /var/tmp/quiltSPHKQp/build/rust-tree-sitter-0.24.7-build                      
+ /usr/bin/rm -rf /var/tmp/quiltSPHKQp/build/rust-tree-sitter-0.24.7-build                   
+ /usr/bin/mkdir -p /var/tmp/quiltSPHKQp/build/rust-tree-sitter-0.24.7-build                 
+ /usr/bin/mkdir -p /var/tmp/quiltSPHKQp/build/rust-tree-sitter-0.24.7-build/SPECPARTS                                                                                                    
+ RPM_EC=0                                                                                   
++ jobs -p                                                                                                                                                                                
+ exit 0

Looks like it copies then rust-tree-sitter-0.24.7-build to the current directory.

Comment 2 Richard Shaw 2025-03-13 12:39:01 UTC
Adding a me too here... The RPM change is seriously messing up my packaging workflow.

Comment 3 Fedora Update System 2025-03-16 20:37:31 UTC
FEDORA-2025-6d4f48216d (quilt-0.68-3.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-6d4f48216d

Comment 4 Fedora Update System 2025-03-16 20:37:31 UTC
FEDORA-2025-57ab83d114 (quilt-0.68-3.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-57ab83d114

Comment 5 Fedora Update System 2025-03-17 01:28:34 UTC
FEDORA-2025-57ab83d114 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-57ab83d114`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-57ab83d114

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

Comment 6 Fedora Update System 2025-03-17 03:04:32 UTC
FEDORA-2025-6d4f48216d has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-6d4f48216d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-6d4f48216d

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

Comment 7 Fedora Update System 2025-03-18 00:16:16 UTC
FEDORA-2025-6d4f48216d (quilt-0.68-3.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2025-03-25 01:23:07 UTC
FEDORA-2025-57ab83d114 (quilt-0.68-3.fc41) has been pushed to the Fedora 41 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.