Bug 64441 - Cannot use DistURL tag in spec files
Summary: Cannot use DistURL tag in spec files
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm-build   
(Show other bugs)
Version: 7.2
Hardware: All Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2002-05-05 10:59 UTC by Ville Skyttä
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-05-05 10:59:21 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Ville Skyttä 2002-05-05 10:59:16 UTC
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); 
+      case RPMTAG_DISTURL: 
       case RPMTAG_VENDOR: 
       case RPMTAG_LICENSE: 
       case RPMTAG_PACKAGER:

Comment 1 Jeff Johnson 2002-07-20 21:08:58 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.