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
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.
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?
description/summary/group from lookaside cache in specspo (rpm -q spcspo) is probable cause, particularly if changing description of RHL package.
rpm -e specspo on target system (not the build system) helps instantly, adjusted description is now displayed. Interesting feature...can cause much confusion.