Bug 51736 - lesstif.spec file allows rpm build to write into /usr partition
lesstif.spec file allows rpm build to write into /usr partition
Product: Red Hat Linux
Classification: Retired
Component: lesstif (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Ngo Than
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2001-08-14 11:39 EDT by greg hosler
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-08-14 11:39:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description greg hosler 2001-08-14 11:39:04 EDT
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 11:45:03 EDT
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.