Bug 197283

Summary: unescaped RPM macros place excessive garbage text and misleading info into changelog
Product: [Fedora] Fedora Reporter: Moritz Barsnick <moritz>
Component: xorg-x11-serverAssignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED DUPLICATE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 5   
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: 2006-06-29 21:03:55 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 Moritz Barsnick 2006-06-29 21:00:20 UTC
Description of problem:
In the SPEC file, there are unescaped RPM macros, presumably "%version" and 
"%makeinstall". These are unfortunately expanded in the changelog (rpm -qp --
changelog $file.rpm), and are a bit annoying or misleading

Version-Release number of selected component (if applicable):
1.0.1-9.FC5.4

How reproducible:
Always

Steps to Reproduce:
1. rpm -qp --changelog xorg-x11-server-Xorg-1.0.1-9.FC5.4.i386.rpm

Actual results:
a)
* Thu Dec 22 2005 Mike A. Harris <mharris> 1.0.0-3
- Added "Provides: libxf86config-devel = 1.0.1-9.FC5.4" to sdk package.

b)
* Wed Aug 31 2005 Kristian Hogsberg <krh> 0.99.1-2.cvs20050830
- Go back to %spec -n, use new cvs snapshot that supports overriding
  moduledir during make install, use
  /usr/bin/make \
        prefix=/var/tmp/xorg-x11-server-1.0.1-9.FC5.4-root-brewbuilder/usr \
        exec_prefix=/var/tmp/xorg-x11-server-1.0.1-9.FC5.4-root-brewbuilder/usr 
\
        bindir=/var/tmp/xorg-x11-server-1.0.1-9.FC5.4-root-brewbuilder/usr/bin 
\        sbindir=/var/tmp/xorg-x11-server-1.0.1-9.FC5.4-root-brewbuilder/usr/
sbin \
        sysconfdir=/var/tmp/xorg-x11-server-1.0.1-9.FC5.4-root-brewbuilder/etc 
\        datadir=/var/tmp/xorg-x11-server-1.0.1-9.FC5.4-root-brewbuilder/usr/
share \
        includedir=/var/tmp/xorg-x11-server-1.0.1-9.FC5.4-root-brewbuilder/usr/
include \
        libdir=/var/tmp/xorg-x11-server-1.0.1-9.FC5.4-root-brewbuilder/usr/lib 
\        libexecdir=/var/tmp/xorg-x11-server-1.0.1-9.FC5.4-root-brewbuilder/usr/
libexec \
        localstatedir=/var/tmp/xorg-x11-server-1.0.1-9.FC5.4-root-brewbuilder/
var \
        sharedstatedir=/var/tmp/xorg-x11-server-1.0.1-9.FC5.4-root-brewbuilder/
usr/com \
        mandir=/var/tmp/xorg-x11-server-1.0.1-9.FC5.4-root-brewbuilder/usr/
share/man \
        infodir=/var/tmp/xorg-x11-server-1.0.1-9.FC5.4-root-brewbuilder/usr/
share/info \
  install.

Expected results:
a)
* Thu Dec 22 2005 Mike A. Harris <mharris> 1.0.0-3
- Added "Provides: libxf86config-devel = %version" to sdk package.

b)
* Wed Aug 31 2005 Kristian Hogsberg <krh> 0.99.1-2.cvs20050830
- Go back to %spec -n, use new cvs snapshot that supports overriding
  moduledir during make install, use %makeinstall.

Additional info:
These changelog entries change with every new build of the package. That's 
basically wrong in case a).

Case b) is just ... amusing? Annoying? Long?

Please always do % -> %% in the changelog section.

*****
BTW:

Preparing packages for installation...
        package xorg-x11-server-Xorg-1.0.1-9.fc5.1.1 (which is newer than xorg-
x11-server-Xorg-1.0.1-9.FC5.4) is already installed

Darn! You capitalized a relevant letter in the %{version} without bumping the 
epoch! ;-) Shall I file this against the component "rpm"? (Does it have any 
side effects on yum? I coincidentally selected to download the Update RPMs this 
time, and didn't use yum.)

Comment 1 Moritz Barsnick 2006-06-29 21:03:55 UTC
Ooops, I tripped on a bugzilla bug. The resulting page showed me:

The product name '' is invalid or does not exist. 
Please press Back and try again.

and I didn't realize this was just the redirect from the submit result page. 

Sorry. Anyone for filing a bug against bugzilla??? I'm tired.

*** This bug has been marked as a duplicate of 197281 ***