LinuxForum.Fans
Тема

Проблема со сборкой из тарболов (ищет tar.bz2 вместо tar.gz)

Автор: ufomen 2 сообщений 1417 просмотров
16.10.2014 14:56 · отредактировано #396876

Доброго времени суток!
Создал структуру каталогов, установил все что необходимо для сборки, даю команду:

[root@rpmbuild SOURCES]# rpmbuild -tb apr-1.5.1.tar.gz
error: File /root/rpmbuild/SOURCES/apr-1.5.1.tar.bz2: No such file or directory

Кто сможет объяснить как, а главное почему он из имени файла apr-1.5.1.tar.gz делает apr-1.5.1.tar.bz2
gzip и bzip2 установлены.


[root@rpmbuild SOURCES]# cat /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m

[root@rpmbuild SOURCES]# arch
x86_64

text
[root@rpmbuild SOURCES]# rpm -qa |sort
acl-2.2.49-6.el6.x86_64
attr-2.4.44-7.el6.x86_64
audit-2.2-2.el6.x86_64
audit-libs-2.2-2.el6.x86_64
authconfig-6.1.12-13.el6.x86_64
autoconf-2.63-5.1.el6.noarch
automake-1.11.1-4.el6.noarch
b43-openfwwf-5.2-4.el6.noarch
basesystem-10.0-4.el6.noarch
bash-4.1.2-15.el6_4.x86_64
binutils-2.20.51.0.2-5.36.el6.x86_64
bridge-utils-1.2-10.el6.x86_64
bzip2-1.0.5-7.el6_0.x86_64
bzip2-devel-1.0.5-7.el6_0.x86_64
bzip2-libs-1.0.5-7.el6_0.x86_64
ca-certificates-2013.1.94-65.0.el6.noarch
centos-release-6-5.el6.centos.11.1.x86_64
checkpolicy-2.0.22-1.el6.x86_64
chkconfig-1.3.49.3-2.el6_4.1.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
coreutils-8.4-31.el6.x86_64
coreutils-libs-8.4-31.el6.x86_64
cpio-2.10-11.el6_3.x86_64
cpp-4.4.7-4.el6.x86_64
cracklib-2.8.16-4.el6.x86_64
cracklib-dicts-2.8.16-4.el6.x86_64
cronie-1.4.4-12.el6.x86_64
cronie-anacron-1.4.4-12.el6.x86_64
crontabs-1.10-33.el6.noarch
cryptsetup-luks-1.2.0-7.el6.x86_64
cryptsetup-luks-libs-1.2.0-7.el6.x86_64
curl-7.19.7-37.el6_4.x86_64
cyrus-sasl-2.1.23-13.el6_3.1.x86_64
cyrus-sasl-devel-2.1.23-13.el6_3.1.x86_64
cyrus-sasl-lib-2.1.23-13.el6_3.1.x86_64
dash-0.5.5.1-4.el6.x86_64
db4-4.7.25-18.el6_4.x86_64
db4-cxx-4.7.25-18.el6_4.x86_64
db4-devel-4.7.25-18.el6_4.x86_64
db4-utils-4.7.25-18.el6_4.x86_64
dbus-glib-0.86-6.el6.x86_64
dbus-libs-1.2.24-7.el6_3.x86_64
device-mapper-1.02.79-8.el6.x86_64
device-mapper-event-1.02.79-8.el6.x86_64
device-mapper-event-libs-1.02.79-8.el6.x86_64
device-mapper-libs-1.02.79-8.el6.x86_64
device-mapper-multipath-0.4.9-72.el6.x86_64
device-mapper-multipath-libs-0.4.9-72.el6.x86_64
device-mapper-persistent-data-0.2.8-2.el6.x86_64
dhclient-4.1.1-38.P1.el6.centos.x86_64
dhcp-common-4.1.1-38.P1.el6.centos.x86_64
diffutils-2.8.1-28.el6.x86_64
doxygen-1.6.1-6.el6.x86_64
dracut-004-335.el6.noarch
dracut-kernel-004-335.el6.noarch
e2fsprogs-1.41.12-18.el6_5.1.x86_64
e2fsprogs-libs-1.41.12-18.el6_5.1.x86_64
efibootmgr-0.5.4-11.el6.x86_64
elfutils-0.152-1.el6.x86_64
elfutils-libelf-0.152-1.el6.x86_64
elfutils-libs-0.152-1.el6.x86_64
ethtool-3.5-1.el6.x86_64
expat-2.0.1-11.el6_2.x86_64
expat-devel-2.0.1-11.el6_2.x86_64
file-5.04-15.el6.x86_64
file-libs-5.04-15.el6.x86_64
filesystem-2.4.30-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
fipscheck-1.2.0-7.el6.x86_64
fipscheck-lib-1.2.0-7.el6.x86_64
fuse-2.8.3-4.el6.x86_64
gamin-0.1.10-9.el6.x86_64
gawk-3.1.7-10.el6.x86_64
gcc-4.4.7-4.el6.x86_64
gdb-7.2-64.el6_5.2.x86_64
gdbm-1.8.0-36.el6.x86_64
glib2-2.26.1-3.el6.x86_64
glibc-2.12-1.132.el6_5.4.x86_64
glibc-common-2.12-1.132.el6_5.4.x86_64
glibc-devel-2.12-1.132.el6_5.4.x86_64
glibc-headers-2.12-1.132.el6_5.4.x86_64
gmp-4.3.1-7.el6_2.2.x86_64
gnupg2-2.0.14-6.el6_4.x86_64
gpgme-1.1.8-3.el6.x86_64
gpg-pubkey-c105b9de-4e0fd3a3
gpm-libs-1.20.6-12.el6.x86_64
grep-2.6.3-4.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
grub-0.97-83.el6.x86_64
grubby-7.0.15-5.el6.x86_64
gzip-1.3.12-19.el6_4.x86_64
hwdata-0.233-9.1.el6.noarch
info-4.13a-8.el6.x86_64
initscripts-9.03.40-2.el6.centos.x86_64
iproute-2.6.32-31.el6.x86_64
iptables-1.4.7-11.el6.x86_64
iptables-ipv6-1.4.7-11.el6.x86_64
iputils-20071127-17.el6_4.2.x86_64
iscsi-initiator-utils-6.2.0.873-10.el6.x86_64
kbd-1.15-11.el6.x86_64
kbd-misc-1.15-11.el6.noarch
kernel-2.6.32-431.el6.x86_64
kernel-firmware-2.6.32-431.el6.noarch
kernel-headers-2.6.32-431.29.2.el6.x86_64
keyutils-libs-1.4-4.el6.x86_64
keyutils-libs-devel-1.4-4.el6.x86_64
kpartx-0.4.9-72.el6.x86_64
krb5-devel-1.10.3-15.el6_5.1.x86_64
krb5-libs-1.10.3-15.el6_5.1.x86_64
less-436-10.el6.x86_64
libacl-2.2.49-6.el6.x86_64
libaio-0.3.107-10.el6.x86_64
libattr-2.4.44-7.el6.x86_64
libblkid-2.17.2-12.14.el6_5.x86_64
libcap-2.16-5.5.el6.x86_64
libcap-ng-0.6.4-3.el6_0.1.x86_64
libcom_err-1.41.12-18.el6_5.1.x86_64
libcom_err-devel-1.41.12-18.el6_5.1.x86_64
libcurl-7.19.7-37.el6_4.x86_64
libdrm-2.4.45-2.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
libgcc-4.4.7-4.el6.x86_64
libgcrypt-1.4.5-11.el6_4.x86_64
libgomp-4.4.7-4.el6.x86_64
libgpg-error-1.7-4.el6.x86_64
libidn-1.18-2.el6.x86_64
libnih-1.0.1-7.el6.x86_64
libpciaccess-0.13.1-2.el6.x86_64
libselinux-2.0.94-5.3.el6_4.1.x86_64
libselinux-devel-2.0.94-5.3.el6_4.1.x86_64
libselinux-utils-2.0.94-5.3.el6_4.1.x86_64
libsemanage-2.0.43-4.2.el6.x86_64
libsepol-2.0.41-4.el6.x86_64
libsepol-devel-2.0.41-4.el6.x86_64
libss-1.41.12-18.el6_5.1.x86_64
libssh2-1.4.2-1.el6.x86_64
libstdc++-4.4.7-4.el6.x86_64
libtasn1-2.3-3.el6_2.1.x86_64
libtool-2.2.6-15.5.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libudev-147-2.51.el6.x86_64
libusb-0.1.12-23.el6.x86_64
libuser-0.56.13-5.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
libuuid-2.17.2-12.14.el6_5.x86_64
libuuid-devel-2.17.2-12.14.el6_5.x86_64
libxml2-2.7.6-14.el6_5.2.x86_64
libxml2-devel-2.7.6-14.el6_5.2.x86_64
logrotate-3.7.8-17.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
lua-devel-5.1.4-4.1.el6.x86_64
lvm2-2.02.100-8.el6.x86_64
lvm2-libs-2.02.100-8.el6.x86_64
m4-1.4.13-5.el6.x86_64
make-3.81-20.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
man-1.6f-32.el6.x86_64
mdadm-3.2.6-7.el6.x86_64
mingetty-1.08-5.el6.x86_64
module-init-tools-3.9-21.el6_4.x86_64
mpfr-2.4.1-6.el6.x86_64
mysql-5.1.73-3.el6_5.x86_64
mysql-devel-5.1.73-3.el6_5.x86_64
mysql-libs-5.1.73-3.el6_5.x86_64
ncurses-5.7-3.20090208.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
net-tools-1.60-110.el6_2.x86_64
newt-0.52.11-3.el6.x86_64
newt-python-0.52.11-3.el6.x86_64
nspr-4.10.6-1.el6_5.x86_64
nspr-devel-4.10.6-1.el6_5.x86_64
nss-3.16.1-7.el6_5.x86_64
nss-devel-3.16.1-7.el6_5.x86_64
nss-softokn-3.14.3-12.el6_5.x86_64
nss-softokn-devel-3.14.3-12.el6_5.x86_64
nss-softokn-freebl-3.14.3-12.el6_5.x86_64
nss-softokn-freebl-devel-3.14.3-12.el6_5.x86_64
nss-sysinit-3.16.1-7.el6_5.x86_64
nss-tools-3.16.1-7.el6_5.x86_64
nss-util-3.16.1-2.el6_5.x86_64
nss-util-devel-3.16.1-2.el6_5.x86_64
openldap-2.4.23-34.el6_5.1.x86_64
openldap-devel-2.4.23-34.el6_5.1.x86_64
openssh-5.3p1-94.el6.x86_64
openssh-clients-5.3p1-94.el6.x86_64
openssh-server-5.3p1-94.el6.x86_64
openssl-1.0.1e-16.el6_5.15.x86_64
openssl-devel-1.0.1e-16.el6_5.15.x86_64
p11-kit-0.18.5-2.el6.x86_64
p11-kit-trust-0.18.5-2.el6.x86_64
pam-1.1.1-17.el6.x86_64
passwd-0.77-4.el6_2.2.x86_64
patch-2.6-6.el6.x86_64
pciutils-libs-3.1.10-2.el6.x86_64
pcre-7.8-6.el6.x86_64
pcre-devel-7.8-6.el6.x86_64
perl-5.10.1-136.el6.x86_64
perl-libs-5.10.1-136.el6.x86_64
perl-Module-Pluggable-3.90-136.el6.x86_64
perl-Pod-Escapes-1.04-136.el6.x86_64
perl-Pod-Simple-3.13-136.el6.x86_64
perl-version-0.77-136.el6.x86_64
pinentry-0.7.6-6.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
plymouth-0.8.3-27.el6.centos.x86_64
plymouth-core-libs-0.8.3-27.el6.centos.x86_64
plymouth-scripts-0.8.3-27.el6.centos.x86_64
policycoreutils-2.0.83-19.39.el6.x86_64
popt-1.13-7.el6.x86_64
postfix-2.6.6-2.2.el6_1.x86_64
postgresql-8.4.20-1.el6_5.x86_64
postgresql-devel-8.4.20-1.el6_5.x86_64
postgresql-libs-8.4.20-1.el6_5.x86_64
ppl-0.10.2-11.el6.x86_64
procps-3.2.8-25.el6.x86_64
psmisc-22.6-15.el6_0.1.x86_64
pth-2.0.7-9.3.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
python-2.6.6-51.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
python-libs-2.6.6-51.el6.x86_64
python-pycurl-7.19.0-8.el6.x86_64
python-urlgrabber-3.9.1-9.el6.noarch
readline-6.0-4.el6.x86_64
redhat-logos-60.0.14-12.el6.centos.noarch
rootfiles-8.1-6.1.el6.noarch
rpm-4.8.0-37.el6.x86_64
rpm-build-4.8.0-37.el6.x86_64
rpm-libs-4.8.0-37.el6.x86_64
rpm-python-4.8.0-37.el6.x86_64
rsyslog-5.8.10-8.el6.x86_64
sed-4.2.1-10.el6.x86_64
selinux-policy-3.7.19-231.el6.noarch
selinux-policy-targeted-3.7.19-231.el6.noarch
setup-2.8.14-20.el6_4.1.noarch
shadow-utils-4.1.4.2-13.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
slang-2.2.1-1.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
sudo-1.8.6p3-12.el6.x86_64
system-config-firewall-base-1.2.27-5.el6.noarch
sysvinit-tools-2.87-5.dsf.el6.x86_64
tar-1.23-11.el6.x86_64
tcp_wrappers-libs-7.6-57.el6.x86_64
tzdata-2013g-1.el6.noarch
udev-147-2.51.el6.x86_64
unixODBC-2.2.14-12.el6_3.x86_64
unixODBC-devel-2.2.14-12.el6_3.x86_64
unzip-6.0-1.el6.x86_64
upstart-0.6.5-12.el6_4.1.x86_64
ustr-1.0.4-9.1.el6.x86_64
util-linux-ng-2.17.2-12.14.el6_5.x86_64
vim-common-7.2.411-1.8.el6.x86_64
vim-enhanced-7.2.411-1.8.el6.x86_64
vim-minimal-7.2.411-1.8.el6.x86_64
wget-1.12-1.11.el6_5.x86_64
which-2.19-6.el6.x86_64
xfsprogs-3.1.1-14.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
yum-3.2.29-40.el6.centos.noarch
yum-metadata-parser-1.1.2-16.el6.x86_64
yum-plugin-fastestmirror-1.1.30-14.el6.noarch
zip-3.0-1.el6.x86_64
zlib-1.2.3-29.el6.x86_64
zlib-devel-1.2.3-29.el6.x86_64
16.10.2014 15:18 #396890

Нашел ответ:

text
By default, rpmbuild expects the basename() of the source file to exist in the %_topdir/SOURCES directory, regardless of where it otherwise states. In spec files you'll often see a URL (wget.spec):

Source: ftp://ftp.gnu.org/gnu/wget/wget-%{version}.tar.bz2 It doesn't fetch it at build time, even if it was on your own filesystem. The "No such file or directory" error comes from the %setup macro looking for the file in the default location, and not seeing it.

The solution is to copy (or make a symlink) of the file to your rpmbuild/SOURCES directory.

If you, for whatever reason, don't want to have to copy that file to your user's SOURCES directory, you can use the the -T option to the %setup mecro, it tells it to "Not Perform Default Archive Unpacking":

%setup -T You'll have to unpack the archive yourself in the %prep section, if you choose to go this route.

И действительно в SPEC файле при распаковке:
Source0: http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2
Косяяяячники!

Войдите или зарегистрируйтесь, чтобы ответить.