Bug 24696
| Summary: | Fix for makedepend name source to object name munging | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Murray Anderegg <anderegg> | ||||
| Component: | XFree86 | Assignee: | Mike A. Harris <mharris> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | David Lawrence <dkl> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 7.0 | Keywords: | FutureFeature | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | i386 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Enhancement | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2001-05-15 04:31:12 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: | |||||||
| Attachments: |
|
||||||
Created attachment 8070 [details]
Patch applied with '%patch20 -p1 -b .makedepend' in XFree86.spec
Deferring for future consideration. We do not ship this script anymore. |
makedepend assumes that the source file has a one character suffix, for example '.c'. This enhancement instead assumes that the suffix is everything after the last '.' in the source file name. This allows files to have a suffix such as '.cpp'. Here is a patch that works against XFree86-4.0.1-1 and XFree86-4.0.2-1. I apply this patch to XFree86-4.0.2-1 as 'Patch20' with '%patch20 -p1 -b .makedepend'. *** XFree86-4.0/xc/config/util/mdepend.cpp.orig Mon Apr 17 09:27:09 2000 --- XFree86-4.0/xc/config/util/mdepend.cpp Mon Apr 17 12:11:17 2000 *************** *** 174,180 **** { ! ofile = substr ($1, 1, length ($1) - 2) "'"$objsuffix"'" print ofile, $4 } }' | sort -u | awk ' --- 174,185 ---- { ! ofile = ""; ! na = split($1, a, "."); ! ofile = a[1]; ! for (i=2; i<na; i++) ! ofile = ofile "." a[i]; ! ofile = ofile "'"$objsuffix"'" print ofile, $4 } }' | sort -u | awk '