Hallo ich habe ein Paket, das ich aus dem Source Paket für meine Distribution installieren möchte. Ich verwende jetzt neu SUSE 11.2 und hab diesmal anstelle 32 bit, die 64 Bit Version istalliert.
Also mal recherchiert wie man es macht und bin hab das das dann gemach mit dem Befehl.
rpmbuild --rebuild paketname
Funktioniert bis dahin, dass in meinem ordner /usr/packages/ schon Dateien in den Ordnern sind, also in BUILD, BUILDROOT, SOURCES, SPECS usw. aber der Ordner RPMS, wo das Paket dann drinnen sein sollte ist leer.#
Hängt wohl mit diese letzten Zeile zusammen
usr/src/packages/BUILDROOT/ogmrip-nero-aac-0.4-0.pm.1.1.x86_64/usr/lib64/ogmrip/audio-plugins/libogmrip-nero-aac.la
Hab das Ganze als root asugeführt, wegen dem Schreibzugriff und so.
Was habe ich genau falsch gemacht? Bitte um Hilfe.
mfg
Walter
Also mal recherchiert wie man es macht und bin hab das das dann gemach mit dem Befehl.
rpmbuild --rebuild paketname
Code:
rpmbuild --rebuild ogmrip-nero-aac-0.4-0.pm.1.1.src.rpm
Installing ogmrip-nero-aac-0.4-0.pm.1.1.src.rpm
warning: InstallSourcePackage at: psm.c:232: Header V3 DSA signature: NOKEY, key ID 9a795806
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.aAgqaT
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf ogmrip-nero-aac-0.4
+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/ogmrip-nero-aac-0.4.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd ogmrip-nero-aac-0.4
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.XTbFVA
+ umask 022
+ cd /usr/src/packages/BUILD
+ /bin/rm -rf /usr/src/packages/BUILDROOT/ogmrip-nero-aac-0.4-0.pm.1.1.x86_64
++ dirname /usr/src/packages/BUILDROOT/ogmrip-nero-aac-0.4-0.pm.1.1.x86_64
+ /bin/mkdir -p /usr/src/packages/BUILDROOT
+ /bin/mkdir /usr/src/packages/BUILDROOT/ogmrip-nero-aac-0.4-0.pm.1.1.x86_64
+ cd ogmrip-nero-aac-0.4
+ CFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables'
+ export FFLAGS
+ ./configure --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --target=x86_64-suse-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-static=no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-unknown-linux-gnu-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld
checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r
checking for x86_64-unknown-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-unknown-linux-gnu-ar... no
checking for ar... ar
checking for x86_64-unknown-linux-gnu-strip... no
checking for strip... strip
checking for x86_64-unknown-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ANSI C header files... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-unknown-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OGMRIP... yes
checking for pkg-config... /usr/bin/pkg-config
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... no
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.40.6 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... (cached) /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for XML::Parser... ok
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands
# INTLTOOL_MAKEFILE
+ /usr/bin/make
Making all in src
make[1]: Entering directory `/usr/src/packages/BUILD/ogmrip-nero-aac-0.4/src'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"ogmrip-nero-aac\" -DPACKAGE_TARNAME=\"ogmrip-nero-aac\" -DPACKAGE_VERSION=\"0.4\" -DPACKAGE_STRING=\"ogmrip-nero-aac\ 0.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ogmrip-nero-aac\" -DVERSION=\"0.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DGETTEXT_PACKAGE=\"ogmrip-nero-aac\" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DENABLE_NLS=1 -DLOCALEDIR=\"/usr/share/locale\" -I. -I. -I/usr/include/ogmrip -I/usr/include/ogmjob -I/usr/include/ogmdvd -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I/usr/local/include -Wall -Werror -I.. -MT ogmrip-nero-aac.lo -MD -MP -MF ".deps/ogmrip-nero-aac.Tpo" -c -o ogmrip-nero-aac.lo ogmrip-nero-aac.c; \
then mv -f ".deps/ogmrip-nero-aac.Tpo" ".deps/ogmrip-nero-aac.Plo"; else rm -f ".deps/ogmrip-nero-aac.Tpo"; exit 1; fi
libtool: compile: gcc -DPACKAGE_NAME=\"ogmrip-nero-aac\" -DPACKAGE_TARNAME=\"ogmrip-nero-aac\" -DPACKAGE_VERSION=\"0.4\" "-DPACKAGE_STRING=\"ogmrip-nero-aac 0.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ogmrip-nero-aac\" -DVERSION=\"0.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DGETTEXT_PACKAGE=\"ogmrip-nero-aac\" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DENABLE_NLS=1 -DLOCALEDIR=\"/usr/share/locale\" -I. -I. -I/usr/include/ogmrip -I/usr/include/ogmjob -I/usr/include/ogmdvd -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I/usr/local/include -Wall -Werror -I.. -MT ogmrip-nero-aac.lo -MD -MP -MF .deps/ogmrip-nero-aac.Tpo -c ogmrip-nero-aac.c -fPIC -DPIC -o .libs/ogmrip-nero-aac.o
/bin/sh ../libtool --tag=CC --mode=link gcc -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I/usr/local/include -Wall -Werror -I.. -L/usr/local/lib -L/usr/pkg/lib -o libogmrip-nero-aac.la -rpath /usr/lib/ogmrip/audio-plugins -export-dynamic -module -avoid-version ogmrip-nero-aac.lo -Wl,--export-dynamic -logmrip -logmrip-mplayer -logmrip-lavc -logmjob -logmdvd -ldvdread -lenca -lm -lgmodule-2.0 -lgobject-2.0 -lglib-2.0
libtool: link: gcc -shared .libs/ogmrip-nero-aac.o -L/usr/local/lib -L/usr/pkg/lib -logmrip -logmrip-mplayer -logmrip-lavc -logmjob -logmdvd -ldvdread -lenca -lm -lgmodule-2.0 -lgobject-2.0 -lglib-2.0 -m64 -Wl,--export-dynamic -Wl,-soname -Wl,libogmrip-nero-aac.so -o .libs/libogmrip-nero-aac.so
libtool: link: ( cd ".libs" && rm -f "libogmrip-nero-aac.la" && ln -s "../libogmrip-nero-aac.la" "libogmrip-nero-aac.la" )
make[1]: Leaving directory `/usr/src/packages/BUILD/ogmrip-nero-aac-0.4/src'
Making all in po
make[1]: Entering directory `/usr/src/packages/BUILD/ogmrip-nero-aac-0.4/po'
file=`echo fr | sed 's,.*/,,'`.gmo \
&& rm -f $file && /usr/bin/msgfmt -o $file fr.po
make[1]: Leaving directory `/usr/src/packages/BUILD/ogmrip-nero-aac-0.4/po'
make[1]: Entering directory `/usr/src/packages/BUILD/ogmrip-nero-aac-0.4'
make[1]: Für das Ziel »all-am« ist nichts zu tun.
make[1]: Leaving directory `/usr/src/packages/BUILD/ogmrip-nero-aac-0.4'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.VqWxaa
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd ogmrip-nero-aac-0.4
+ make DESTDIR=/usr/src/packages/BUILDROOT/ogmrip-nero-aac-0.4-0.pm.1.1.x86_64 install
Making install in src
make[1]: Entering directory `/usr/src/packages/BUILD/ogmrip-nero-aac-0.4/src'
make[2]: Entering directory `/usr/src/packages/BUILD/ogmrip-nero-aac-0.4/src'
make[2]: Für das Ziel »install-exec-am« ist nichts zu tun.
test -z "/usr/lib/ogmrip/audio-plugins" || mkdir -p -- "/usr/src/packages/BUILDROOT/ogmrip-nero-aac-0.4-0.pm.1.1.x86_64/usr/lib/ogmrip/audio-plugins"
/bin/sh ../libtool --mode=install /usr/bin/install -c 'libogmrip-nero-aac.la' '/usr/src/packages/BUILDROOT/ogmrip-nero-aac-0.4-0.pm.1.1.x86_64/usr/lib/ogmrip/audio-plugins/libogmrip-nero-aac.la'
libtool: install: /usr/bin/install -c .libs/libogmrip-nero-aac.so /usr/src/packages/BUILDROOT/ogmrip-nero-aac-0.4-0.pm.1.1.x86_64/usr/lib/ogmrip/audio-plugins/libogmrip-nero-aac.so
libtool: install: /usr/bin/install -c .libs/libogmrip-nero-aac.lai /usr/src/packages/BUILDROOT/ogmrip-nero-aac-0.4-0.pm.1.1.x86_64/usr/lib/ogmrip/audio-plugins/libogmrip-nero-aac.la
libtool: install: warning: remember to run `libtool --finish /usr/lib/ogmrip/audio-plugins'
make[2]: Leaving directory `/usr/src/packages/BUILD/ogmrip-nero-aac-0.4/src'
make[1]: Leaving directory `/usr/src/packages/BUILD/ogmrip-nero-aac-0.4/src'
Making install in po
make[1]: Entering directory `/usr/src/packages/BUILD/ogmrip-nero-aac-0.4/po'
linguas="fr "; \
for lang in $linguas; do \
dir=/usr/src/packages/BUILDROOT/ogmrip-nero-aac-0.4-0.pm.1.1.x86_64/usr/share/locale/$lang/LC_MESSAGES; \
/usr/src/packages/BUILD/ogmrip-nero-aac-0.4/install-sh -d $dir; \
if test -r $lang.gmo; then \
/usr/bin/install -c -m 644 $lang.gmo $dir/ogmrip-nero-aac.mo; \
echo "installing $lang.gmo as $dir/ogmrip-nero-aac.mo"; \
else \
/usr/bin/install -c -m 644 ./$lang.gmo $dir/ogmrip-nero-aac.mo; \
echo "installing ./$lang.gmo as" \
"$dir/ogmrip-nero-aac.mo"; \
fi; \
if test -r $lang.gmo.m; then \
/usr/bin/install -c -m 644 $lang.gmo.m $dir/ogmrip-nero-aac.mo.m; \
echo "installing $lang.gmo.m as $dir/ogmrip-nero-aac.mo.m"; \
else \
if test -r ./$lang.gmo.m ; then \
/usr/bin/install -c -m 644 ./$lang.gmo.m \
$dir/ogmrip-nero-aac.mo.m; \
echo "installing ./$lang.gmo.m as" \
"$dir/ogmrip-nero-aac.mo.m"; \
else \
true; \
fi; \
fi; \
done
installing fr.gmo as /usr/src/packages/BUILDROOT/ogmrip-nero-aac-0.4-0.pm.1.1.x86_64/usr/share/locale/fr/LC_MESSAGES/ogmrip-nero-aac.mo
make[1]: Leaving directory `/usr/src/packages/BUILD/ogmrip-nero-aac-0.4/po'
make[1]: Entering directory `/usr/src/packages/BUILD/ogmrip-nero-aac-0.4'
make[2]: Entering directory `/usr/src/packages/BUILD/ogmrip-nero-aac-0.4'
make[2]: Für das Ziel »install-exec-am« ist nichts zu tun.
make[2]: Für das Ziel »install-data-am« ist nichts zu tun.
make[2]: Leaving directory `/usr/src/packages/BUILD/ogmrip-nero-aac-0.4'
make[1]: Leaving directory `/usr/src/packages/BUILD/ogmrip-nero-aac-0.4'
+ /bin/rm /usr/src/packages/BUILDROOT/ogmrip-nero-aac-0.4-0.pm.1.1.x86_64/usr/lib64/ogmrip/audio-plugins/libogmrip-nero-aac.la
/bin/rm: Entfernen von „/usr/src/packages/BUILDROOT/ogmrip-nero-aac-0.4-0.pm.1.1.x86_64/usr/lib64/ogmrip/audio-plugins/libogmrip-nero-aac.la“ nicht möglich: Datei oder Verzeichnis nicht gefunden
error: Bad exit status from /var/tmp/rpm-tmp.VqWxaa (%install)
RPM build errors:
InstallSourcePackage at: psm.c:232: Header V3 DSA signature: NOKEY, key ID 9a795806
Bad exit status from /var/tmp/rpm-tmp.VqWxaa (%install)
Funktioniert bis dahin, dass in meinem ordner /usr/packages/ schon Dateien in den Ordnern sind, also in BUILD, BUILDROOT, SOURCES, SPECS usw. aber der Ordner RPMS, wo das Paket dann drinnen sein sollte ist leer.#
Hängt wohl mit diese letzten Zeile zusammen
usr/src/packages/BUILDROOT/ogmrip-nero-aac-0.4-0.pm.1.1.x86_64/usr/lib64/ogmrip/audio-plugins/libogmrip-nero-aac.la
Hab das Ganze als root asugeführt, wegen dem Schreibzugriff und so.
Was habe ich genau falsch gemacht? Bitte um Hilfe.
mfg
Walter