Mailinglist Archive: opensuse-packaging (127 mails)

< Previous Next >
[opensuse-packaging] When is the correct time and method to move a directory to /opt ?
  • From: <doiggl@xxxxxxxxxxxxxxxxxx>
  • Date: Mon, 02 Nov 2009 21:59:14 +1100
  • Message-id: <5d59f944f8fc3b9a7e4cbf2ba698140c@xxxxxxxxxxxxxxxxxxxxxxx>
When is the correct time and method to move a directory to /opt
I want to move %{buildroot}/cricket-1.0.5 to /opt/cricket-1.0.5

From the specfile
-----------------

%prep
%setup -q -n cricket-%version

# added in 6 lines
mkdir -p %{buildroot}/opt
ls -laR %{buildroot}/opt
ls -laR %{buildroot}/cricket-1.0.5
mv -v %{buildroot}/cricket-1.0.5 %{buildroot}/opt/cricket-1.0.5
ln -s %{buildroot}/cricket-1.0.5 %{buildroot}/opt/cricket
ls -laR %{buildroot}/opt/cricket

From the logfile
----------------

+ mkdir -p /usr/src/packages/BUILDROOT/test-1.0.5-9.1.i386/opt
+ ls -laR /usr/src/packages/BUILDROOT/test-1.0.5-9.1.i386/opt
/usr/src/packages/BUILDROOT/test-1.0.5-9.1.i386/opt:
total 8
drwxr-xr-x 2 abuild abuild 4096 Nov 2 06:30 .
drwxr-xr-x 3 abuild abuild 4096 Nov 2 06:30 ..
+ ls -laR /usr/src/packages/BUILDROOT/test-1.0.5-9.1.i386/cricket-1.0.5
ls: cannot access
/usr/src/packages/BUILDROOT/test-1.0.5-9.1.i386/cricket-1.0.5: No such file
or directory
error: Bad exit status from /var/tmp/rpm-tmp.rndSBi (%prep)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.rndSBi (%prep)
System halted.


full specfile detail ->
https://build.opensuse.org/package/view_file?file=cricket105test.spec&package=cricket105test&project=home%3Adoiggl

full logfile detail ->
https://build.opensuse.org/package/view_file?file=cricket105test.spec&package=cricket105test&project=home%3Adoiggl

Thanks Glenn
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages