[opensuse-packaging] need help to unpack and build package
Hello, I need help to unpack and build package. How can this error be fixed ? Thanks Glenn project: https://build.opensuse.org/package/show/home:doiggl/cacti spec file: https://build.opensuse.org/package/view_file/home:doiggl/cacti/cacti.spec?ex... Log shows: https://build.opensuse.org/package/live_build_log/home:doiggl/cacti/openSUSE... [ 48s] ----------------------------------------------------------------- [ 48s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --define '_build_create_debug 1' --define 'disturl obs://build.opensuse.org/home:doiggl/openSUSE_13.1/c64e8feb8dd54cb5cc2dd3c19fcd0f03-cacti' /home/abuild/rpmbuild/SOURCES/cacti.spec [ 49s] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8nrDDU [ 49s] + umask 022 [ 49s] + cd /home/abuild/rpmbuild/BUILD [ 49s] + cd /home/abuild/rpmbuild/BUILD [ 49s] + rm -rf cacti-0.8.9 [ 49s] + /usr/bin/gzip -dc /home/abuild/rpmbuild/SOURCES/cacti-0.8.9.tgz [ 49s] + /bin/tar -xf - [ 49s] + STATUS=0 [ 49s] + '[' 0 -ne 0 ']' [ 49s] + cd cacti-0.8.9 [ 49s] /var/tmp/rpm-tmp.8nrDDU: line 34: cd: cacti-0.8.9: No such file or directory [ 49s] error: Bad exit status from /var/tmp/rpm-tmp.8nrDDU (%prep) [ 49s] [ 49s] [ 49s] RPM build errors: [ 49s] Bad exit status from /var/tmp/rpm-tmp.8nrDDU (%prep) [ 52s] /.build/build: line 373: 205 Killed background_monitor_process [ 54s] [ 39.090123] SysRq : Power Off [ 54s] [ 39.307890] Power down. Partial file list shows: ######################## # tar -ztvf cacti-0.8.9.tgz drwxrwxr-x reinhard/reinhard 0 2013-08-07 05:09 cacti089/ -rw-r--r-- reinhard/reinhard 5934 2013-08-07 05:09 cacti089/about.php -rw-rw-r-- reinhard/reinhard 28824 2013-08-07 05:09 cacti089/graphs.php -rw-r--r-- reinhard/reinhard 5851 2013-08-07 05:09 cacti089/templates_import.php drwxr-xr-x reinhard/reinhard 0 2013-08-07 05:09 cacti089/install/ -rw-r--r-- reinhard/reinhard 1590 2013-08-07 05:09 cacti089/install/0_8_7e_to_0_8_7f.php -rw-r--r-- reinhard/reinhard 1723 2013-08-07 05:09 cacti089/install/0_8_2_to_0_8_2a.php -rw-r--r-- reinhard/reinhard 353 2013-08-07 05:09 cacti089/install/install_finish.gif -rw-r--r-- reinhard/reinhard 5783 2013-08-07 05:09 cacti089/install/0_8_4_to_0_8_5.php -rw-r--r-- reinhard/reinhard 6416 2013-08-07 05:09 cacti089/install/0_8_7i_to_0_8_8.php -rw-r--r-- reinhard/reinhard 5544 2013-08-07 05:09 cacti089/install/0_8_7b_to_0_8_7c.php -rw-r--r-- reinhard/reinhard 5790 2013-08-07 05:09 cacti089/install/0_8_6_to_0_8_6a.php -rw-r--r-- reinhard/reinhard 3473 2013-08-07 05:09 cacti089/install/0_8_6h_to_0_8_6i.php -rw-rw-r-- reinhard/reinhard 1590 2013-08-07 05:09 cacti089/install/0_8_8_to_0_8_8b.php -rw-r--r-- reinhard/reinhard 6588 2013-08-07 05:09 cacti089/install/0_8_6d_to_0_8_6e.php -rw-r--r-- reinhard/reinhard 9900 2013-08-07 05:09 cacti089/install/0_8_5a_to_0_8_6.php -rw-r--r-- reinhard/reinhard 4088 2013-08-07 05:09 cacti089/install/0_8_7g_to_0_8_7h.php -rw-r--r-- reinhard/reinhard 2250 2013-08-07 05:09 cacti089/install/0_8_6f_to_0_8_6g.php -rw-r--r-- reinhard/reinhard 1590 2013-08-07 05:09 cacti089/install/0_8_7c_to_0_8_7d.php -rw-r--r-- reinhard/reinhard 51368 2013-08-07 05:09 cacti089/install/0_8_8a_to_0_8_9.php -rw-r--r-- reinhard/reinhard 2656 2013-08-07 05:09 cacti089/install/0_8_1_to_0_8_2.php -rw-r--r-- reinhard/reinhard 2007 2013-08-07 05:09 cacti089/install/0_8_7_to_0_8_7a.php -rw-r--r-- reinhard/reinhard 1590 2013-08-07 05:09 cacti089/install/0_8_7d_to_0_8_7e.php -rw-r--r-- reinhard/reinhard 1591 2013-08-07 05:09 cacti089/install/0_8_7h_to_0_8_7i.php -rw-r--r-- reinhard/reinhard 1976 2013-08-07 05:09 cacti089/install/0_8_6c_to_0_8_6d.php -rw-r--r-- reinhard/reinhard 1590 2013-08-07 05:09 cacti089/install/0_8_7f_to_0_8_7g.php -rw-r--r-- reinhard/reinhard 5443 2013-08-07 05:09 cacti089/install/0_8_2a_to_0_8_3.php -rw-r--r-- reinhard/reinhard 1859 2013-08-07 05:09 cacti089/install/0_8_7a_to_0_8_7b.php -rw-r--r-- reinhard/reinhard 13095 2013-08-07 05:09 cacti089/install/0_8_6j_to_0_8_7.php -rw-r--r-- reinhard/reinhard 74608 2013-08-07 05:09 cacti089/install/0_8_3_to_0_8_4.php -rw-r--r-- reinhard/reinhard 413 2013-08-07 05:09 cacti089/install/install_next.gif -rw-rw-r-- reinhard/reinhard 26737 2013-08-07 05:09 cacti089/install/index.php -rw-r--r-- reinhard/reinhard 2406 2013-08-07 05:09 cacti089/install/0_8_to_0_8_1.php -rw-r--r-- reinhard/reinhard 1590 2013-08-07 05:09 cacti089/install/0_8_8_to_0_8_8a.php -rw-r--r-- reinhard/reinhard 2451 2013-08-07 05:09 cacti089/install/0_8_6g_to_0_8_6h.php -rw-r--r-- reinhard/reinhard 6038 2013-08-07 05:09 cacti089/graph_xport.php -rw-r--r-- reinhard/reinhard 26575 2013-08-07 05:09 cacti089/cmd.php -rw-r--r-- reinhard/reinhard 5340 2013-08-07 05:09 cacti089/auth_changepassword.php -rw-r--r-- reinhard/reinhard 14238 2013-08-07 05:09 cacti089/auth_login.php -rw-r--r-- reinhard/reinhard 9208 2013-08-07 05:09 cacti089/graph_settings.php -rw-rw-r-- reinhard/reinhard 65369 2013-08-07 05:09 cacti089/host.php -rw-rw-r-- reinhard/reinhard 18393 2013-08-07 05:09 cacti089/poller.php -rw-r--r-- reinhard/reinhard 6974 2013-08-07 05:09 cacti089/color.php -rw-r--r-- reinhard/reinhard 48 2013-08-07 05:09 cacti089/README -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Dne Út 25. března 2014 22:41:19, doiggl@velocitynet.com.au napsal(a):
[ 49s] + cd cacti-0.8.9 [ 49s] /var/tmp/rpm-tmp.8nrDDU: line 34: cd: cacti-0.8.9: No such file or directory [ 49s] error: Bad exit status from /var/tmp/rpm-tmp.8nrDDU (%prep) [ 49s] [ 49s]
As you see it tries to go to cacti-0.8.9 directory which is not there. From what I see in the tarball it should be done like this in the proper phase: %setup -q -n %{name}089 Cheers Tom
# tar -ztvf cacti-0.8.9.tgz ^^^^^^^^^^^ drwxrwxr-x reinhard/reinhard 0 2013-08-07 05:09 cacti089/ ^^^^^^^^
That doesn't match. Use the -n option of %setup to override the default name of the tarball directory (which is %{name}-%{version}). Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Andreas Schwab
-
doiggl@velocitynet.com.au
-
Tomáš Chvátal