Skip to content

Instantly share code, notes, and snippets.

@oranie
Created March 14, 2012 06:39
Show Gist options
  • Save oranie/2034655 to your computer and use it in GitHub Desktop.
Save oranie/2034655 to your computer and use it in GitHub Desktop.
src.rpm error
make: *** [install] Error 1
エラー: Bad exit status from /var/tmp/rpm-tmp.91246 (%install)
RPM build errors:
user build does not exist - using root
group build does not exist - using root
user build does not exist - using root
group build does not exist - using root
user build does not exist - using root
group build does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.91246 (%install)
[mainte@hogehoge-test ~]$ cat /var/tmp/rpm-tmp.91246
#!/bin/sh
RPM_SOURCE_DIR="/usr/src/redhat/SOURCES"
RPM_BUILD_DIR="/usr/src/redhat/BUILD"
RPM_OPT_FLAGS="-O2 -g -pipe -m32 -march=i386 -mtune=pentium4"
RPM_ARCH="i386"
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="td-agent"
RPM_PACKAGE_VERSION="1.1.3"
RPM_PACKAGE_RELEASE="0"
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
RPM_BUILD_ROOT="/var/tmp/td-agent-1.1.3-0-mainte"
export RPM_BUILD_ROOT
set -x
umask 022
cd /usr/src/redhat/BUILD
cd td-agent-1.1.3
LANG=C
export LANG
unset DISPLAY
# cleanup first
rm -rf $RPM_BUILD_ROOT
# install programs
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
# install init.d script
mkdir -p $RPM_BUILD_ROOT/etc/init.d/
install -m 755 /usr/src/redhat/SOURCES/td-agent.init $RPM_BUILD_ROOT/etc/init.d/td-agent
# create log dir
mkdir -p $RPM_BUILD_ROOT/var/log/td-agent
/usr/lib/rpm/redhat/brp-compress
/usr/lib/rpm/redhat/brp-strip /bin/true
/usr/lib/rpm/redhat/brp-strip-static-archive /bin/true
/usr/lib/rpm/redhat/brp-strip-comment-note /bin/true /usr/bin/objdump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment