Bugzilla – Bug 130251
"quilt setup gcc.spec" creates a second series file in a subdirectory
Last modified: 2007-08-11 15:21:28 UTC
How to reproduce: - get the gcc sources (I took them from SLES9) - quilt setup gcc.spec > find . -depth -name "series" ./gcc-3.3.3/gcc/series ./gcc-3.3.3/series In gcc.spec we have: %prep %setup -q -n gcc-%{gcc_version} %patch0 %patch1 cd gcc %patch2 cd .. %patch3 %patch4 [...] %patch64 -p1 %patch65 -p1 cd gcc %patch66 cd .. %patch67 %patch68 [...] So %patch2 and %patch66 get applied from within the gcc subdirectory and end up in the gcc/series file. Problem: depending on the current directory within the gcc sources, quilt commands like "quilt push -a" and "quilt applied" behave differently.
When in directory gcc-3.3.3, quilt has no way of applying a -p0 style patch to the sub-directory gcc. You'll have to change patch 2 so that it is applied from within gcc-3.3.3 instead of gcc-3.3.3/gcc. Maybe the gcc folks are willing to change this?
I see. One problem I see is that as long as patches from other sources are supposed to remain "pristine", these patches should be accepted by the quilt tool as-is. Also, AFAICR I have seen such patches (with one or more missing subdirectories) several times in other packages as well. So it seems to happen often enough to take care of this in quilt.
*** Bug 130262 has been marked as a duplicate of this bug. ***
Is this issue still valid for openSUSE 10.3?
No reaction since more than 2 months, therefore closing as CANTFIX (aka WONTFIX). If you can provide the needed information, feel free to reopen the bug.