RPMBUILD //SOURCES -
i'm trying build rpm barnyard2-1.9, when attempt receive error. these last few lines of rpmbuild output:
+ /usr/bin/install -d -p /home/snort/rpm/barnyard2-1.9/tmp/barnyard2-1.9-root/usr/share/doc/barnyard2-1.9/contrib + /usr/bin/install -d -p /home/snort/rpm/barnyard2-1.9/tmp/barnyard2-1.9-root/usr/share/man/man8 + /usr/bin/install -d -p /home/snort/rpm/barnyard2-1.9/tmp/barnyard2-1.9-root/usr/share/doc/barnyard2-1.9/doc + /usr/bin/install -m 644 etc/barnyard2.conf /home/snort/rpm/barnyard2-1.9/tmp/barnyard2-1.9-root/etc/snort/ + /usr/bin/install -m 644 /home/snort/rpm/barnyard2-1.9//sources/barnyard2.config /home/snort/rpm/barnyard2-1.9/tmp/barnyard2-1.9-root/etc/sysconfig/barnyard2 /usr/bin/install: cannot stat `/home/snort/rpm/barnyard2-1.9//sources/barnyard2.config': no such file or directory error: bad exit status /home/snort/rpm/barnyard2-1.9/tmp/rpm-tmp.66176 (%install)
rpm build errors:
bad exit status /home/snort/rpm/barnyard2-1.9/tmp/rpm-tmp.66176 (%install)
i'm not sure it's getting "//" in "/home/snort/rpm/barnyard2-1.9//sources/barnyard2.config" line. here top few lines rpm-tmp.66176 file:
rpm_source_dir="/home/snort/rpm/barnyard2-1.9//sources" rpm_build_dir="/home/snort/rpm/barnyard2-1.9//build" rpm_opt_flags="-o2 -g -m64 -mtune=generic" rpm_arch="x86_64" rpm_os="linux" export rpm_source_dir rpm_build_dir rpm_opt_flags rpm_arch rpm_os rpm_doc_dir="/usr/share/doc" export rpm_doc_dir rpm_package_name="barnyard2" rpm_package_version="1.9" rpm_package_release="1" export rpm_package_name rpm_package_version rpm_package_release rpm_build_root="/home/snort/rpm/barnyard2-1.9/tmp/barnyard2-1.9-root" export rpm_build_root pkg_config_path="/usr/lib64/pkgconfig:/usr/share/pkgconfig" export pkg_config_path set -x umask 022 cd "/home/snort/rpm/barnyard2-1.9//build"
any ideas?
i got it.
in .rpmmacros
file, had:
%_topdir /home/snort/rpm/barnyard2-1.9/
the last /
caused it. i'm not sure how rpm_source_dir
, %_topdir
got connected, whatever. it's working now.
Comments
Post a Comment