Bug 51736 - lesstif.spec file allows rpm build to write into /usr partition
Summary: lesstif.spec file allows rpm build to write into /usr partition
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: lesstif
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-08-14 15:39 UTC by greg hosler
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-08-14 15:39:07 UTC
Embargoed:


Attachments (Terms of Use)

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.


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