Bug 501204

Summary: publican needs to override more rpm dir macros
Product: [Community] Publican Reporter: Jens Petersen <petersen>
Component: publicanAssignee: Ruediger Landmann <rlandman+disabled>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 1.6CC: jfearn, mmcallis, publican-list, rlandman
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.2-0.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-20 05:19:51 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 Jens Petersen 2009-05-18 01:06:36 UTC
Description of problem:
If one has an ~/.rpmmacros file that overrides where rpm looks for source files etc, then publican breaks.

Steps to Reproduce:
$ cat > ~/.rpmmacros <<EOF
%__pwd %(echo $PWD)
%_builddir %__pwd
%_rpmdir %__pwd
%_sourcedir %__pwd
%_specdir %__pwd
%_srcrpmdir %__pwd
EOF
$ cd mybook
$ make srpm-en_US   # or web-srpm-en-US,) etc
  
Actual results:
START: web-srpm-en-US: Mon May 18 10:51:14 EST 2009
rpmbuild --define "_topdir /home/petersen/tmp/rhel-ig/tmp/rpm" --define "dist .fc10" -bs tmp/rpm/SPECS/Red_Hat_Enterprise_Linux-Installation_Guide-en-US.spec
error: File /home/petersen/tmp/rhel-ig/Red_Hat_Enterprise_Linux-Installation_Guide-5-3.1-en-US.tgz: No such file or directory
make: *** [web-srpm-en-US] Error 1

Expected results:
publican needs to override %_srcrpmdir, %_rpmdir, %_sourcedir, and probably %_specdir
so that it always uses tmp/rpm even if .rpmmacros exists.

Comment 1 Jens Petersen 2009-05-22 04:37:18 UTC
This also applies to building publican itself (eg make rpm).

Comment 2 Bug Zapper 2009-06-09 16:00:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Michael Hideo 2009-06-17 02:19:12 UTC
Adding to my Feature list for additional analysis post docs.redhat.com rebase.

Comment 4 Jeff Fearn 🐞 2009-08-10 23:27:42 UTC
This should be fixed in the BETA.

Comment 5 Ruediger Landmann 2009-09-09 00:25:20 UTC
Fixed in 1.0 

With ~/.rpmmacros set to contain the same as in the original report:

$ publican package --lang=en-US
...
$ Wrote: /home/rlandmann/Documents/beta/Testbook1/tmp/rpm/Documentation-Testbook1-0.1-web-en-US-0-0.el5.src.rpm

Comment 6 Fedora Update System 2009-11-18 02:18:29 UTC
publican-1.2-0.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/publican-1.2-0.fc12

Comment 7 Fedora Update System 2009-11-20 05:17:31 UTC
publican-1.2-0.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2009-11-25 14:52:39 UTC
publican-1.2-0.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.