Source: debmake-doc
Version: 1.14-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201125 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> make[3]: Entering directory '/<<PKGBUILDDIR>>/debhello-0.0-pkg4'
> mkdir -p /<<PKGBUILDDIR>>/debhello-0.0-pkg1/test
> mkdir -p /<<PKGBUILDDIR>>/debhello-0.0-pkg2/test
> mkdir -p /<<PKGBUILDDIR>>/debhello-0.0-pkg3/test
> echo /<<PKGBUILDDIR>>/debhello-0.0-pkg1 > 
> /<<PKGBUILDDIR>>/debhello-0.0-pkg1/next.dir
> echo /<<PKGBUILDDIR>>/debhello-0.0-pkg2 > 
> /<<PKGBUILDDIR>>/debhello-0.0-pkg2/next.dir
> echo /<<PKGBUILDDIR>>/debhello-0.0-pkg3 > 
> /<<PKGBUILDDIR>>/debhello-0.0-pkg3/next.dir
> echo debhello-0.0 > /<<PKGBUILDDIR>>/debhello-0.0-pkg1/project
> echo debhello-0.0 > /<<PKGBUILDDIR>>/debhello-0.0-pkg3/project
> mkdir -p /<<PKGBUILDDIR>>/debhello-0.0-pkg4/test
> for i in  step000  step101  step102  step200  step201  step202  step203  
> step204  step299  step301  step302  step303  step309  step400  step499  
> step500  step600  step700  step701  step702 ; do \
> cd $(cat /<<PKGBUILDDIR>>/debhello-0.0-pkg1/next.dir) >/dev/null ; \
> script -e -q -c /<<PKGBUILDDIR>>/debhello-0.0-pkg1/$i.cmd 
> /<<PKGBUILDDIR>>/debhello-0.0-pkg1/$i.log ; \
> ERR=$? ; \
> cat /<<PKGBUILDDIR>>/debhello-0.0-pkg1/$i.log | col -b -x | \
> grep -v -e '^Script started on' | \
> grep -v -e '^Script done on' | \
> sed -r 's/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g' | \
> sed -e 's#/<<PKGBUILDDIR>>/debhello-0.0-pkg1/test#/path/to#g' | \
> sed -e 
> 's/\(^.............................................................................\).*$/\1.../'
>  > /<<PKGBUILDDIR>>/debhello-0.0-pkg1/$i.slog ; \
> if [ x$ERR != x0 ]; then exit 1 ; fi ; \
> done
> echo debhello-0.0 > /<<PKGBUILDDIR>>/debhello-0.0-pkg2/project
> for i in  step000  step101  step102  step200  step201  step202  step203  
> step204  step299  step301  step302  step303  step304  step305  step306  
> step309  step400  step499  step500  step600  step700  step701  step702 ; do \
> cd $(cat /<<PKGBUILDDIR>>/debhello-0.0-pkg3/next.dir) >/dev/null ; \
> script -e -q -c /<<PKGBUILDDIR>>/debhello-0.0-pkg3/$i.cmd 
> /<<PKGBUILDDIR>>/debhello-0.0-pkg3/$i.log ; \
> ERR=$? ; \
> cat /<<PKGBUILDDIR>>/debhello-0.0-pkg3/$i.log | col -b -x | \
> grep -v -e '^Script started on' | \
> grep -v -e '^Script done on' | \
> sed -r 's/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g' | \
> sed -e 's#/<<PKGBUILDDIR>>/debhello-0.0-pkg3/test#/path/to#g' | \
> sed -e 
> 's/\(^.............................................................................\).*$/\1.../'
>  > /<<PKGBUILDDIR>>/debhello-0.0-pkg3/$i.slog ; \
> if [ x$ERR != x0 ]; then exit 1 ; fi ; \
> done
> for i in  step000  step101  step102  step120  step200  step201  step202  
> step203  step204  step299  step301  step302  step303  step304  step308  
> step309  step400  step499  step500  step600  step700  step701  step702 ; do \
> cd $(cat /<<PKGBUILDDIR>>/debhello-0.0-pkg2/next.dir) >/dev/null ; \
> script -e -q -c /<<PKGBUILDDIR>>/debhello-0.0-pkg2/$i.cmd 
> /<<PKGBUILDDIR>>/debhello-0.0-pkg2/$i.log ; \
> ERR=$? ; \
> cat /<<PKGBUILDDIR>>/debhello-0.0-pkg2/$i.log | col -b -x | \
> grep -v -e '^Script started on' | \
> grep -v -e '^Script done on' | \
> sed -r 's/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g' | \
> sed -e 's#/<<PKGBUILDDIR>>/debhello-0.0-pkg2/test#/path/to#g' | \
> sed -e 
> 's/\(^.............................................................................\).*$/\1.../'
>  > /<<PKGBUILDDIR>>/debhello-0.0-pkg2/$i.slog ; \
> if [ x$ERR != x0 ]; then exit 1 ; fi ; \
> done
> echo /<<PKGBUILDDIR>>/debhello-0.0-pkg4 > 
> /<<PKGBUILDDIR>>/debhello-0.0-pkg4/next.dir
> echo debhello-0.0 > /<<PKGBUILDDIR>>/debhello-0.0-pkg4/project
> for i in  step000  step101  step102  step200  step201  step202  step203  
> step204  step299  step300  step301  step302  step303  step309  step310  
> step340  step350  step351  step400  step499  step500  step600  step700  
> step701  step702 ; do \
> cd $(cat /<<PKGBUILDDIR>>/debhello-0.0-pkg4/next.dir) >/dev/null ; \
> script -e -q -c /<<PKGBUILDDIR>>/debhello-0.0-pkg4/$i.cmd 
> /<<PKGBUILDDIR>>/debhello-0.0-pkg4/$i.log ; \
> ERR=$? ; \
> cat /<<PKGBUILDDIR>>/debhello-0.0-pkg4/$i.log | col -b -x | \
> grep -v -e '^Script started on' | \
> grep -v -e '^Script done on' | \
> sed -r 's/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g' | \
> sed -e 's#/<<PKGBUILDDIR>>/debhello-0.0-pkg4/test#/path/to#g' | \
> sed -e 
> 's/\(^.............................................................................\).*$/\1.../'
>  > /<<PKGBUILDDIR>>/debhello-0.0-pkg4/$i.slog ; \
> if [ x$ERR != x0 ]; then exit 1 ; fi ; \
> done
>  $ wget http://www.example.org/download/debhello-0.0.tar.gz
> 
>  ...
> 
>  $ tar -xzmf debhello-0.0.tar.gz
> 
>  $ wget http://www.example.org/download/debhello-0.0.tar.gz
> 
>  ...
> 
>  $ tar -xzmf debhello-0.0.tar.gz
> 
>  $ tree
> 
> .
> 
> ├── debhello-0.0
> 
> │   ├── LICENSE
> 
> │   ├── Makefile
> 
> │   └── src
> 
> │       └── hello.c
> 
> └── debhello-0.0.tar.gz
> 
> 
> 
> 2 directories, 4 files
> 
>  $ wget http://www.example.org/download/debhello-0.0.tar.gz
> 
>  ...
> 
>  $ tar -xzmf debhello-0.0.tar.gz
> 
>  $ tree
> 
>  $ tree
> 
> .
> 
> ├── debhello-0.0
> 
> │   ├── LICENSE
> 
> │   ├── Makefile
> 
> │   └── src
> 
> │       └── hello.c
> 
> └── debhello-0.0.tar.gz
> 
> 
> 
> 2 directories, 4 files
> 
> .
> 
> ├── debhello-0.0
> 
> │   ├── LICENSE
> 
> │   ├── Makefile
> 
> │   └── src
> 
> │       └── hello.c
> 
> └── debhello-0.0.tar.gz
> 
> 
> 
> 2 directories, 4 files
> 
>  $ wget http://www.example.org/download/debhello-0.0.tar.gz
> 
>  ...
> 
>  $ tar -xzmf debhello-0.0.tar.gz
> 
>  $ tree
> 
> .
> 
> ├── debhello-0.0
> 
> │   ├── LICENSE
> 
> │   ├── Makefile
> 
> │   └── src
> 
> │       └── hello.c
> 
> └── debhello-0.0.tar.gz
> 
> 
> 
> 2 directories, 4 files
> 
>  $ cat debhello-0.0/src/hello.c
> 
> #include <stdio.h>
> 
> int
> 
> main()
> 
> {
> 
>         printf("Hello, world!\n");
> 
>         return 0;
> 
> }
> 
>  $ cat debhello-0.0/src/hello.c
> 
> #include <stdio.h>
> 
> int
> 
> main()
> 
> {
> 
>         printf("Hello, world!\n");
> 
>         return 0;
> 
> }
> 
>  $ cat debhello-0.0/src/hello.c
> 
> #include <stdio.h>
> 
> int
> 
> main()
> 
> {
> 
>         printf("Hello, world!\n");
> 
>         return 0;
> 
> }
> 
>  $ cat debhello-0.0/src/hello.c
> 
> #include <stdio.h>
> 
> int
> 
> main()
> 
> {
> 
>         printf("Hello, world!\n");
> 
>         return 0;
> 
> }
> 
>  $ cat debhello-0.0/Makefile
> 
> prefix = /usr/local
> 
> 
> 
> all: src/hello
> 
> 
> 
> src/hello: src/hello.c
> 
>       @echo "CFLAGS=$(CFLAGS)" | \
> 
>               fold -s -w 70 | \
> 
>               sed -e 's/^/# /'
> 
>       $(CC) $(CPPFLAGS) $(CFLAGS) $(LDCFLAGS) -o $@ $^
> 
> 
> 
> install: src/hello
> 
>       install -D src/hello \
> 
>               $(DESTDIR)$(prefix)/bin/hello
> 
> 
> 
> clean:
> 
>       -rm -f src/hello
> 
> 
> 
> distclean: clean
> 
> 
> 
> uninstall:
> 
>       -rm -f $(DESTDIR)$(prefix)/bin/hello
> 
> 
> 
> .PHONY: all install clean distclean uninstall
> 
>  $ cat debhello-0.0/Makefile
> 
> prefix = /usr/local
> 
> 
> 
> all: src/hello
> 
> 
> 
> src/hello: src/hello.c
> 
>       @echo "CFLAGS=$(CFLAGS)" | \
> 
>               fold -s -w 70 | \
> 
>               sed -e 's/^/# /'
> 
>       $(CC) $(CPPFLAGS) $(CFLAGS) $(LDCFLAGS) -o $@ $^
> 
> 
> 
> install: src/hello
> 
>       install -D src/hello \
> 
>               $(DESTDIR)$(prefix)/bin/hello
> 
> 
> 
> clean:
> 
>       -rm -f src/hello
> 
> 
> 
> distclean: clean
> 
> 
> 
> uninstall:
> 
>       -rm -f $(DESTDIR)$(prefix)/bin/hello
> 
> 
> 
> .PHONY: all install clean distclean uninstall
> 
>  $ cat debhello-0.0/Makefile
> 
> prefix = /usr/local
> 
> 
> 
> all: src/hello
> 
> 
> 
> src/hello: src/hello.c
> 
>       @echo "CFLAGS=$(CFLAGS)" | \
> 
>               fold -s -w 70 | \
> 
>               sed -e 's/^/# /'
> 
>       $(CC) $(CPPFLAGS) $(CFLAGS) $(LDCFLAGS) -o $@ $^
> 
> 
> 
> install: src/hello
> 
>       install -D src/hello \
> 
>               $(DESTDIR)$(prefix)/bin/hello
> 
> 
> 
> clean:
> 
>       -rm -f src/hello
> 
> 
> 
> distclean: clean
> 
> 
> 
> uninstall:
> 
>       -rm -f $(DESTDIR)$(prefix)/bin/hello
> 
> 
> 
> .PHONY: all install clean distclean uninstall
> 
>  $ cat debhello-0.0/Makefile
> 
> prefix = /usr/local
> 
> 
> 
> all: src/hello
> 
> 
> 
> src/hello: src/hello.c
> 
>       @echo "CFLAGS=$(CFLAGS)" | \
> 
>               fold -s -w 70 | \
> 
>               sed -e 's/^/# /'
> 
>       $(CC) $(CPPFLAGS) $(CFLAGS) $(LDCFLAGS) -o $@ $^
> 
> 
> 
> install: src/hello
> 
>       install -D src/hello \
> 
>               $(DESTDIR)$(prefix)/bin/hello
> 
> 
> 
> clean:
> 
>       -rm -f src/hello
> 
> 
> 
> distclean: clean
> 
> 
> 
> uninstall:
> 
>       -rm -f $(DESTDIR)$(prefix)/bin/hello
> 
> 
> 
> .PHONY: all install clean distclean uninstall
> 
>  $ cp -a debhello-0.0 debhello-0.0.orig
> 
>  $ vim debhello-0.0/Makefile
> 
>  ... hack, hack, hack, ...
> 
>  $ diff -Nru debhello-0.0.orig debhello-0.0 >000-prefix-usr.patch
> 
>  $ cat 000-prefix-usr.patch
> 
> diff -Nru debhello-0.0.orig/Makefile debhello-0.0/Makefile
> 
> --- debhello-0.0.orig/Makefile        2020-11-25 15:49:17.102884177 +0000
> 
> +++ debhello-0.0/Makefile     2020-11-25 15:49:17.174885239 +0000
> 
> @@ -1,4 +1,4 @@
> 
> -prefix = /usr/local
> 
> +prefix = /usr
> 
>  
> 
>  all: src/hello
> 
>  
> 
>  $ rm -rf debhello-0.0
> 
>  $ mv -f debhello-0.0.orig debhello-0.0
> 
>  $ cd debhello-0.0
> 
>  $ debmake
> 
>  $ cd debhello-0.0
> 
>  $ debmake
> 
>  $ cd debhello-0.0
> 
>  $ debmake
> 
>  $ cd debhello-0.0
> 
>  $ debmake
> 
> I: set parameters
> 
> I: sanity check of parameters
> 
> I: pkg="debhello", ver="0.0", rev="1"
> 
> I: *** start packaging in "debhello-0.0". ***
> 
> I: provide debhello_0.0.orig.tar.gz for non-native Debian package
> 
> I: pwd = "/<<PKGBUILDDIR>>/debhello-0.0-pkg4/test"
> 
> I: $ ln -sf debhello-0.0.tar.gz debhello_0.0.orig.tar.gz
> 
> I: set parameters
> 
> I: set parameters
> 
> I: pwd = "/<<PKGBUILDDIR>>/debhello-0.0-pkg4/test/debhello-0.0"
> 
> I: parse binary package settings: 
> 
> I: binary package=debhello Type=bin / Arch=any M-A=foreign
> 
> I: analyze the source tree
> 
> I: build_type = make
> 
> I: scan source for copyright+license text and file extensions
> 
> I: 100 %, ext = c
> 
> I: check_all_licenses
> 
> I: ..
> 
> I: check_all_licenses completed for 2 files.
> 
> I: bunch_all_licenses
> 
> I: format_all_licenses
> 
> I: make debian/* template files
> 
> I: single binary package
> 
> I: debmake -x "1" ...
> 
> I: creating => debian/control
> 
> I: creating => debian/copyright
> 
> I: substituting => /usr/share/debmake/extra0/rules
> 
> I: creating => debian/rules
> 
> I: substituting => /usr/share/debmake/extra0/changelog
> 
> I: creating => debian/changelog
> 
> I: substituting => /usr/share/debmake/extra1/README.Debian
> 
> I: creating => debian/README.Debian
> 
> I: substituting => /usr/share/debmake/extra1/watch
> 
> I: creating => debian/watch
> 
> I: substituting => /usr/share/debmake/extra1source/local-options
> 
> I: creating => debian/source/local-options
> 
> I: substituting => /usr/share/debmake/extra1source/format
> 
> I: creating => debian/source/format
> 
> I: substituting => /usr/share/debmake/extra1patches/series
> 
> I: creating => debian/patches/series
> 
> I: run "debmake -x2" to get more template files
> 
> I: $ wrap-and-sort
> 
> I: sanity check of parameters
> 
> I: pkg="debhello", ver="0.0", rev="1"
> 
> I: *** start packaging in "debhello-0.0". ***
> 
> I: provide debhello_0.0.orig.tar.gz for non-native Debian package
> 
> I: pwd = "/<<PKGBUILDDIR>>/debhello-0.0-pkg3/test"
> 
> I: $ ln -sf debhello-0.0.tar.gz debhello_0.0.orig.tar.gz
> 
> I: pwd = "/<<PKGBUILDDIR>>/debhello-0.0-pkg3/test/debhello-0.0"
> 
> I: parse binary package settings: 
> 
> I: binary package=debhello Type=bin / Arch=any M-A=foreign
> 
> I: analyze the source tree
> 
> I: build_type = make
> 
> I: scan source for copyright+license text and file extensions
> 
> I: 100 %, ext = c
> 
> I: check_all_licenses
> 
> I: ..I: sanity check of parameters
> 
> I: pkg="debhello", ver="0.0", rev="1"
> 
> I: *** start packaging in "debhello-0.0". ***
> 
> I: provide debhello_0.0.orig.tar.gz for non-native Debian package
> 
> I: pwd = "/<<PKGBUILDDIR>>/debhello-0.0-pkg1/test"
> 
> I: $ ln -sf debhello-0.0.tar.gz debhello_0.0.orig.tar.gz
> 
> 
> 
> I: check_all_licenses completed for 2 files.
> 
> I: bunch_all_licenses
> 
> I: format_all_licenses
> 
> I: make debian/* template files
> 
> I: single binary package
> 
> I: debmake -x "1" ...
> 
> I: creating => debian/control
> 
> I: creating => debian/copyright
> 
> I: substituting => /usr/share/debmake/extra0/rules
> 
> I: creating => debian/rules
> 
> I: substituting => /usr/share/debmake/extra0/changelog
> 
> I: creating => debian/changelog
> 
> I: substituting => /usr/share/debmake/extra1/README.Debian
> 
> I: creating => debian/README.Debian
> 
> I: substituting => /usr/share/debmake/extra1/watch
> 
> I: creating => debian/watch
> 
> I: substituting => /usr/share/debmake/extra1source/local-options
> 
> I: creating => debian/source/local-options
> 
> I: substituting => /usr/share/debmake/extra1source/format
> 
> I: creating => debian/source/format
> 
> I: substituting => /usr/share/debmake/extra1patches/series
> 
> I: creating => debian/patches/series
> 
> I: run "debmake -x2" to get more template files
> 
> I: $ wrap-and-sort
> 
> I: pwd = "/<<PKGBUILDDIR>>/debhello-0.0-pkg1/test/debhello-0.0"
> 
> I: parse binary package settings: 
> 
> I: binary package=debhello Type=bin / Arch=any M-A=foreign
> 
> I: analyze the source tree
> 
> I: build_type = make
> 
> I: scan source for copyright+license text and file extensions
> 
> I: 100 %, ext = c
> 
> I: check_all_licenses
> 
> I: ..
> 
> I: check_all_licenses completed for 2 files.
> 
> I: bunch_all_licenses
> 
> I: format_all_licenses
> 
> I: make debian/* template files
> 
> I: single binary package
> 
> I: debmake -x "1" ...
> 
> I: creating => debian/control
> 
> I: creating => debian/copyright
> 
> I: substituting => /usr/share/debmake/extra0/rules
> 
> I: creating => debian/rules
> 
> I: substituting => /usr/share/debmake/extra0/changelog
> 
> I: creating => debian/changelog
> 
> I: substituting => /usr/share/debmake/extra1/README.Debian
> 
> I: creating => debian/README.Debian
> 
> I: substituting => /usr/share/debmake/extra1/watch
> 
> I: creating => debian/watch
> 
> I: substituting => /usr/share/debmake/extra1source/local-options
> 
> I: creating => debian/source/local-options
> 
> I: substituting => /usr/share/debmake/extra1source/format
> 
> I: creating => debian/source/format
> 
> I: substituting => /usr/share/debmake/extra1patches/series
> 
> I: creating => debian/patches/series
> 
> I: run "debmake -x2" to get more template files
> 
> I: $ wrap-and-sort
> 
> I: set parameters
> 
> I: sanity check of parameters
> 
> I: pkg="debhello", ver="0.0", rev="1"
> 
> I: *** start packaging in "debhello-0.0". ***
> 
> I: provide debhello_0.0.orig.tar.gz for non-native Debian package
> 
> I: pwd = "/<<PKGBUILDDIR>>/debhello-0.0-pkg2/test"
> 
> I: $ ln -sf debhello-0.0.tar.gz debhello_0.0.orig.tar.gz
> 
> I: pwd = "/<<PKGBUILDDIR>>/debhello-0.0-pkg2/test/debhello-0.0"
> 
> I: parse binary package settings: 
> 
> I: binary package=debhello Type=bin / Arch=any M-A=foreign
> 
> I: analyze the source tree
> 
> I: build_type = make
> 
> I: scan source for copyright+license text and file extensions
> 
> I: 100 %, ext = c
> 
> I: check_all_licenses
> 
> I: ..
> 
> I: check_all_licenses completed for 2 files.
> 
> I: bunch_all_licenses
> 
> I: format_all_licenses
> 
> I: make debian/* template files
> 
> I: single binary package
> 
> I: debmake -x "1" ...
> 
> I: creating => debian/control
> 
> I: creating => debian/copyright
> 
> I: substituting => /usr/share/debmake/extra0/rules
> 
> I: creating => debian/rules
> 
> I: substituting => /usr/share/debmake/extra0/changelog
> 
> I: creating => debian/changelog
> 
> I: substituting => /usr/share/debmake/extra1/README.Debian
> 
> I: creating => debian/README.Debian
> 
> I: substituting => /usr/share/debmake/extra1/watch
> 
> I: creating => debian/watch
> 
> I: substituting => /usr/share/debmake/extra1source/local-options
> 
> I: creating => debian/source/local-options
> 
> I: substituting => /usr/share/debmake/extra1source/format
> 
> I: creating => debian/source/format
> 
> I: substituting => /usr/share/debmake/extra1patches/series
> 
> I: creating => debian/patches/series
> 
> I: run "debmake -x2" to get more template files
> 
> I: $ wrap-and-sort
> 
>  $ cd ..
> 
>  $ tree
> 
> .
> 
> ├── debhello-0.0
> 
> │   ├── LICENSE
> 
> │   ├── Makefile
> 
> │   ├── debian
> 
> │   │   ├── README.Debian
> 
> │   │   ├── changelog
> 
> │   │   ├── control
> 
> │   │   ├── copyright
> 
> │   │   ├── patches
> 
> │   │   │   └── series
> 
> │   │   ├── rules
> 
> │   │   ├── source
> 
> │   │   │   ├── format
> 
> │   │   │   └── local-options
> 
> │   │   └── watch
> 
> │   └── src
> 
> │       └── hello.c
> 
> ├── debhello-0.0.tar.gz
> 
> └── debhello_0.0.orig.tar.gz -> debhello-0.0.tar.gz
> 
> 
> 
> 5 directories, 14 files
> 
>  $ cd ..
> 
>  $ tree
> 
> .
> 
> ├── debhello-0.0
> 
> │   ├── LICENSE
> 
> │   ├── Makefile
> 
> │   ├── debian
> 
> │   │   ├── README.Debian
> 
> │   │   ├── changelog
> 
> │   │   ├── control
> 
> │   │   ├── copyright
> 
> │   │   ├── patches
> 
> │   │   │   └── series
> 
> │   │   ├── rules
> 
> │   │   ├── source
> 
> │   │   │   ├── format
> 
> │   │   │   └── local-options
> 
> │   │   └── watch
> 
> │   └── src
> 
> │       └── hello.c
> 
> ├── debhello-0.0.tar.gz
> 
> └── debhello_0.0.orig.tar.gz -> debhello-0.0.tar.gz
> 
> 
> 
> 5 directories, 14 files
> 
>  $ cd ..
> 
>  $ tree
> 
> .
> 
> ├── debhello-0.0
> 
> │   ├── LICENSE
> 
> │   ├── Makefile
> 
> │   ├── debian
> 
> │   │   ├── README.Debian
> 
> │   │   ├── changelog
> 
> │   │   ├── control
> 
> │   │   ├── copyright
> 
> │   │   ├── patches
> 
> │   │   │   └── series
> 
> │   │   ├── rules
> 
> │   │   ├── source
> 
> │   │   │   ├── format
> 
> │   │   │   └── local-options
> 
> │   │   └── watch
> 
> │   └── src
> 
> │       └── hello.c
> 
> ├── debhello-0.0.tar.gz
> 
> └── debhello_0.0.orig.tar.gz -> debhello-0.0.tar.gz
> 
> 
> 
> 5 directories, 14 files
> 
>  $ cd ..
> 
>  $ tree
> 
> .
> 
> ├── 000-prefix-usr.patch
> 
> ├── debhello-0.0
> 
> │   ├── LICENSE
> 
> │   ├── Makefile
> 
> │   ├── debian
> 
> │   │   ├── README.Debian
> 
> │   │   ├── changelog
> 
> │   │   ├── control
> 
> │   │   ├── copyright
> 
> │   │   ├── patches
> 
> │   │   │   └── series
> 
> │   │   ├── rules
> 
> │   │   ├── source
> 
> │   │   │   ├── format
> 
> │   │   │   └── local-options
> 
> │   │   └── watch
> 
> │   └── src
> 
> │       └── hello.c
> 
> ├── debhello-0.0.tar.gz
> 
> └── debhello_0.0.orig.tar.gz -> debhello-0.0.tar.gz
> 
> 
> 
> 5 directories, 15 files
> 
>  $ cat debhello-0.0/debian/rules
> 
> #!/usr/bin/make -f
> 
> # You must remove unused comment lines for the released package.
> 
> #export DH_VERBOSE = 1
> 
> #export DEB_BUILD_MAINT_OPTIONS = hardening=+all
> 
> #export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
> 
> #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
> 
> 
> 
> %:
> 
>       dh $@  
> 
> 
> 
> #override_dh_auto_install:
> 
> #     dh_auto_install -- prefix=/usr
> 
> 
> 
> #override_dh_install:
> 
> #     dh_install --list-missing -X.pyc -X.pyo
> 
>  $ cat debhello-0.0/debian/rules
> 
> #!/usr/bin/make -f
> 
> # You must remove unused comment lines for the released package.
> 
> #export DH_VERBOSE = 1
> 
> #export DEB_BUILD_MAINT_OPTIONS = hardening=+all
> 
> #export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
> 
> #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
> 
> 
> 
> %:
> 
>       dh $@  
> 
> 
> 
> #override_dh_auto_install:
> 
> #     dh_auto_install -- prefix=/usr
> 
> 
> 
> #override_dh_install:
> 
> #     dh_install --list-missing -X.pyc -X.pyo
> 
>  $ cat debhello-0.0/debian/rules
> 
> #!/usr/bin/make -f
> 
> # You must remove unused comment lines for the released package.
> 
> #export DH_VERBOSE = 1
> 
> #export DEB_BUILD_MAINT_OPTIONS = hardening=+all
> 
> #export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
> 
> #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
> 
> 
> 
> %:
> 
>       dh $@  
> 
> 
> 
> #override_dh_auto_install:
> 
> #     dh_auto_install -- prefix=/usr
> 
> 
> 
> #override_dh_install:
> 
> #     dh_install --list-missing -X.pyc -X.pyo
> 
>  $ cat debhello-0.0/debian/rules
> 
> #!/usr/bin/make -f
> 
> # You must remove unused comment lines for the released package.
> 
> #export DH_VERBOSE = 1
> 
> #export DEB_BUILD_MAINT_OPTIONS = hardening=+all
> 
> #export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
> 
> #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
> 
> 
> 
> %:
> 
>       dh $@  
> 
> 
> 
> #override_dh_auto_install:
> 
> #     dh_auto_install -- prefix=/usr
> 
> 
> 
> #override_dh_install:
> 
> #     dh_install --list-missing -X.pyc -X.pyo
> 
>  $ cat debhello-0.0/debian/control
> 
> Source: debhello
> 
> Section: unknown
> 
> Priority: optional
> 
> Maintainer: "Firstname Lastname" <email.addr...@example.org>
> 
> Build-Depends: debhelper-compat (= 12)
> 
> Standards-Version: 4.5.0
> 
> Homepage: <insert the upstream URL, if relevant>
> 
> 
> 
> Package: debhello
> 
> Architecture: any
> 
> Multi-Arch: foreign
> 
> Depends: ${misc:Depends}, ${shlibs:Depends}
> 
> Description: auto-generated package by debmake
> 
>  This Debian binary package was auto-generated by the
> 
>  debmake(1) command provided by the debmake package.
> 
>  $ cat debhello-0.0/debian/control
> 
> Source: debhello
> 
> Section: unknown
> 
> Priority: optional
> 
> Maintainer: "Firstname Lastname" <email.addr...@example.org>
> 
> Build-Depends: debhelper-compat (= 12)
> 
> Standards-Version: 4.5.0
> 
> Homepage: <insert the upstream URL, if relevant>
> 
> 
> 
> Package: debhello
> 
> Architecture: any
> 
> Multi-Arch: foreign
> 
> Depends: ${misc:Depends}, ${shlibs:Depends}
> 
> Description: auto-generated package by debmake
> 
>  This Debian binary package was auto-generated by the
> 
>  debmake(1) command provided by the debmake package.
> 
>  $ cat debhello-0.0/debian/control
> 
> Source: debhello
> 
> Section: unknown
> 
> Priority: optional
> 
> Maintainer: "Firstname Lastname" <email.addr...@example.org>
> 
> Build-Depends: debhelper-compat (= 12)
> 
> Standards-Version: 4.5.0
> 
> Homepage: <insert the upstream URL, if relevant>
> 
> 
> 
> Package: debhello
> 
> Architecture: any
> 
> Multi-Arch: foreign
> 
> Depends: ${misc:Depends}, ${shlibs:Depends}
> 
> Description: auto-generated package by debmake
> 
>  This Debian binary package was auto-generated by the
> 
>  debmake(1) command provided by the debmake package.
> 
>  $ cat debhello-0.0/debian/control
> 
> Source: debhello
> 
> Section: unknown
> 
> Priority: optional
> 
> Maintainer: "Firstname Lastname" <email.addr...@example.org>
> 
> Build-Depends: debhelper-compat (= 12)
> 
> Standards-Version: 4.5.0
> 
> Homepage: <insert the upstream URL, if relevant>
> 
> 
> 
> Package: debhello
> 
> Architecture: any
> 
> Multi-Arch: foreign
> 
> Depends: ${misc:Depends}, ${shlibs:Depends}
> 
> Description: auto-generated package by debmake
> 
>  This Debian binary package was auto-generated by the
> 
>  debmake(1) command provided by the debmake package.
> 
>  $ cat debhello-0.0/debian/copyright
> 
> Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
> 
> Upstream-Name: debhello
> 
> Upstream-Contact: <preferred name and address to reach the upstream project>
> 
> Source: <url://example.com>
> 
> #
> 
> # Please double check copyright with the licensecheck(1) command.
> 
> 
> 
> Files:     Makefile
> 
>            src/hello.c
> 
> Copyright: __NO_COPYRIGHT_NOR_LICENSE__
> 
> License:   __NO_COPYRIGHT_NOR_LICENSE__
> 
> 
> 
> #----------------------------------------------------------------------------
> 
> # Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following
> 
> # license/copyright files.
> 
> 
> 
> #----------------------------------------------------------------------------
> 
> # License file: LICENSE
> 
>  License:
> 
>  .
> 
>  All files in this archive are licensed under the MIT License as below.
> 
>  .
> 
>  Copyright 2015 Osamu Aoki <os...@debian.org>
> 
>  .
> 
>  Permission is hereby granted, free of charge, to any person obtaining a
> 
>  copy of this software and associated documentation files (the "Software"),
> 
>  to deal in the Software without restriction, including without limitation
> 
>  the rights to use, copy, modify, merge, publish, distribute, sublicense,
> 
>  and/or sell copies of the Software, and to permit persons to whom the
> 
>  Software is furnished to do so, subject to the following conditions:
> 
>  .
> 
>  The above copyright notice and this permission notice shall be included
> 
>  in all copies or substantial portions of the Software.
> 
>  .
> 
>  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
> 
>  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> 
>  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
> 
>  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
> 
>  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
> 
>  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
> 
>  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
> 
>  $ cat debhello-0.0/debian/copyright
> 
> Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
> 
> Upstream-Name: debhello
> 
> Upstream-Contact: <preferred name and address to reach the upstream project>
> 
> Source: <url://example.com>
> 
> #
> 
> # Please double check copyright with the licensecheck(1) command.
> 
> 
> 
> Files:     Makefile
> 
>            src/hello.c
> 
> Copyright: __NO_COPYRIGHT_NOR_LICENSE__
> 
> License:   __NO_COPYRIGHT_NOR_LICENSE__
> 
> 
> 
> #----------------------------------------------------------------------------
> 
> # Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following
> 
> # license/copyright files.
> 
> 
> 
> #----------------------------------------------------------------------------
> 
> # License file: LICENSE
> 
>  License:
> 
>  .
> 
>  All files in this archive are licensed under the MIT License as below.
> 
>  .
> 
>  Copyright 2015 Osamu Aoki <os...@debian.org>
> 
>  .
> 
>  Permission is hereby granted, free of charge, to any person obtaining a
> 
>  copy of this software and associated documentation files (the "Software"),
> 
>  to deal in the Software without restriction, including without limitation
> 
>  the rights to use, copy, modify, merge, publish, distribute, sublicense,
> 
>  and/or sell copies of the Software, and to permit persons to whom the
> 
>  Software is furnished to do so, subject to the following conditions:
> 
>  .
> 
>  The above copyright notice and this permission notice shall be included
> 
>  in all copies or substantial portions of the Software.
> 
>  .
> 
>  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
> 
>  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> 
>  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
> 
>  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
> 
>  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
> 
>  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
> 
>  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
> 
>  $ cat debhello-0.0/debian/copyright
> 
> Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
> 
> Upstream-Name: debhello
> 
> Upstream-Contact: <preferred name and address to reach the upstream project>
> 
> Source: <url://example.com>
> 
> #
> 
> # Please double check copyright with the licensecheck(1) command.
> 
> 
> 
> Files:     Makefile
> 
>            src/hello.c
> 
> Copyright: __NO_COPYRIGHT_NOR_LICENSE__
> 
> License:   __NO_COPYRIGHT_NOR_LICENSE__
> 
> 
> 
> #----------------------------------------------------------------------------
> 
> # Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following
> 
> # license/copyright files.
> 
> 
> 
> #----------------------------------------------------------------------------
> 
> # License file: LICENSE
> 
>  License:
> 
>  .
> 
>  All files in this archive are licensed under the MIT License as below.
> 
>  .
> 
>  Copyright 2015 Osamu Aoki <os...@debian.org>
> 
>  .
> 
>  Permission is hereby granted, free of charge, to any person obtaining a
> 
>  copy of this software and associated documentation files (the "Software"),
> 
>  to deal in the Software without restriction, including without limitation
> 
>  the rights to use, copy, modify, merge, publish, distribute, sublicense,
> 
>  and/or sell copies of the Software, and to permit persons to whom the
> 
>  Software is furnished to do so, subject to the following conditions:
> 
>  .
> 
>  The above copyright notice and this permission notice shall be included
> 
>  in all copies or substantial portions of the Software.
> 
>  .
> 
>  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
> 
>  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> 
>  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
> 
>  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
> 
>  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
> 
>  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
> 
>  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
> 
>  $ cat debhello-0.0/debian/copyright
> 
> Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
> 
> Upstream-Name: debhello
> 
> Upstream-Contact: <preferred name and address to reach the upstream project>
> 
> Source: <url://example.com>
> 
> #
> 
> # Please double check copyright with the licensecheck(1) command.
> 
> 
> 
> Files:     Makefile
> 
>            src/hello.c
> 
> Copyright: __NO_COPYRIGHT_NOR_LICENSE__
> 
> License:   __NO_COPYRIGHT_NOR_LICENSE__
> 
> 
> 
> #----------------------------------------------------------------------------
> 
> # Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following
> 
> # license/copyright files.
> 
> 
> 
> #----------------------------------------------------------------------------
> 
> # License file: LICENSE
> 
>  License:
> 
>  .
> 
>  All files in this archive are licensed under the MIT License as below.
> 
>  .
> 
>  Copyright 2015 Osamu Aoki <os...@debian.org>
> 
>  .
> 
>  Permission is hereby granted, free of charge, to any person obtaining a
> 
>  copy of this software and associated documentation files (the "Software"),
> 
>  to deal in the Software without restriction, including without limitation
> 
>  the rights to use, copy, modify, merge, publish, distribute, sublicense,
> 
>  and/or sell copies of the Software, and to permit persons to whom the
> 
>  Software is furnished to do so, subject to the following conditions:
> 
>  .
> 
>  The above copyright notice and this permission notice shall be included
> 
>  in all copies or substantial portions of the Software.
> 
>  .
> 
>  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
> 
>  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> 
>  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
> 
>  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
> 
>  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
> 
>  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
> 
>  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
> 
>  $ cd ..
> 
>  $ cp -a /<<PKGBUILDDIR>>/debhello-0.0-pkg4/test debmake
> 
>  $ cd /<<PKGBUILDDIR>>/debhello-0.0-pkg4/test
> 
>  $ cd ..
> 
>  $ cp -a /<<PKGBUILDDIR>>/debhello-0.0-pkg1/test debmake
> 
>  $ cd /<<PKGBUILDDIR>>/debhello-0.0-pkg1/test
> 
>  $ cd ..
> 
>  $ cp -a /<<PKGBUILDDIR>>/debhello-0.0-pkg3/test debmake
> 
>  $ cd /<<PKGBUILDDIR>>/debhello-0.0-pkg3/test
> 
>  $ cd ..
> 
>  $ cp -a /<<PKGBUILDDIR>>/debhello-0.0-pkg2/test debmake
> 
>  $ cd /<<PKGBUILDDIR>>/debhello-0.0-pkg2/test
> 
>  $ cd debhello-0.0
> 
>  $ vim debhello-0.0/debian/rules
> 
>  ... hack, hack, hack, ...
> 
>  $ cat debhello-0.0/debian/rules
> 
> #!/usr/bin/make -f
> 
> export DH_VERBOSE = 1
> 
> export DEB_BUILD_MAINT_OPTIONS = hardening=+all
> 
> export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
> 
> export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
> 
> 
> 
> %:
> 
>       dh $@
> 
>  $ vim debhello-0.0/debian/rules
> 
>  ... hack, hack, hack, ...
> 
>  $ cat debhello-0.0/debian/rules
> 
> #!/usr/bin/make -f
> 
> export DH_VERBOSE = 1
> 
> export DEB_BUILD_MAINT_OPTIONS = hardening=+all
> 
> export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
> 
> export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
> 
> 
> 
> %:
> 
>       dh $@
> 
> 
> 
> override_dh_auto_install:
> 
>       dh_auto_install -- prefix=/usr
> 
>  $ cd debhello-0.0
> 
>  $ vim debian/rules
> 
>  ... hack, hack, hack, ...
> 
>  $ cat debian/rules
> 
> #!/usr/bin/make -f
> 
> export DH_VERBOSE = 1
> 
> export DEB_BUILD_MAINT_OPTIONS = hardening=+all
> 
> export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
> 
> export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
> 
> 
> 
> %:
> 
>       dh $@
> 
>  $ vim debian/rules
> 
>  ... hack, hack, hack, ...
> 
>  $ cat debian/rules
> 
> #!/usr/bin/make -f
> 
> export DH_VERBOSE = 1
> 
> export DEB_BUILD_MAINT_OPTIONS = hardening=+all
> 
> export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
> 
> export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
> 
> 
> 
> %:
> 
>       dh $@
> 
>  $ vim debhello-0.0/debian/control
> 
>  ... hack, hack, hack, ...
> 
>  $ cat debhello-0.0/debian/control
> 
> Source: debhello
> 
> Section: devel
> 
> Priority: optional
> 
> Maintainer: Osamu Aoki <os...@debian.org>
> 
> Build-Depends: debhelper (>=11~)
> 
> Standards-Version: 4.3.0
> 
> Homepage: https://salsa.debian.org/debian/debmake-doc
> 
> 
> 
> Package: debhello
> 
> Architecture: any
> 
> Multi-Arch: foreign
> 
> Depends: ${misc:Depends}, ${shlibs:Depends}
> 
> Description: example package in the debmake-doc package
> 
>  This is an example package to demonstrate Debian packaging using
> 
>  the debmake command.
> 
>  .
> 
>  The generated Debian package uses the dh command offered by the
> 
>  debhelper package and the dpkg source format `3.0 (quilt)'.
> 
>  $ vim debhello-0.0/debian/control
> 
>  ... hack, hack, hack, ...
> 
>  $ cat debhello-0.0/debian/control
> 
> Source: debhello
> 
> Section: devel
> 
> Priority: optional
> 
> Maintainer: Osamu Aoki <os...@debian.org>
> 
> Build-Depends: debhelper (>=11~)
> 
> Standards-Version: 4.3.0
> 
> Homepage: https://salsa.debian.org/debian/debmake-doc
> 
> 
> 
> Package: debhello
> 
> Architecture: any
> 
> Multi-Arch: foreign
> 
> Depends: ${misc:Depends}, ${shlibs:Depends}
> 
> Description: example package in the debmake-doc package
> 
>  This is an example package to demonstrate Debian packaging using
> 
>  the debmake command.
> 
>  .
> 
>  The generated Debian package uses the dh command offered by the
> 
>  debhelper package and the dpkg source format `3.0 (quilt)'.
> 
>  $ vim debian/control
> 
>  ... hack, hack, hack, ...
> 
>  $ cat debian/control
> 
> Source: debhello
> 
> Section: devel
> 
> Priority: optional
> 
> Maintainer: Osamu Aoki <os...@debian.org>
> 
> Build-Depends: debhelper (>=11~)
> 
> Standards-Version: 4.3.0
> 
> Homepage: https://salsa.debian.org/debian/debmake-doc
> 
> 
> 
> Package: debhello
> 
> Architecture: any
> 
> Multi-Arch: foreign
> 
> Depends: ${misc:Depends}, ${shlibs:Depends}
> 
> Description: example package in the debmake-doc package
> 
>  This is an example package to demonstrate Debian packaging using
> 
>  the debmake command.
> 
>  .
> 
>  The generated Debian package uses the dh command offered by the
> 
>  debhelper package and the dpkg source format `3.0 (quilt)'.
> 
>  $ vim debian/control
> 
>  ... hack, hack, hack, ...
> 
>  $ cat debian/control
> 
> Source: debhello
> 
> Section: devel
> 
> Priority: optional
> 
> Maintainer: Osamu Aoki <os...@debian.org>
> 
> Build-Depends: debhelper (>=11~)
> 
> Standards-Version: 4.3.0
> 
> Homepage: https://salsa.debian.org/debian/debmake-doc
> 
> 
> 
> Package: debhello
> 
> Architecture: any
> 
> Multi-Arch: foreign
> 
> Depends: ${misc:Depends}, ${shlibs:Depends}
> 
> Description: example package in the debmake-doc package
> 
>  This is an example package to demonstrate Debian packaging using
> 
>  the debmake command.
> 
>  .
> 
>  The generated Debian package uses the dh command offered by the
> 
>  debhelper package and the dpkg source format `3.0 (quilt)'.
> 
>  $ vim debhello-0.0/debian/copyright
> 
>  ... hack, hack, hack, ...
> 
>  $ cat debhello-0.0/debian/copyright
> 
> Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
> 
> Upstream-Name: debhello
> 
> Source: https://salsa.debian.org/debian/debmake-doc
> 
> 
> 
> Files:     *
> 
> Copyright: 2015 Osamu Aoki <os...@debian.org>
> 
> License:   Expat
> 
>  Permission is hereby granted, free of charge, to any person obtaining a
> 
>  copy of this software and associated documentation files (the "Software"),
> 
>  to deal in the Software without restriction, including without limitation
> 
>  the rights to use, copy, modify, merge, publish, distribute, sublicense,
> 
>  and/or sell copies of the Software, and to permit persons to whom the
> 
>  Software is furnished to do so, subject to the following conditions:
> 
>  .
> 
>  The above copyright notice and this permission notice shall be included
> 
>  in all copies or substantial portions of the Software.
> 
>  .
> 
>  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
> 
>  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> 
>  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
> 
>  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
> 
>  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
> 
>  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
> 
>  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
> 
>  $ vim debhello-0.0/debian/copyright
> 
>  ... hack, hack, hack, ...
> 
>  $ cat debhello-0.0/debian/copyright
> 
> Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
> 
> Upstream-Name: debhello
> 
> Source: https://salsa.debian.org/debian/debmake-doc
> 
> 
> 
> Files:     *
> 
> Copyright: 2015 Osamu Aoki <os...@debian.org>
> 
> License:   Expat
> 
>  Permission is hereby granted, free of charge, to any person obtaining a
> 
>  copy of this software and associated documentation files (the "Software"),
> 
>  to deal in the Software without restriction, including without limitation
> 
>  the rights to use, copy, modify, merge, publish, distribute, sublicense,
> 
>  and/or sell copies of the Software, and to permit persons to whom the
> 
>  Software is furnished to do so, subject to the following conditions:
> 
>  .
> 
>  The above copyright notice and this permission notice shall be included
> 
>  in all copies or substantial portions of the Software.
> 
>  .
> 
>  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
> 
>  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> 
>  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
> 
>  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
> 
>  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
> 
>  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
> 
>  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
> 
>  $ vim debian/copyright
> 
>  ... hack, hack, hack, ...
> 
>  $ cat debian/copyright
> 
> Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
> 
> Upstream-Name: debhello
> 
> Source: https://salsa.debian.org/debian/debmake-doc
> 
> 
> 
> Files:     *
> 
> Copyright: 2015 Osamu Aoki <os...@debian.org>
> 
> License:   Expat
> 
>  Permission is hereby granted, free of charge, to any person obtaining a
> 
>  copy of this software and associated documentation files (the "Software"),
> 
>  to deal in the Software without restriction, including without limitation
> 
>  the rights to use, copy, modify, merge, publish, distribute, sublicense,
> 
>  and/or sell copies of the Software, and to permit persons to whom the
> 
>  Software is furnished to do so, subject to the following conditions:
> 
>  .
> 
>  The above copyright notice and this permission notice shall be included
> 
>  in all copies or substantial portions of the Software.
> 
>  .
> 
>  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
> 
>  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> 
>  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
> 
>  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
> 
>  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
> 
>  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
> 
>  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
> 
>  $ cd ..
> 
>  $ vim debian/copyright
> 
>  ... hack, hack, hack, ...
> 
>  $ cat debian/copyright
> 
> Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
> 
> Upstream-Name: debhello
> 
> Source: https://salsa.debian.org/debian/debmake-doc
> 
> 
> 
> Files:     *
> 
> Copyright: 2015 Osamu Aoki <os...@debian.org>
> 
> License:   Expat
> 
>  Permission is hereby granted, free of charge, to any person obtaining a
> 
>  copy of this software and associated documentation files (the "Software"),
> 
>  to deal in the Software without restriction, including without limitation
> 
>  the rights to use, copy, modify, merge, publish, distribute, sublicense,
> 
>  and/or sell copies of the Software, and to permit persons to whom the
> 
>  Software is furnished to do so, subject to the following conditions:
> 
>  .
> 
>  The above copyright notice and this permission notice shall be included
> 
>  in all copies or substantial portions of the Software.
> 
>  .
> 
>  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
> 
>  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> 
>  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
> 
>  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
> 
>  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
> 
>  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
> 
>  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
> 
>  $ cd ..
> 
>  $ cd debhello-0.0
> 
>  $ dquilt new 000-prefix-usr.patch
> 
>  $ cd debhello-0.0
> 
>  $ echo '000-prefix-usr.patch' >debian/patches/series
> 
>  $ vim ../000-prefix-usr.patch
> 
>  ... hack, hack, hack, ...
> 
>  $ mv -f ../000-prefix-usr.patch debian/patches/000-prefix-usr.patch
> 
>  $ cat debian/patches/000-prefix-usr.patch
> 
> From: Osamu Aoki <os...@debian.org>
> 
> Description: set prefix=/usr patch
> 
> diff -Nru debhello-0.0.orig/Makefile debhello-0.0/Makefile
> 
> --- debhello-0.0.orig/Makefile
> 
> +++ debhello-0.0/Makefile
> 
> @@ -1,4 +1,4 @@
> 
> -prefix = /usr/local
> 
> +prefix = /usr
> 
>  
> 
>  all: src/hello
> 
>  
> 
>  $ dch -r
> 
>  ... hack, hack, hack, ...
> 
>  $ cat debhello-0.0/debian/changelog
> 
> debhello (0.0-1) unstable; urgency=low
> 
> 
> 
>   * Initial release of debhello. Closes: #123456
> 
>     - C source for an executable.
> 
>     - Makefile supporting $(DESTDIR) and $(prefix)=/usr .
> 
> 
> 
>  -- Osamu Aoki <os...@debian.org>  Mon, 12 Jan 2015 00:00:01 +0900
> 
>  $ dch -r
> 
>  ... hack, hack, hack, ...
> 
>  $ cat debhello-0.0/debian/changelog
> 
> debhello (0.0-1) unstable; urgency=low
> 
> 
> 
>   * Initial release of debhello. Closes: #123456
> 
>     - C source for an executable.
> 
>     - Makefile supporting $(DESTDIR) and $(prefix)=/usr .
> 
> 
> 
>  -- Osamu Aoki <os...@debian.org>  Mon, 12 Jan 2015 00:00:01 +0900
> 
>  $ cd ..
> 
>  $ tree debhello-0.0/debian
> 
> debhello-0.0/debian
> 
> ├── README.Debian
> 
> ├── changelog
> 
> ├── control
> 
> ├── copyright
> 
> ├── patches
> 
> │   └── series
> 
> ├── rules
> 
> ├── source
> 
> │   ├── format
> 
> │   └── local-options
> 
> └── watch
> 
> 
> 
> 2 directories, 9 files
> 
> Patch debian/patches/000-prefix-usr.patch is now on top
> 
>  $ dquilt add Makefile
> 
>  $ cd debhello-0.0
> 
>  $ dch -r
> 
>  ... hack, hack, hack, ...
> 
>  $ cat debhello-0.0/debian/changelog
> 
> debhello (0.0-1) unstable; urgency=low
> 
> 
> 
>   * Initial release of debhello. Closes: #123456
> 
>     - C source for an executable.
> 
>     - Makefile supporting $(DESTDIR) and $(prefix)=/usr .
> 
> 
> 
>  -- Osamu Aoki <os...@debian.org>  Mon, 12 Jan 2015 00:00:01 +0900
> 
>  $ cd ..
> 
>  $ cp -a /<<PKGBUILDDIR>>/debhello-0.0-pkg1/test package
> 
>  $ cd /<<PKGBUILDDIR>>/debhello-0.0-pkg1/test
> 
> File Makefile added to patch debian/patches/000-prefix-usr.patch
> 
>  ... hack, hack, hack, ...
> 
>  $ head -1 Makefile
> 
> prefix = /usr
> 
>  $ dquilt refresh
> 
>  $ tree debhello-0.0/debian
> 
> debhello-0.0/debian
> 
> ├── README.Debian
> 
> ├── changelog
> 
> ├── control
> 
> ├── copyright
> 
> ├── patches
> 
> │   ├── 000-prefix-usr.patch
> 
> │   └── series
> 
> ├── rules
> 
> ├── source
> 
> │   ├── format
> 
> │   └── local-options
> 
> └── watch
> 
> 
> 
> 2 directories, 10 files
> 
>  $ cd debhello-0.0
> 
>  $ debuild
> 
>  $ vim Makefile
> 
>  ... hack, hack, hack, ...
> 
>  $ head -n1 Makefile
> 
>  $ cd ..
> 
>  $ cp -a /<<PKGBUILDDIR>>/debhello-0.0-pkg2/test package
> 
>  $ cd /<<PKGBUILDDIR>>/debhello-0.0-pkg2/test
> 
> prefix = /usr
> 
>  $ dpkg-source --commit . 000-prefix-usr.patch
> 
>  ... edit the DEP-3 patch header with editor
> 
>  $ cd debhello-0.0
> 
>  $ debuild
> 
> Refreshed patch debian/patches/000-prefix-usr.patch
> 
>  $ dquilt header -e --dep3
> 
>  dpkg-buildpackage -us -uc -ui -i
> 
>  ... edit the DEP-3 patch header with editor
> 
>  $ tree -a
> 
> .
> 
> ├── .pc
> 
> │   ├── .quilt_patches
> 
> │   ├── .quilt_series
> 
> │   ├── .version
> 
> │   ├── 000-prefix-usr.patch
> 
> │   │   ├── .timestamp
> 
> │   │   └── Makefile
> 
> │   └── applied-patches
> 
> ├── LICENSE
> 
> ├── Makefile
> 
> ├── debian
> 
> │   ├── README.Debian
> 
> │   ├── changelog
> 
> │   ├── control
> 
> │   ├── copyright
> 
> │   ├── patches
> 
> │   │   ├── 000-prefix-usr.patch
> 
> │   │   └── series
> 
> │   ├── rules
> 
> │   ├── source
> 
> │   │   ├── format
> 
> │   │   └── local-options
> 
> │   └── watch
> 
> └── src
> 
>     └── hello.c
> 
> 
> 
> 6 directories, 19 files
> 
>  $ cat debian/patches/series
> 
> 000-prefix-usr.patch
> 
>  $ cat debian/patches/000-prefix-usr.patch
> 
> Description: set prefix=/usr patch
> 
> Author: Osamu Aoki <os...@debian.org>
> 
> Index: debhello-0.0/Makefile
> 
> ===================================================================
> 
> --- debhello-0.0.orig/Makefile
> 
> +++ debhello-0.0/Makefile
> 
> @@ -1,4 +1,4 @@
> 
> -prefix = /usr/local
> 
> +prefix = /usr
> 
>  
> 
>  all: src/hello
> 
>  
> 
>  dpkg-buildpackage -us -uc -ui -i
> 
>  $ cd ..
> 
>  $ cat debhello-0.0/debian/patches/series
> 
> 000-prefix-usr.patch
> 
>  $ cat debhello-0.0/debian/patches/000-prefix-usr.patch
> 
> Description: set prefix=/usr patch
> 
> Author: Osamu Aoki <os...@debian.org>
> 
> Index: debhello-0.0/Makefile
> 
> ===================================================================
> 
> --- debhello-0.0.orig/Makefile
> 
> +++ debhello-0.0/Makefile
> 
> @@ -1,4 +1,4 @@
> 
> -prefix = /usr/local
> 
> +prefix = /usr
> 
>  
> 
>  all: src/hello
> 
>  
> 
> dpkg-buildpackage: info: source package debhello
> 
> dpkg-buildpackage: info: source version 0.0-1
> 
> dpkg-buildpackage: info: source distribution unstable
> 
> dpkg-buildpackage: info: source changed by Osamu Aoki <os...@debian.org>
> 
>  dpkg-source -i --before-build .
> 
> dpkg-buildpackage: info: host architecture amd64
> 
>  $ dch -r
> 
>  ... hack, hack, hack, ...
> 
>  $ cat debhello-0.0/debian/changelog
> 
> debhello (0.0-1) unstable; urgency=low
> 
> 
> 
>   * Initial release of debhello. Closes: #123456
> 
>     - C source for an executable.
> 
>     - Makefile supporting $(DESTDIR) and $(prefix)=/usr .
> 
> 
> 
>  -- Osamu Aoki <os...@debian.org>  Mon, 12 Jan 2015 00:00:01 +0900
> 
>  $ cat debian/patches/series
> 
> 000-prefix-usr.patch
> 
>  $ cat debian/patches/000-prefix-usr.patch
> 
> Description: set prefix=/usr patch
> 
> Author: Osamu Aoki <os...@debian.org>
> 
> Index: debhello-0.0/Makefile
> 
> 
> 
> --- debhello-0.0.orig/Makefile
> 
> +++ debhello-0.0/Makefile
> 
> @@ -1,4 +1,4 @@
> 
> -prefix = /usr/local
> 
> +prefix = /usr
> 
>  
> 
>  all: src/hello
> 
>  
> 
>  $ tree -a
> 
> .
> 
> ├── .pc
> 
> │   ├── .quilt_patches
> 
> │   ├── .quilt_series
> 
> │   ├── .version
> 
> │   ├── 000-prefix-usr.patch
> 
> │   │   ├── .timestamp
> 
> │   │   └── Makefile
> 
> │   └── applied-patches
> 
> ├── LICENSE
> 
> ├── Makefile
> 
> ├── debian
> 
> │   ├── README.Debian
> 
> │   ├── changelog
> 
> │   ├── control
> 
> │   ├── copyright
> 
> │   ├── patches
> 
> │   │   ├── 000-prefix-usr.patch
> 
> │   │   └── series
> 
> │   ├── rules
> 
> │   ├── source
> 
> │   │   ├── format
> 
> │   │   └── local-options
> 
> │   └── watch
> 
> └── src
> 
>     └── hello.c
> 
> 
> 
> 6 directories, 19 files
> 
> dpkg-buildpackage: info: source package debhello
> 
> dpkg-buildpackage: info: source version 0.0-1
> 
> dpkg-buildpackage: info: source distribution unstable
> 
> dpkg-buildpackage: info: source changed by Osamu Aoki <os...@debian.org>
> 
>  $ tree debhello-0.0/debian
> 
> debhello-0.0/debian
> 
> ├── README.Debian
> 
> ├── changelog
> 
> ├── control
> 
> ├── copyright
> 
> ├── patches
> 
> │   ├── 000-prefix-usr.patch
> 
> │   └── series
> 
> ├── rules
> 
> ├── source
> 
> │   ├── format
> 
> │   └── local-options
> 
> └── watch
> 
> 
> 
> 2 directories, 10 files
> 
>  $ cd ..
> 
>  dpkg-source -i --before-build .
> 
> dpkg-buildpackage: info: host architecture amd64
> 
>  $ cd ..
> 
>  $ cp -a /<<PKGBUILDDIR>>/debhello-0.0-pkg3/test package
> 
>  $ cd /<<PKGBUILDDIR>>/debhello-0.0-pkg3/test
> 
>  $ tree debhello-0.0/debian
> 
> debhello-0.0/debian
> 
> ├── README.Debian
> 
> ├── changelog
> 
> ├── control
> 
> ├── copyright
> 
> ├── patches
> 
> │   ├── 000-prefix-usr.patch
> 
> │   └── series
> 
> ├── rules
> 
> ├── source
> 
> │   ├── format
> 
> │   └── local-options
> 
> └── watch
> 
> 
> 
> 2 directories, 10 files
> 
>  $ cd ..
> 
>  $ cp -a /<<PKGBUILDDIR>>/debhello-0.0-pkg4/test package
> 
>  $ cd /<<PKGBUILDDIR>>/debhello-0.0-pkg4/test
> 
>  $ cd debhello-0.0
> 
>  $ debuild
> 
>  $ cd debhello-0.0
> 
>  $ debuild
> 
> dpkg-source: info: using patch list from debian/patches/series
> 
> dpkg-source: info: applying 000-prefix-usr.patch
> 
>  fakeroot debian/rules clean
> 
>  dpkg-buildpackage -us -uc -ui -i
> 
> dh clean
> 
>  dpkg-buildpackage -us -uc -ui -i
> 
> dh: error: Please specify the compatibility level in debian/compat
> 
> make: *** [debian/rules:8: clean] Error 25

The full build log is available from:
   http://qa-logs.debian.net/2020/11/25/debmake-doc_1.14-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.

Reply via email to