Bug 51736

Summary: lesstif.spec file allows rpm build to write into /usr partition
Product: [Retired] Red Hat Linux Reporter: greg hosler <greg>
Component: lesstifAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-08-14 15:39:07 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 greg hosler 2001-08-14 15:39:04 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.6-3.1smp i686; Nav)

Description of problem:
building rpm's from spec files is supposed to keep you within
the build sanbox (and /var/tmp). However, when building lesstif
from the spec file, the install attempts to write to /usr/share

make[4]: Nothing to be done for `install-exec-am'.
if test -w /usr/share/aclocal ; then /usr/bin/install -c -m 644
./ac_find_xlt.m4
 /usr/share/aclocal ; fi
/usr/bin/install: cannot create regular file
`/usr/share/aclocal/ac_find_xlt.m4'
: Read-only file system
make[4]: *** [install-data-local] Error 1
make[4]: Leaving directory `/usr/src/redhat/BUILD/lesstif-0.92.32/lib/Xlt'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/usr/src/redhat/BUILD/lesstif-0.92.32/lib/Xlt'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/lesstif-0.92.32/lib/Xlt'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/lesstif-0.92.32/lib'
make: *** [install-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.55176 (%install)


How reproducible:
Always

Steps to Reproduce:
1. mount /usr as read-only
2. rpm -bb lesstif.spec
3.
	

Actual Results:  build fails when it attempts to install ac_find_xlt.m4
into /usr/share/aclocal/


Expected Results:  build should install ac_find_xlt.m4 into
/var/tmp/lesstif-root/
hierarchy

Additional info:

Comment 1 Ngo Than 2001-08-14 15:45:03 UTC
it's fixed in lesstif-0.92.32-6. You will find it in next rawhide release.