Bug 161820 - Build writes to destination location, not %_tmppath
Build writes to destination location, not %_tmppath
Status: CLOSED WORKSFORME
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: xcin (Show other bugs)
4.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Caius Chance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-27 11:54 EDT by Steve Snyder
Modified: 2007-11-30 17:07 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-03-22 23:59:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
local build log (63.38 KB, text/plain)
2007-03-22 23:03 EDT, Caius Chance
no flags Details

  None (edit)
Description Steve Snyder 2005-06-27 11:54:14 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050520 Fedora/1.7.8-1.icc

Description of problem:
In the course of rebuilding this package, the files to be packaged are written to /usr/X11R6/lib/X11/xcin/, their final location.  The files should be written to %_tmppath/xcin-buildroot/usr/X11R6/lib/X11/xcin/ prior to packaging.


Version-Release number of selected component (if applicable):
xcin-2.5.3.pre3-24

How reproducible:
Didn't try

Steps to Reproduce:
1.Run: rpmbuild --rebuild xcin-2.5.3.pre3-24.src.rpm
2.Build fails because the files are not in the expected location
3.
  

Actual Results:  The contents of /usr/X11R6/lib/X11/xcin/ are ovewritten by the files to be packaged, then the packaing fails because the files are not found in the correct location.

Expected Results:  The file to be packaged should be written beneath %_tmppath/xcin-buildroot/.

Additional info:

A request: please do test builds on a system with /usr mounted read-only.  I'm seeing way too many RHEL4 package builds that erroneously write to a directory beneath /usr in the course of the processing.  Only directories beneath %_tmppath and %_builddir should be written to during a package build.  Mounting /usr as read-only would let you catch these spec file mistakes before your customers do.  Thanks.
Comment 1 Caius Chance 2007-03-22 23:03:02 EDT
Created attachment 150719 [details]
local build log

Test built on a system with /usr/X11R6/lib/X11/xcin as a read-only empty file.
- SUCCESS

OS: RHEL4-U5 (beta)
Package: xcin-2.5.3.pre3-25

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