[Bug 2115] New: Could we do a write check in the install directory before running?

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Sat Apr 13 19:34:49 UTC 2013


https://www.rtems.org/bugzilla/show_bug.cgi?id=2115

             Bug #: 2115
           Summary: Could we do a write check in the install directory
                    before running?
    Classification: Unclassified
           Product: RTEMS Source Builder
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: Code
        AssignedTo: chrisj at rtems.org
        ReportedBy: cynt6007 at vandals.uidaho.edu


During testing of feasibility of running RSB on gcc compile farm, ran
../source-builder/sb-set-builder unstable/4.11/rtems-avr.bset

The job started at ~11:30 PDT and ended at ~12:23 PDT.  The job ended with the
following error:

/home/cynt6007/rtems-source-builder/rtems/build/tmp/source-build-cynt6007/unstable/4.11/rtems-avr.bset/usr/lib/libiberty.a
installing: expat-2.1.0-x86_64-linux-gnu-1 -> /usr
Traceback (most recent call last):
  File "../source-builder/sb-set-builder", line 26, in <module>
    setbuilder.run()
  File "../source-builder/sb/setbuilder.py", line 373, in run
    b.build(deps)
  File "../source-builder/sb/setbuilder.py", line 317, in build
    b.config.expand('%{_prefix}'))
  File "../source-builder/sb/setbuilder.py", line 136, in install
    self.copy(src, dst)
  File "../source-builder/sb/setbuilder.py", line 87, in copy
    raise error.general('copying tree: %s: %s' % (what, str(err)))
NameError: global name 'what' is not defined

>From prior experience with this error on Debian, I know it's caused by RSB
attempting to install in expat in the /usr directory.

Instead of giving an error and exiting after running an hour, could a
write-check in the install directory be run BEFORE attempting to build the
software? Could the error-message ask the user to change the prefix or use the
root account?

The compile machine info:
gcc20   1TB  2x6x2.93 GHz Intel Dual Xeon X5670 2.93 GHz 12 cores 24 threads /
24 GB RAM / Debian amd64

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list