Bug 103662 - rpmbuild don't use changed descriptions in spec file
Summary: rpmbuild don't use changed descriptions in spec file
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm-build
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-09-03 16:47 UTC by Peter Bieringer
Modified: 2007-04-18 16:57 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-09-05 13:11:58 UTC
Embargoed:


Attachments (Terms of Use)

Description Peter Bieringer 2003-09-03 16:47:59 UTC
Description of problem:
I use a spec file of a source RPM, do some adjustments and changed the description.

Package would be built, but the new created RPM doesn't contain the changed
description.

This is very strange indead, on RHL 7.3 this works fine.

Version-Release number of selected component (if applicable):
rpm-build-4.2-0.69

How reproducible:
Always

Steps to Reproduce:
1. change given spec file
2. rebuild rpmbuild -bb <changed+renamed-specfile>
3. rpm -qip <newpackage>
    

Actual Results:  Description is not changed

Example:

$ rpm -qp --queryformat "%{description}\n"
/mnt/rpmbuild/RPMS/i386/httpd-2.0.47-4.test.7.i386.rpm
This package contains a powerful, full-featured, efficient, and
freely-available Web server based on work done by the Apache Software
Foundation. It is also the most popular Web server on the Internet.


Changed spec file contains:

%description
Apache is a powerful, full-featured, efficient, and freely-available
Web server. Apache is also the most popular Web server on the
Internet.
 suEXEC settings:
 Binary  : %{_sbindir}/suexec
 Caller  : %{suexec_caller}
 Doc-Root: %{contentdir}
 UID min : %{suexec_uidmin}
 GID min : %{suexec_gidmin}
 umask   : %{suexec_umask}
 safepath: %{suexec_safepath}




Expected Results:  Changed description

Comment 1 Kaj J. Niemi 2003-09-03 23:35:05 UTC
I bet your locale isn't C when running rpm -qpi ? Try the following:

% LANG=C rpm -qp --queryformat "%{description}\n"
/mnt/rpmbuild/RPMS/i386/httpd-2.0.47-4.test.7.i386.rpm

Also, if you're unsure what's ACTUALLY inside httpd-2.0.47-4.test.7.i386.rpm
 you might want "strings" it, the description is almost at the top.

Comment 2 Peter Bieringer 2003-09-04 06:23:37 UTC
Kay, you'r right, but this don't change the strangeness at all...

Default: LANG=en_US do not display my changed description
Extra given LANG=C does display my changed description

I'm very wondering about where in first case the description is coming from,
because this one displayed is no longer contained in spec file and therefore it
shouldn't no longer contained in new built RPM.

What is the magic mechanism here?

Comment 3 Jeff Johnson 2003-09-05 13:11:58 UTC
description/summary/group from lookaside cache in specspo (rpm -q spcspo)
is probable cause, particularly if changing description of RHL package.

Comment 4 Peter Bieringer 2003-09-06 07:59:56 UTC
rpm -e specspo on target system (not the build system) helps instantly, adjusted
description is now displayed.

Interesting feature...can cause much confusion.


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