Re: Bug#765009: Subject: RFS: abcmidi/20140928-1 [ITA]
On 10/25/2014 07:19 PM, Tobias Frost wrote:
> d/clean is your friend :)
> I pushed a fix to the repository: Adding debian/clean
>
> tobi@edoras:~/workspace/deb/mentors/_done/abcmidi/abcmidi$ cat
> debian/clean
> Makefile
> config.h
> config.log
> config.status
>
Thanks Tobias,
Okay, I am closer! Unfortunately, dh_clean is still not working and I
cannot workout why (buildlog attached). At least I managed to clean up
after autoreconf by adding dh_autoreconf_clean to the dh_auto_install
target. So the only files left now are in the debian directory, and do
not cause a subsequent build to fail.
debian/abcmidi.debhelper.log
debian/abcmidi.substvars
debian/abcmidi/
debian/files
For now I will carry on with some of Jame's other suggestions (copyright
& LDFLAGs).
Regards,
Ross
dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: source package abcmidi
dpkg-buildpackage: source version 20141016-1~3.gbp63b824
dpkg-buildpackage: source distribution UNRELEASED
dpkg-buildpackage: source changed by Ross Gammon <rossgammon@mail.dk>
dpkg-source --before-build abcmidi
dpkg-buildpackage: host architecture amd64
dpkg-source: info: using options from abcmidi/debian/source/local-options: --unapply-patches
dpkg-source: info: applying hardening.patch
dpkg-source: info: applying manpages.patch
dpkg-source: info: applying fix_clean_target.patch
fakeroot debian/rules clean
dh clean --with autoreconf
dh_testdir
dh_auto_clean
make -j1 clean
make[1]: Entering directory `/home/ross/debian/abcmidi'
rm *.o abc2midi midi2abc abc2abc mftext yaps midicopy abcmatch
rm: cannot remove ‘*.o’: No such file or directory
rm: cannot remove ‘abc2midi’: No such file or directory
rm: cannot remove ‘midi2abc’: No such file or directory
rm: cannot remove ‘abc2abc’: No such file or directory
rm: cannot remove ‘mftext’: No such file or directory
rm: cannot remove ‘yaps’: No such file or directory
rm: cannot remove ‘midicopy’: No such file or directory
rm: cannot remove ‘abcmatch’: No such file or directory
make[1]: [clean] Error 1 (ignored)
make[1]: Leaving directory `/home/ross/debian/abcmidi'
dh_autoreconf_clean
dh_clean
rm -f debian/abcmidi.substvars
rm -f debian/abcmidi.*.debhelper
rm -rf debian/abcmidi/
rm -f debian/*.debhelper.log
rm -f -- Makefile config.h config.log config.status debian/abcmidi.debhelper.log debian/abcmidi.substvars debian/abcmidi/ debian/files
rm -f debian/files
find . \( \( -type f -a \
\( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
-o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
-o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
-o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
\) -exec rm -f {} + \) -o \
\( -type d -a -name autom4te.cache -prune -exec rm -rf {} + \) \)
rm -f *-stamp
dpkg-source -b abcmidi
dpkg-source: info: using options from abcmidi/debian/source/local-options: --unapply-patches
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building abcmidi using existing ./abcmidi_20141016.orig.tar.gz
dpkg-source: warning: ignoring deletion of file config.h.in
dpkg-source: warning: ignoring deletion of file configure
dpkg-source: info: building abcmidi in abcmidi_20141016-1~3.gbp63b824.debian.tar.gz
dpkg-source: info: building abcmidi in abcmidi_20141016-1~3.gbp63b824.dsc
debian/rules build
dh build --with autoreconf
dh_testdir
dh_autoreconf
find ! -ipath "./debian/*" -a ! \( -path '*/.git/*' -o -path '*/.hg/*' -o -path '*/.bzr/*' -o -path '*/.svn/*' -o -path '*/CVS/*' \) -a -type f -exec md5sum {} \; > debian/autoreconf.before
autoreconf -f -i
find ! -ipath "./debian/*" -a ! \( -path '*/.git/*' -o -path '*/.hg/*' -o -path '*/.bzr/*' -o -path '*/.svn/*' -o -path '*/CVS/*' \) -a -type f -exec md5sum {} \; > debian/autoreconf.after
dh_auto_configure
./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --libdir=\${prefix}/lib/x86_64-linux-gnu --libexecdir=\${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode --disable-dependency-tracking
configure: WARNING: unrecognized options: --disable-maintainer-mode, --disable-dependency-tracking
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 a BSD-compatible install... /usr/bin/install -c
checking for main in -lm... yes
checking how to run the C preprocessor... gcc -E
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 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 stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for size_t... yes
checking for error_at_line... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for strcasecmp... yes
checking for strchr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
configure: WARNING: unrecognized options: --disable-maintainer-mode, --disable-dependency-tracking
dh_auto_build
make -j1
make[1]: Entering directory `/home/ross/debian/abcmidi'
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o parseabc.o parseabc.c
parseabc.c: In function ‘isnumberp’:
parseabc.c:320:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if (((int) *c >= '0') && ((int) *c <= '9'))
^
parseabc.c:320:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if (((int) *c >= '0') && ((int) *c <= '9'))
^
parseabc.c: In function ‘parse_precomment’:
parseabc.c:1701:3: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char **’ [-Wformat=]
success = sscanf (s, "%%abc-version %s", &abcversion); /* [SS] 2014-08-11 */
^
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o store.o store.c
store.c: In function ‘append_words’:
store.c:2145:3: warning: assignment makes pointer from integer without a cast [enabled by default]
p = concatenatestring(words[wcount-1],morewords);
^
store.c: In function ‘expand_ornaments’:
store.c:5208:10: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat=]
default: printf("no such decoration %d\n",decotype);
^
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o genmidi.o genmidi.c
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o midifile.o midifile.c
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o queues.o queues.c
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o parser2.o parser2.c
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o stresspat.o stresspat.c
stresspat.c: In function ‘read_custom_stress_file’:
stresspat.c:516:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[32]’ [-Wformat=]
j = fscanf (inhandle, "%s", &name);
^
stresspat.c:519:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[6]’ [-Wformat=]
j = fscanf (inhandle, "%s", &meter);
^
stresspat.c:543:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(char *) checkmalloc ((strlen (name) + 1) * sizeof (char));
^
stresspat.c:545:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(char *) checkmalloc ((strlen (meter) + 1) * sizeof (char));
^
stresspat.c:562:11: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets (str, 3, inhandle);
^
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o abc2midi parseabc.o store.o genmidi.o queues.o \
parser2.o midifile.o stresspat.o -lm
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o midi2abc.o midi2abc.c
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro midifile.o midi2abc.o -o midi2abc
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o toabc.o toabc.c
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o abc2abc parseabc.o toabc.o
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o mftext.o mftext.c
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o crack.o crack.c
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro midifile.o mftext.o crack.o -o mftext
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o yapstree.o yapstree.c
yapstree.c: In function ‘event_split_voice’:
yapstree.c:1326:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
addfeature(SPLITVOICE, (void*) lineno);
^
yapstree.c: In function ‘event_linebreak’:
yapstree.c:1340:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
addfeature(LINENUM, (void*)lineno);
^
yapstree.c: In function ‘event_specific’:
yapstree.c:1501:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
addfeature(VSKIP, (void*)((int)vspace));
^
yapstree.c: In function ‘event_bar’:
yapstree.c:2164:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
addfeature(type, (void*)cv->barno); /* save bar number */
^
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o drawtune.o drawtune.c
drawtune.c: In function ‘sizevoice’:
drawtune.c:1477:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
lineno = (int)(ft->item);
^
drawtune.c: In function ‘printvoiceline’:
drawtune.c:2955:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
lineno = (int)(v->place->item);
^
drawtune.c:2967:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
vskip((double)((int)v->place->item));
^
drawtune.c:3001:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
printbarnumber(ft->x, (int)ft->item);
^
drawtune.c:3005:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
printbarnumber(ft->x, (int)ft->item);
^
drawtune.c:3010:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
printbarnumber(ft->x, (int)ft->item);
^
drawtune.c:3015:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
printbarnumber(ft->x, (int)ft->item);
^
drawtune.c:3038:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
printbarnumber(ft->x, (int)ft->item);
^
drawtune.c:3046:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
printbarnumber(ft->x, (int)ft->item);
^
drawtune.c:3239:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
lineno = (int)(ft->item);
^
drawtune.c: In function ‘getlineheight’:
drawtune.c:3362:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
lineno = (int)(v->place->item);
^
drawtune.c:3371:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
*height = *height + (double)((int)v->place->item);
^
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o debug.o debug.c
debug.c: In function ‘showfeature’:
debug.c:146:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
printf("LINENUM %d\n", (int)(ft->item));
^
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o pslib.o pslib.c
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o position.o position.c
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o yaps parseabc.o yapstree.o drawtune.o debug.o \
position.o pslib.o parser2.o -o yaps
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o midicopy.o midicopy.c
midicopy.c: In function ‘copy_metaseqnum’:
midicopy.c:369:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
mf_write_meta_event (0x00, (char *) seq, 2);
^
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o midicopy midicopy.o
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o abcmatch.o abcmatch.c
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -c -o matchsup.o matchsup.c
matchsup.c: In function ‘dumpfeat’:
matchsup.c:1997:3: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
else printf("%d %s %d %d %d %d %d \n",i,featname[j],pitch[i],num[i],denom[i]);
^
matchsup.c:1997:3: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DANSILIBS -g -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro abcmatch.o matchsup.o parseabc.o -o abcmatch
make[1]: Leaving directory `/home/ross/debian/abcmidi'
dh_auto_test
fakeroot debian/rules binary
dh binary --with autoreconf
dh_testroot
dh_prep
rm -f debian/abcmidi.substvars
rm -f debian/abcmidi.*.debhelper
rm -rf debian/abcmidi/
debian/rules override_dh_auto_install
make[1]: Entering directory `/home/ross/debian/abcmidi'
#Upstream prefix is usr/local so manually call make
/usr/bin/make DESTDIR=$(pwd)/debian/abcmidi prefix=/usr install
make[2]: Entering directory `/home/ross/debian/abcmidi'
test -d /home/ross/debian/abcmidi/debian/abcmidi/usr/bin || mkdir -p /home/ross/debian/abcmidi/debian/abcmidi/usr/bin
install -m 755 abc2midi midi2abc abc2abc mftext yaps midicopy abcmatch /home/ross/debian/abcmidi/debian/abcmidi/usr/bin
# install documentation
test -d /home/ross/debian/abcmidi/debian/abcmidi/share/doc/abcmidi || mkdir -p /home/ross/debian/abcmidi/debian/abcmidi/usr/share/doc/abcmidi
install -m 644 doc/*.txt /home/ross/debian/abcmidi/debian/abcmidi/usr/share/doc/abcmidi
install -m 644 doc/AUTHORS /home/ross/debian/abcmidi/debian/abcmidi/usr/share/doc/abcmidi
install -m 644 doc/CHANGES /home/ross/debian/abcmidi/debian/abcmidi/usr/share/doc/abcmidi
install -m 644 VERSION /home/ross/debian/abcmidi/debian/abcmidi/usr/share/doc/abcmidi
# install manpages
test -d /home/ross/debian/abcmidi/debian/abcmidi/usr/share/man/man1 || mkdir -p /home/ross/debian/abcmidi/debian/abcmidi/usr/share/man/man1;
install -m 644 doc/*.1 /home/ross/debian/abcmidi/debian/abcmidi/usr/share/man/man1
make[2]: Leaving directory `/home/ross/debian/abcmidi'
#Remove duplicate license information
rm /home/ross/debian/abcmidi/debian/abcmidi/usr/share/doc/abcmidi/gpl.txt
#Remove duplicate changelog file
rm /home/ross/debian/abcmidi/debian/abcmidi/usr/share/doc/abcmidi/CHANGES
#Remove superfluous VERSION file
rm /home/ross/debian/abcmidi/debian/abcmidi/usr/share/doc/abcmidi/VERSION
#Remove duplicate AUTHORS file
rm /home/ross/debian/abcmidi/debian/abcmidi/usr/share/doc/abcmidi/AUTHORS
dh_auto_clean
make -j1 clean
make[2]: Entering directory `/home/ross/debian/abcmidi'
rm *.o abc2midi midi2abc abc2abc mftext yaps midicopy abcmatch
make[2]: Leaving directory `/home/ross/debian/abcmidi'
dh_autoreconf_clean
rm -f -- ./config.h.in ./configure ./autom4te.cache/traces.0 ./autom4te.cache/output.1 ./autom4te.cache/traces.1 ./autom4te.cache/output.0 ./autom4te.cache/requests
rm -f debian/autoreconf.before debian/autoreconf.after
dh_clean
rm -f debian/abcmidi.substvars
rm -f debian/abcmidi.*.debhelper
rm -rf debian/abcmidi/
rm -f debian/*.debhelper.log
rm -f -- Makefile config.h config.log config.status debian/abcmidi.debhelper.log debian/abcmidi.substvars debian/abcmidi/ debian/files
rm -f debian/files
find . \( \( -type f -a \
\( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
-o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
-o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
-o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
\) -exec rm -f {} + \) -o \
\( -type d -a -name autom4te.cache -prune -exec rm -rf {} + \) \)
rm -f *-stamp
make[1]: Leaving directory `/home/ross/debian/abcmidi'
dh_installdocs
install -g 0 -o 0 -d debian/abcmidi/usr/share/doc/abcmidi
install -g 0 -o 0 -m 644 -p debian/README.Debian debian/abcmidi/usr/share/doc/abcmidi/README.Debian
install -g 0 -o 0 -m 644 -p debian/copyright debian/abcmidi/usr/share/doc/abcmidi/copyright
dh_installchangelogs
install -o 0 -g 0 -p -m644 debian/changelog debian/abcmidi/usr/share/doc/abcmidi/changelog.Debian
dh_installman
install -d debian/abcmidi/usr/share/man/man1/
install -p -m644 debian/abcmatch.1 debian/abcmidi/usr/share/man/man1/abcmatch.1
man --recode UTF-8 ./abcmatch\.1 > abcmatch\.1\.new
chmod 644 abcmatch.1.new
mv -f abcmatch.1.new abcmatch.1
dh_perl
dh_link
dh_compress
cd debian/abcmidi
chmod a-x usr/share/man/man1/abcmatch.1 usr/share/doc/abcmidi/changelog.Debian
gzip -9nf usr/share/man/man1/abcmatch.1 usr/share/doc/abcmidi/changelog.Debian
cd '/home/ross/debian/abcmidi'
dh_fixperms
find debian/abcmidi -print0 2>/dev/null | xargs -0r chown --no-dereference 0:0
find debian/abcmidi ! -type l -print0 2>/dev/null | xargs -0r chmod go=rX,u+rw,a-s
find debian/abcmidi/usr/share/doc -type f ! -regex 'debian/abcmidi/usr/share/doc/[^/]*/examples/.*' -print0 2>/dev/null | xargs -0r chmod 644
find debian/abcmidi/usr/share/doc -type d -print0 2>/dev/null | xargs -0r chmod 755
find debian/abcmidi/usr/share/man debian/abcmidi/usr/man/ debian/abcmidi/usr/X11*/man/ -type f -print0 2>/dev/null | xargs -0r chmod 644
find debian/abcmidi -perm -5 -type f \( -name '*.so.*' -or -name '*.so' -or -name '*.la' -or -name '*.a' \) -print0 2>/dev/null | xargs -0r chmod 644
find debian/abcmidi/usr/include -type f -print0 2>/dev/null | xargs -0r chmod 644
find debian/abcmidi/usr/share/applications -type f -print0 2>/dev/null | xargs -0r chmod 644
find debian/abcmidi -perm -5 -type f \( -name '*.cmxs' \) -print0 2>/dev/null | xargs -0r chmod 644
find debian/abcmidi/usr/lib/perl5 debian/abcmidi/usr/share/perl5 -type f -perm -5 -name '*.pm' -print0 2>/dev/null | xargs -0r chmod a-X
find debian/abcmidi/usr/lib -type f -name '*.ali' -print0 2>/dev/null | xargs -0r chmod uga-w
dh_strip
dh_makeshlibs
rm -f debian/abcmidi/DEBIAN/shlibs
dh_shlibdeps
install -o 0 -g 0 -d debian/abcmidi/DEBIAN
dh_installdeb
dh_gencontrol
echo misc:Depends= >> debian/abcmidi.substvars
dpkg-gencontrol -ldebian/changelog -Tdebian/abcmidi.substvars -Pdebian/abcmidi
dpkg-gencontrol: warning: Depends field of package abcmidi: unknown substitution variable ${shlibs:Depends}
chmod 644 debian/abcmidi/DEBIAN/control
chown 0:0 debian/abcmidi/DEBIAN/control
dh_md5sums
(cd debian/abcmidi >/dev/null ; find . -type f ! -regex './DEBIAN/.*' -printf '%P\0' | LC_ALL=C sort -z | xargs -r0 md5sum > DEBIAN/md5sums) >/dev/null
chmod 644 debian/abcmidi/DEBIAN/md5sums
chown 0:0 debian/abcmidi/DEBIAN/md5sums
dh_builddeb
dpkg-deb --build debian/abcmidi ..
dpkg-deb: building package `abcmidi' in `../abcmidi_20141016-1~3.gbp63b824_amd64.deb'.
dpkg-genchanges >../abcmidi_20141016-1~3.gbp63b824_amd64.changes
dpkg-genchanges: including full source code in upload
dpkg-source --after-build abcmidi
dpkg-source: info: using options from abcmidi/debian/source/local-options: --unapply-patches
dpkg-source: info: unapplying fix_clean_target.patch
dpkg-source: info: unapplying manpages.patch
dpkg-source: info: unapplying hardening.patch
dpkg-buildpackage: full upload (original source is included)
Now running lintian...
W: abcmidi source: newer-standards-version 3.9.6 (current is 3.9.5)
Finished running lintian.
Reply to: