Bug 88968 - %install as text in %changelog breaks any (re)builds
Summary: %install as text in %changelog breaks any (re)builds
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm-build
Version: 9
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL: http://prdownloads.sourceforge.net/po...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-04-15 20:11 UTC by Doncho N. Gunchev
Modified: 2007-04-18 16:53 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-04-15 20:22:54 UTC


Attachments (Terms of Use)
"working" .spec file. (7.07 KB, text/plain)
2003-04-15 20:16 UTC, Doncho N. Gunchev
no flags Details

Description Doncho N. Gunchev 2003-04-15 20:11:15 UTC
Description of problem: 
  The presence of "%install" ("% install" does not break things) in %changelog in rpm .spec file 
leads to the following error: "error: Package already exists: %package debuginfo" 
 
Version-Release number of selected component (if applicable): 
  RPM version 4.2 
 
How reproducible: 
  download http://prdownloads.sourceforge.net/poptop/pptpd-1.1.4-b3.tar.gz?download, fix the 
%{rel} to b3, not 1b3 or the source of the .tar.gz file and try to rebuild for --target 
i386-redhat-linux. 
  While I'm here, why in '/usr/lib/rpm/rpmrc' I see "optflags: i386 -O2 -g -march=i386 
-mcpu=i686"? How am I expected to rebuild packages for i386 CPU? 
 
Steps to Reproduce: 
1. rpmbuild -vvv -ba --with buildipalloc --target i386-redhat-linux pptpd.spec 
     
Actual results: 
  error: Package already exists: %package debuginfo 
 
Expected results: 
  normal package rebuild

Comment 1 Doncho N. Gunchev 2003-04-15 20:16:33 UTC
Created attachment 91146 [details]
"working" .spec file.

This is my "working" .spec file, scroll down to " - fixed % install section so
that it uses buildroot" and remove the space between "%" and "install" to
represent the bug

Comment 2 Jeff Johnson 2003-04-15 20:22:54 UTC
Yup. Escape the '%, as in use '%%install', not '%install'.


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