Bug 64441
| Summary: | Cannot use DistURL tag in spec files | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Ville Skyttä <scop> |
| Component: | rpm-build | Assignee: | Jeff Johnson <jbj> |
| Status: | CLOSED DEFERRED | QA Contact: | |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.2 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2002-05-05 10:59:21 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: | |||
Yes, the DistURL tag is designed for holding an XML Name space identifier that (if consensus is ever achieved) for vendors, with semantics and usage yet to be defined. I'm goinna mark deferred, but the tag won't be settable from spec files until there's agreement on usage. |
It seems it's not possible to use the DistURL tag in spec files, if I put it there, rpm responds with: error: Internal error: Bogus tag 1123 However, one can set %disturl in ~/.rpmmacros and get the expected result; the value will be used and is visible in "rpm -q --queryformat %{DISTURL} -p somepackage.rpm". I guess this is due to a missing case statement in build/parsePreamble.c, an untested patch against the current rpm CVS below. Index: build/parsePreamble.c =================================================================== RCS file: /cvs/devel/rpm/build/parsePreamble.c,v retrieving revision 2.113 diff -a -u -r2.113 parsePreamble.c --- build/parsePreamble.c 6 Nov 2001 22:46:26 -0000 2.113 +++ build/parsePreamble.c 5 May 2002 10:57:22 -0000 @@ -522,6 +522,7 @@ (void) stashSt(spec, pkg->header, tag, lang); /*@fallthrough@*/ case RPMTAG_DISTRIBUTION: + case RPMTAG_DISTURL: case RPMTAG_VENDOR: case RPMTAG_LICENSE: case RPMTAG_PACKAGER: