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
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: lesstif   
(Show other bugs)
Version: 7.3
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Ngo Than
QA Contact:
Keywords: FutureFeature
Depends On:
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:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-08-14 15:39:07 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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
 /usr/share/aclocal ; fi
/usr/bin/install: cannot create regular file
: 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:

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

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

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.