Bug 88968

Summary: %install as text in %changelog breaks any (re)builds
Product: [Retired] Red Hat Linux Reporter: Doncho N. Gunchev <mr700>
Component: rpm-buildAssignee: Jeff Johnson <jbj>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
URL: http://prdownloads.sourceforge.net/poptop/pptpd-1.1.4-b3.tar.gz?download
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-04-15 20:22:54 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:
Attachments:
Description Flags
"working" .spec file. none

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'.