~/soft/sourse/audacious/audacious-2.1$ debuild -us -uc
Код: Выделить всё
dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value:
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package audacious
dpkg-buildpackage: source version 2.1-1
dpkg-buildpackage: source changed by William Pitcock <nenolod@dereferenced.org>
dpkg-buildpackage: host architecture i386
fakeroot debian/rules clean
QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null pop -a -R || test $? = 2
No patch removed
rm -rf .pc debian/stamp-patched
dh_testdir
dh_testroot
[ ! -f buildsys.mk ] || /usr/bin/make distclean
find po -name \*.gmo -exec rm -f {} \;
rm -f man/*.1 po/stamp-po config.guess config.sub config.status \
config.log config.h buildsys.mk *.pc applications/*.desktop \
src/audacious/dbus-client-bindings.h \
src/audacious/dbus-server-bindings.h \
src/audacious/build_stamp.c
dh_clean
dpkg-source -b audacious-2.1
dpkg-source: info: using source format `1.0'
dpkg-source: info: building audacious using existing audacious_2.1.orig.tar.gz
dpkg-source: info: building audacious in audacious_2.1-1.diff.gz
dpkg-source: warning: ignoring deletion of file config.guess
dpkg-source: warning: ignoring deletion of file config.sub
dpkg-source: info: building audacious in audacious_2.1-1.dsc
debian/rules build
# quilt exits with 2 as return when there was nothing to do.
# That's not an error here (but it's useful to break loops in crude scripts)
QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null push -a || test $? = 2
Applying patch 001-libaudid3tag_is_a_public_library.patch
patching file src/libid3tag/Makefile
Hunk #1 succeeded at 2 with fuzz 1.
Now at patch 001-libaudid3tag_is_a_public_library.patch
touch debian/stamp-patched
dh_testdir
./configure --host=i486-linux-gnu \
--build=i486-linux-gnu \
--prefix=/usr \
--mandir=/usr/share/man \
--disable-rpath \
--disable-sse2 \
--enable-ipv6 \
--enable-chardet \
--enable-samplerate \
CFLAGS="-Wall -g -O2"
configure: WARNING: unrecognized options: --enable-ipv6
configure: error: cannot run /bin/sh ./config.sub
make: *** [config.status] Error 1
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
debuild: fatal error at line 1319:
dpkg-buildpackage -rfakeroot -D -us -uc failed
lrwxrwxrwx 1 root root 4 2009-02-23 02:00 /bin/sh -> bash
ls -lL /bin/sh
-rwxr-xr-x 1 root root 700492 2008-05-12 22:02 /bin/sh
При этом при ./configure&make при этих же параметрах компилирует без ошибок. Гугл выдает кучу ссылок на подобные крики о помощи без ответов.
Файл rules:
Код: Выделить всё
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/quilt/quilt.make
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_GNU_CPU ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
# Define CFLAGS
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
ifeq ($(DEB_HOST_GNU_CPU),x86_64)
DISABLE_SSE2 :=
else
DISABLE_SSE2 := --disable-sse2
endif
DESTDIR = $(CURDIR)/debian/tmp
configure:
sh autogen.sh
config.status: configure $(QUILT_STAMPFN)
dh_testdir
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
cp -f /usr/share/misc/config.sub config.sub
endif
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
cp -f /usr/share/misc/config.guess config.guess
endif
./configure --host=$(DEB_HOST_GNU_TYPE) \
--build=i486-linux-gnu \
--prefix=/usr \
--mandir=/usr/share/man \
--disable-rpath \
$(DISABLE_SSE2) \
--enable-ipv6 \
--enable-chardet \
--enable-samplerate \
CFLAGS="$(CFLAGS)"
build: build-stamp
build-stamp: config.status
dh_testdir
$(MAKE)
touch $@
clean: unpatch
dh_testdir
dh_testroot
-[ ! -f buildsys.mk ] || $(MAKE) distclean
find po -name \*.gmo -exec rm -f {} \;
rm -f man/*.1 po/stamp-po config.guess config.sub config.status \
config.log config.h buildsys.mk *.pc applications/*.desktop \
src/audacious/dbus-client-bindings.h \
src/audacious/dbus-server-bindings.h \
src/audacious/build_stamp.c
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) install DESTDIR=$(DESTDIR)
sed -i 's!^Categories=.*!Categories=GTK;AudioVideo;Audio;Player;!' \
$(DESTDIR)/usr/share/applications/audacious2.desktop
sed -i 's!^Encoding=.*!!' \
$(DESTDIR)/usr/share/applications/audacious2.desktop
# Create all size PNG/XPM icons
mkdir -p $(DESTDIR)/usr/share/pixmaps
for size in 16 22 24 32 36 48; do \
convert $(CURDIR)/pixmaps/audacious2.png -resize $${size} \
$(DESTDIR)/usr/share/pixmaps/audacious-$${size}.xpm || exit 1; \
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps || exit 1; \
convert $(CURDIR)/pixmaps/audacious2.png -resize $${size} \
$(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/audacious2.png || exit 1; \
done
rm -f $(DESTDIR)/usr/share/pixmaps/audacious2.png
binary-indep:
binary-arch: install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installmenu
dh_install --sourcedir=debian/tmp/
dh_link
dh_strip --dbg-package=audacious-dbg
dh_desktop
dh_compress
dh_fixperms
dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-arch
.PHONY: build clean binary-indep binary-arch binary install