[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

DEB_BUILD_OPTIONS=parallel=n work not as expected



Hi mentors,

I added to my package "gif2png" the support of
DEB_BUILD_OPTIONS=parallel=n, as you can see in rules file.

The output during build is:
...
# Add here commands to compile the package.                                                              
/usr/bin/make  --jobserver-fds=3,4 -j
...

I don't know who changed $(MAKEFLAGS) from "-j3" to "--jobserver-fds=3,4 -j" and
why the number "3" was not used after "-j".

Could anybody please give an explanation?
Is there something broken or did I miss something?

Kind regards,

Erik


-- 
 www.ErikSchanze.de *********************************************
 Bitte keine HTML-E-Mails! No HTML mails, please! Limit: 100 kB *
         - Linux-Info-Tag in Dresden auch 2010 wieder           *
             Info: http://www.linux-info-tag.de/                *
#!/usr/bin/make -f
#-*- makefile -*-
# Made with the aid of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Christoph Lameter.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpatch/dpatch.make

CFLAGS= -Wall
MAKEFLAGS=

export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0
else
        CFLAGS += -O2
endif

ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -g
else
        LDFLAGS += -s
endif

ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
        NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
        MAKEFLAGS += -j$(NUMJOBS)
endif

build: build-stamp
build-stamp: patch-stamp
	dh_testdir

	chmod 755 configure
	./configure --prefix=/usr CFLAGS="$(CFLAGS)"
	# Add here commands to compile the package.
	$(MAKE) $(MAKEFLAGS)
	# Create German manpages at build time, so we need only .xml in .diff.gz
	-xmlto -o debian/ man debian/gif2png.de.xml
	-mv -f debian/gif2png.1 debian/gif2png.de.1
	-xmlto -o debian/ man debian/web2png.de.xml
	-mv -f debian/web2png.1 debian/web2png.de.1

	touch build-stamp

clean: unpatch
	dh_testdir
	dh_testroot
	# Makefile needs .deps dir to work, but it will be not there
	# if there was a distclean before :-(
	[ ! -d .deps ] || [ ! -f Makefile ] || $(MAKE) distclean
	-rm -f build-stamp install-stamp debian/gif2png.de.1 debian/web2png.de.1

	# Add here commands to clean up after the build process.
	-find . -type d -name .deps | xargs -r rm -r

	dh_clean

install: install-stamp
install-stamp: build-stamp
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	# Add here commands to install the package into debian/gif2png.
	$(MAKE) install prefix=`pwd`/debian/gif2png/usr

	touch install-stamp

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installman
	dh_installchangelogs
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

source diff:
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
 dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: setze CFLAGS auf Standardwert: -g -O2
dpkg-buildpackage: setze CPPFLAGS auf Standardwert: 
dpkg-buildpackage: setze LDFLAGS auf Standardwert: 
dpkg-buildpackage: setze FFLAGS auf Standardwert: -g -O2
dpkg-buildpackage: setze CXXFLAGS auf Standardwert: -g -O2
dpkg-buildpackage: Quellpaket gif2png
dpkg-buildpackage: Quellversion 2.5.2-1
dpkg-buildpackage: Quellen geändert durch Erik Schanze <eriks@debian.org>
dpkg-buildpackage: Host-Architektur i386
 fakeroot debian/rules clean
dpatch  deapply-all  
reverting patch 20_remove_unneeded_libs from ./ ... ok.
reverting patch 10_fix_gif2png_c from ./ ... ok.
rm -rf patch-stamp patch-stampT debian/patched
dh_testdir
dh_testroot
# Makefile needs .deps dir to work, but it will be not there
# if there was a distclean before :-(
[ ! -d .deps ] || [ ! -f Makefile ] || /usr/bin/make distclean
make[1]: Entering directory `/home/es/devel/debian/gif2png/gif2png-2.5.2'
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --prefix=/usr CFLAGS=-Wall -O2 LDFLAGS= -s CPPFLAGS= --no-create --no-recursion
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
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 how to run the C preprocessor... gcc -E
checking whether gcc and cc understand -c and -o together... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for deflate in -lz... yes
checking for pow in -lm... yes
checking for png_get_io_ptr in -lpng... yes
configure: creating ./config.status
 /bin/sh ./config.status
config.status: creating Makefile
config.status: creating gif2png.spec
config.status: creating config.h
config.status: executing depfiles commands
make[1]: Leaving directory `/home/es/devel/debian/gif2png/gif2png-2.5.2'
make[1]: Entering directory `/home/es/devel/debian/gif2png/gif2png-2.5.2'
test -z "gif2png" || rm -f gif2png
rm -f *.o
rm -f *.tab.c
test -z "gif2png.spec" || rm -f gif2png.spec
rm -f config.h stamp-h1
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
rm -f config.status config.cache config.log configure.lineno config.status.lineno
rm -rf ./.deps
rm -f Makefile
make[1]: Leaving directory `/home/es/devel/debian/gif2png/gif2png-2.5.2'
rm -f build-stamp install-stamp debian/gif2png.de.1 debian/web2png.de.1
# Add here commands to clean up after the build process.
find . -type d -name .deps | xargs -r rm -r
dh_clean
 dpkg-source -b gif2png-2.5.2
dpkg-source: Information: verwende Quellformat »1.0«
dpkg-source: Information: baue gif2png unter Benutzung des existierenden gif2png_2.5.2.orig.tar.gz
dpkg-source: Information: baue gif2png in gif2png_2.5.2-1.diff.gz
dpkg-source: Warnung: Datei gif2png-2.5.2/debian/compat hat keinen abschließenden Zeilenumbruch (entweder Original oder modifizierte Version)
dpkg-source: Warnung: ausführbarer Modus 0755 von »debian/patches/20_remove_unneeded_libs.dpatch« wird nicht im Diff dargestellt werden
dpkg-source: Warnung: ausführbarer Modus 0755 von »debian/patches/10_fix_gif2png_c.dpatch« wird nicht im Diff dargestellt werden
dpkg-source: Warnung: ignoriere Löschen der Datei Makefile
dpkg-source: Warnung: ignoriere Löschen der Datei gif2png.spec
dpkg-source: Information: baue gif2png in gif2png_2.5.2-1.dsc
 debian/rules build
test -d debian/patched || install -d debian/patched
dpatch  apply-all  
applying patch 10_fix_gif2png_c to ./ ... ok.
applying patch 20_remove_unneeded_libs to ./ ... ok.
dpatch  cat-all  >>patch-stampT
mv -f patch-stampT patch-stamp
dh_testdir
chmod 755 configure
./configure --prefix=/usr CFLAGS="-Wall -O2"
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
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 how to run the C preprocessor... gcc -E
checking whether gcc and cc understand -c and -o together... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for png_get_io_ptr in -lpng... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gif2png.spec
config.status: creating config.h
config.status: executing depfiles commands
# Add here commands to compile the package.
/usr/bin/make  --jobserver-fds=3,4 -j
make[1]: Entering directory `/home/es/devel/debian/gif2png/gif2png-2.5.2'
/usr/bin/make  all-am
make[2]: Entering directory `/home/es/devel/debian/gif2png/gif2png-2.5.2'
gcc -DHAVE_CONFIG_H -I.     -Wall -O2 -MT 437_l1.o -MD -MP -MF .deps/437_l1.Tpo -c -o 437_l1.o 437_l1.c
gcc -DHAVE_CONFIG_H -I.     -Wall -O2 -MT gif2png.o -MD -MP -MF .deps/gif2png.Tpo -c -o gif2png.o gif2png.c
gcc -DHAVE_CONFIG_H -I.     -Wall -O2 -MT gifread.o -MD -MP -MF .deps/gifread.Tpo -c -o gifread.o gifread.c
mv -f .deps/437_l1.Tpo .deps/437_l1.Po
gcc -DHAVE_CONFIG_H -I.     -Wall -O2 -MT memory.o -MD -MP -MF .deps/memory.Tpo -c -o memory.o memory.c
gif2png.c: In function 'processfile':
gif2png.c:699: warning: assignment makes pointer from integer without a cast
mv -f .deps/memory.Tpo .deps/memory.Po
gcc -DHAVE_CONFIG_H -I.     -Wall -O2 -MT version.o -MD -MP -MF .deps/version.Tpo -c -o version.o version.c
mv -f .deps/version.Tpo .deps/version.Po
mv -f .deps/gifread.Tpo .deps/gifread.Po
mv -f .deps/gif2png.Tpo .deps/gif2png.Po
gcc  -Wall -O2  -s -o gif2png 437_l1.o gif2png.o gifread.o memory.o version.o  -lpng 
make[2]: Leaving directory `/home/es/devel/debian/gif2png/gif2png-2.5.2'
make[1]: Leaving directory `/home/es/devel/debian/gif2png/gif2png-2.5.2'
# Create German manpages at build time, so we need only .xml in .diff.gz
xmlto -o debian/ man debian/gif2png.de.xml
Note: Writing gif2png.1
mv -f debian/gif2png.1 debian/gif2png.de.1
xmlto -o debian/ man debian/web2png.de.xml
Note: Writing web2png.1
mv -f debian/web2png.1 debian/web2png.de.1
touch build-stamp
 fakeroot debian/rules binary
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/gif2png.
/usr/bin/make install prefix=`pwd`/debian/gif2png/usr
make[1]: Entering directory `/home/es/devel/debian/gif2png/gif2png-2.5.2'
make[2]: Entering directory `/home/es/devel/debian/gif2png/gif2png-2.5.2'
test -z "/home/es/devel/debian/gif2png/gif2png-2.5.2/debian/gif2png/usr/bin" || /bin/mkdir -p "/home/es/devel/debian/gif2png/gif2png-2.5.2/debian/gif2png/usr/bin"
test -z "/home/es/devel/debian/gif2png/gif2png-2.5.2/debian/gif2png/usr/bin" || /bin/mkdir -p "/home/es/devel/debian/gif2png/gif2png-2.5.2/debian/gif2png/usr/bin"
test -z "/home/es/devel/debian/gif2png/gif2png-2.5.2/debian/gif2png/usr/share/man/man1" || /bin/mkdir -p "/home/es/devel/debian/gif2png/gif2png-2.5.2/debian/gif2png/usr/share/man/man1"
 /usr/bin/install -c 'web2png' '/home/es/devel/debian/gif2png/gif2png-2.5.2/debian/gif2png/usr/bin/web2png'
  /usr/bin/install -c 'gif2png' '/home/es/devel/debian/gif2png/gif2png-2.5.2/debian/gif2png/usr/bin/gif2png'
 /usr/bin/install -c -m 644 'gif2png.1' '/home/es/devel/debian/gif2png/gif2png-2.5.2/debian/gif2png/usr/share/man/man1/gif2png.1'
 /usr/bin/install -c -m 644 'web2png.1' '/home/es/devel/debian/gif2png/gif2png-2.5.2/debian/gif2png/usr/share/man/man1/web2png.1'
make[2]: Leaving directory `/home/es/devel/debian/gif2png/gif2png-2.5.2'
make[1]: Leaving directory `/home/es/devel/debian/gif2png/gif2png-2.5.2'
touch install-stamp
dh_testdir
dh_testroot
dh_installdocs
dh_installman
dh_installchangelogs
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
dpkg-deb: Baue Paket »gif2png« in »../gif2png_2.5.2-1_i386.deb«.
 dpkg-genchanges  >../gif2png_2.5.2-1_i386.changes
dpkg-genchanges: füge kompletten Quellcode beim Hochladen hinzu
dpkg-buildpackage: Alles hochzuladen (Originalquellen enthalten)
Now running lintian...
Finished running lintian.
Now signing changes and any dsc files...
 signfile gif2png_2.5.2-1.dsc Erik Schanze <eriks@debian.org>

 signfile gif2png_2.5.2-1_i386.changes Erik Schanze <eriks@debian.org>

Successfully signed dsc and changes files

Reply to: