Bug 41998

Summary: -qp --queryformat %{BUILDROOT} always returns (none)
Product: [Retired] Red Hat Linux Reporter: Bernhard Rosenkraenzer <bero>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-05-23 17:41: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:

Description Bernhard Rosenkraenzer 2001-05-23 17:23:19 UTC
Subject says it all.

rpm -qp --queryformat "%{BUILDROOT}" some-package.src.rpm

always returns (none), even on known good (meaning, with a buildroot) rpm.

Tested with rpm 4.0.2-8 and 4.0.3-0.32.

Comment 1 Jeff Johnson 2001-05-23 17:38:56 UTC
--- lib/rpmlib.h	2001/05/23 14:23:44	2.233.2.29
+++ lib/rpmlib.h	2001/05/23 17:41:32
@@ -259,7 +259,7 @@
     RPMTAG_CONFLICTNAME		= 1054,
     RPMTAG_CONFLICTVERSION	= 1055,
     RPMTAG_DEFAULTPREFIX	= 1056, /*!< internal - deprecated */
-    RPMTAG_BUILDROOT		= 1057,
+    RPMTAG_BUILDROOT		= 1057, /*!< internal */
     RPMTAG_INSTALLPREFIX	= 1058, /*!< internal - deprecated */
     RPMTAG_EXCLUDEARCH		= 1059,
     RPMTAG_EXCLUDEOS		= 1060,


Comment 2 Jeff Johnson 2001-05-23 17:43:14 UTC
Hmmm, thought you might be able to query a spec file for buildroot ...

Nope, it's internal.