Bug 2342281

Summary: quilt setup doesn't work on Fedora 41 and newer
Product: [Fedora] Fedora Reporter: Andreas Schneider <asn>
Component: quiltAssignee: Josh Boyer <jwboyer>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 41CC: asn, besser82, hobbes1069, jwboyer
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: quilt-0.68-3.fc42 quilt-0.68-3.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-03-18 00:16:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.