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

Need help to fix hardening-no-relro and hardening-no-relro



I'm getting harderning issue on packaging xmbmon.
I already looked at https://wiki.debian.org/Hardening, but no success.
I uploaded the source to mentors[1], and the attachment is the build log.

[1] http://mentors.debian.net/debian/pool/main/x/xmbmon/xmbmon_2.05-8.dsc

--
contatos:
Celular: ( 99 ) 9143-5954 - Vivo
skype: lucasd3castro
msn: lucascastroborges@hotmail.com
 dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package xmbmon
dpkg-buildpackage: source version 2.05-8
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Lucas de Castro Borges <lucascastroborges@gmail.com>
 dpkg-source --before-build xmbmon-2.05
dpkg-buildpackage: host architecture amd64
dpkg-source: info: applying fix_manpage_errors.patch
dpkg-source: info: applying fix_manpage_typos.patch
dpkg-source: info: applying restart_without_wait.patch
dpkg-source: info: applying manpage_read_mbmon-rrd.patch
dpkg-source: info: applying replace_mbmon-rrd.patch
dpkg-source: info: applying changed-readme_binaryname.patch
dpkg-source: info: applying changes_for_debian-makefile.patch
dpkg-source: info: applying fix_makefile_install.patch
dpkg-source: info: applying fix-autoreconf_missing_template.patch
dpkg-source: info: applying autotools-update.patch
 fakeroot debian/rules clean
dh clean --with autoreconf
   dh_testdir
   dh_auto_clean
	make -j1 distclean
make[1]: Entering directory '/QA/pkg-xmbmon/xmbmon-2.05'
rm -f *.o *.bak a.out core *.core *~ mbmon xmbmon testpci testsmb testhwm testfan mbmon_small
rm -f Makefile config.cache config.log config.h config.status
make[1]: Leaving directory '/QA/pkg-xmbmon/xmbmon-2.05'
   dh_autoreconf_clean
	rm -f -- ./config.h.in ./autom4te.cache/requests ./autom4te.cache/traces.1 ./autom4te.cache/output.0 ./autom4te.cache/output.1 ./autom4te.cache/traces.0 ./configure
	rm -f debian/autoreconf.before debian/autoreconf.after
   dh_clean
	rm -f debian/xmbmon.substvars
	rm -f debian/xmbmon.*.debhelper
	rm -rf debian/xmbmon/
	rm -f debian/mbmon.substvars
	rm -f debian/mbmon.*.debhelper
	rm -rf debian/mbmon/
	rm -rf debian/.debhelper/
	rm -f debian/*.debhelper.log
	rm -f debian/files
	find .  \( \( \
		\( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS \) -prune -o -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 -rf debian/tmp
	rm -f *-stamp
 dpkg-source -b xmbmon-2.05
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building xmbmon using existing ./xmbmon_2.05.orig.tar.gz
dpkg-source: warning: ignoring deletion of file config.h.in, use --include-removal to override
dpkg-source: warning: ignoring deletion of file configure, use --include-removal to override
dpkg-source: info: building xmbmon in xmbmon_2.05-8.debian.tar.xz
dpkg-source: info: building xmbmon in xmbmon_2.05-8.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
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
	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 --disable-silent-rules --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-silent-rules, --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 how to run the C preprocessor... gcc -E
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for socket in -lsocket... no
checking for fabs in -lm... 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 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 fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking machine/smb.h usability... no
checking machine/smb.h presence... no
checking for machine/smb.h... no
checking whether gcc needs -traditional... no
checking for strftime... yes
checking return type of signal handlers... void
checking for gethostname... yes
checking for getutent... yes
checking for socket... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
configure: WARNING: unrecognized options: --disable-silent-rules, --disable-maintainer-mode, --disable-dependency-tracking
   dh_auto_build
	make -j1
make[1]: Entering directory '/QA/pkg-xmbmon/xmbmon-2.05'
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX getMBinfo.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX tyan_tiger.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX pci_pm.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX sensors.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX getMB-via.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX getMB-smb.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX getMB-isa.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX smbuses.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX smbus_piix4.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX smbus_amd.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX smbus_ali.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX smbus_amd8.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX sens_winbond.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX sens_via686.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX sens_it87.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX sens_gl52.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX sens_lm85.c
sens_lm85.c: In function ‘lm85_fanrpm’:
sens_lm85.c:288:13: warning: variable ‘ppr’ set but not used [-Wunused-but-set-variable]
  static int ppr[4] = {2,2,2,2}, div[2] = {1,1};
             ^
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX sens_lm80.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX sens_lm90.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX sens_lm75.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX sens_wl784.c
gcc -c -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX smb_extemp.c
smb_extemp.c: In function ‘smb_ExtraTemp’:
smb_extemp.c:47:17: warning: variable ‘offset’ set but not used [-Wunused-but-set-variable]
  float f = 0.0, offset = 0.0;
                 ^
gcc -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX -s -o mbmon mbmon.c getMBinfo.o tyan_tiger.o pci_pm.o sensors.o getMB-via.o getMB-smb.o getMB-isa.o smbuses.o smbus_piix4.o smbus_amd.o smbus_ali.o smbus_amd8.o sens_winbond.o sens_via686.o sens_it87.o sens_gl52.o sens_lm85.o sens_lm80.o sens_lm90.o sens_lm75.o sens_wl784.o smb_extemp.o -lm 
mbmon.c: In function ‘main’:
mbmon.c:505:48: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness [-Wpointer-sign]
   c = accept (fd, (struct sockaddr *) &client, &len);
                                                ^
In file included from /usr/include/netinet/in.h:23:0,
                 from /usr/include/netdb.h:27,
                 from mbmon.c:28:
/usr/include/x86_64-linux-gnu/sys/socket.h:243:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’
 extern int accept (int __fd, __SOCKADDR_ARG __addr,
            ^
mbmon.c:292:8: warning: variable ‘name’ set but not used [-Wunused-but-set-variable]
  char *name;
        ^
gcc -O3 -I. -DHAVE_CONFIG_H -Wall -DLINUX  -s -o xmbmon xmbmon.c getMBinfo.o tyan_tiger.o pci_pm.o sensors.o getMB-via.o getMB-smb.o getMB-isa.o smbuses.o smbus_piix4.o smbus_amd.o smbus_ali.o smbus_amd8.o sens_winbond.o sens_via686.o sens_it87.o sens_gl52.o sens_lm85.o sens_lm80.o sens_lm90.o sens_lm75.o sens_wl784.o smb_extemp.o -lm   -lXt  -lSM -lICE -lX11 
xmbmon.c: In function ‘chk_notemp’:
xmbmon.c:367:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  if (*p == (char) NULL)
            ^
xmbmon.c:371:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  for (t = dum; *t != (char) NULL; t++)
                      ^
xmbmon.c: In function ‘repaint_proc’:
xmbmon.c:624:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  if(*label != (char) NULL)
               ^
xmbmon.c: In function ‘init_dt’:
xmbmon.c:746:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  if(*label != (char) NULL) {
               ^
xmbmon.c:808:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  if(*label != (char) NULL) {
               ^
make[1]: Leaving directory '/QA/pkg-xmbmon/xmbmon-2.05'
   dh_auto_test
 fakeroot debian/rules binary
dh binary --with autoreconf
   dh_testroot
   dh_prep
	rm -f debian/xmbmon.substvars
	rm -f debian/xmbmon.*.debhelper
	rm -rf debian/xmbmon/
	rm -f debian/mbmon.substvars
	rm -f debian/mbmon.*.debhelper
	rm -rf debian/mbmon/
   dh_installdirs
	install -d debian/xmbmon
	install -d debian/xmbmon/usr/bin
	install -d debian/mbmon
	install -d debian/mbmon/usr/bin debian/mbmon/usr/share/mbmon
   dh_auto_install
	make -j1 install DESTDIR=/QA/pkg-xmbmon/xmbmon-2.05/debian/tmp AM_UPDATE_INFO_DIR=no
make[1]: Entering directory '/QA/pkg-xmbmon/xmbmon-2.05'
install -D -o root -g adm -m 4555 -c -p mbmon /QA/pkg-xmbmon/xmbmon-2.05/debian/tmp/usr/bin/mbmon
install -D -o root -g adm -m 4555 -c -p xmbmon /QA/pkg-xmbmon/xmbmon-2.05/debian/tmp/usr/bin/xmbmon
make[1]: Leaving directory '/QA/pkg-xmbmon/xmbmon-2.05'
   dh_install
	cp --reflink=auto -a debian/tmp/usr/bin/xmbmon debian/xmbmon//usr/bin/
	cp --reflink=auto -a debian/tmp/usr/bin/mbmon debian/mbmon//usr/bin/
	install -d debian/mbmon/usr/share/mbmon/mbmon-rrd
	cp --reflink=auto -a ./mbmon-rrd.pl debian/mbmon/usr/share/mbmon/mbmon-rrd/
   dh_installdocs
	install -d debian/xmbmon/usr/share/doc/xmbmon
	cp --reflink=auto -a ReadMe debian/xmbmon/usr/share/doc/xmbmon
	cp --reflink=auto -a ReadMe.jp debian/xmbmon/usr/share/doc/xmbmon
	cp --reflink=auto -a ReadMe.tech debian/xmbmon/usr/share/doc/xmbmon
	chown -R 0:0 debian/xmbmon/usr/share/doc
	chmod -R go=rX debian/xmbmon/usr/share/doc
	chmod -R u\+rw debian/xmbmon/usr/share/doc
	install -p -m0644 debian/copyright debian/xmbmon/usr/share/doc/xmbmon/copyright
	install -d debian/mbmon/usr/share/doc/mbmon
	cp --reflink=auto -a ReadMe debian/mbmon/usr/share/doc/mbmon
	cp --reflink=auto -a ReadMe.jp debian/mbmon/usr/share/doc/mbmon
	cp --reflink=auto -a ReadMe.tech debian/mbmon/usr/share/doc/mbmon
	chown -R 0:0 debian/mbmon/usr/share/doc
	chmod -R go=rX debian/mbmon/usr/share/doc
	chmod -R u\+rw debian/mbmon/usr/share/doc
	install -p -m0644 debian/copyright debian/mbmon/usr/share/doc/mbmon/copyright
   dh_installchangelogs
	install -p -m0644 debian/changelog debian/xmbmon/usr/share/doc/xmbmon/changelog.Debian
	install -p -m0644 ./ChangeLog debian/xmbmon/usr/share/doc/xmbmon/changelog
	install -p -m0644 debian/changelog debian/mbmon/usr/share/doc/mbmon/changelog.Debian
	install -p -m0644 ./ChangeLog debian/mbmon/usr/share/doc/mbmon/changelog
   dh_installman
	install -d debian/xmbmon/usr/share/man/man1/
	install -p -m0644 xmbmon.1x debian/xmbmon/usr/share/man/man1/xmbmon.1x
	install -d debian/xmbmon/usr/share/man/fr/man1/
	install -p -m0644 debian/xmbmon.fr.1x debian/xmbmon/usr/share/man/fr/man1/xmbmon.1
	man --recode UTF-8 ./xmbmon\.1 > xmbmon\.1\.new
	chmod 644 xmbmon.1.new
	mv -f xmbmon.1.new xmbmon.1
	man --recode UTF-8 ./xmbmon\.1x > xmbmon\.1x\.new
	chmod 644 xmbmon.1x.new
	mv -f xmbmon.1x.new xmbmon.1x
	install -d debian/mbmon/usr/share/man/man1/
	install -p -m0644 mbmon.1 debian/mbmon/usr/share/man/man1/mbmon.1
	install -p -m0644 mbmon-rrd.1 debian/mbmon/usr/share/man/man1/mbmon-rrd.1
	install -d debian/mbmon/usr/share/man/fr/man1/
	install -p -m0644 debian/mbmon.fr.1 debian/mbmon/usr/share/man/fr/man1/mbmon.1
	install -p -m0644 debian/mbmon-rrd.fr.1 debian/mbmon/usr/share/man/fr/man1/mbmon-rrd.1
	man --recode UTF-8 ./mbmon\.1 > mbmon\.1\.new
	chmod 644 mbmon.1.new
	mv -f mbmon.1.new mbmon.1
	man --recode UTF-8 ./mbmon\-rrd\.1 > mbmon\-rrd\.1\.new
	chmod 644 mbmon-rrd.1.new
	mv -f mbmon-rrd.1.new mbmon-rrd.1
	man --recode UTF-8 ./mbmon\.1 > mbmon\.1\.new
	chmod 644 mbmon.1.new
	mv -f mbmon.1.new mbmon.1
	man --recode UTF-8 ./mbmon\-rrd\.1 > mbmon\-rrd\.1\.new
	chmod 644 mbmon-rrd.1.new
	mv -f mbmon-rrd.1.new mbmon-rrd.1
   dh_installinit
	install -d debian/mbmon/etc/default
	install -p -m0644 debian/mbmon.default debian/mbmon/etc/default/mbmon
	install -d debian/mbmon/etc/init.d
	install -p -m0755 debian/mbmon.init.d debian/mbmon/etc/init.d/mbmon
	echo "# Automatically added by dh_installinit">> debian/mbmon.postinst.debhelper
	sed "s/#SCRIPT#/mbmon/;s/#INITPARMS#/defaults/;s/#ERROR_HANDLER#/exit \$?/" /usr/share/debhelper/autoscripts/postinst-init >> debian/mbmon.postinst.debhelper
	echo '# End automatically added section' >> debian/mbmon.postinst.debhelper
	echo "# Automatically added by dh_installinit">> debian/mbmon.prerm.debhelper
	sed "s/#SCRIPT#/mbmon/;s/#INITPARMS#/defaults/;s/#ERROR_HANDLER#/exit \$?/" /usr/share/debhelper/autoscripts/prerm-init >> debian/mbmon.prerm.debhelper
	echo '# End automatically added section' >> debian/mbmon.prerm.debhelper
	echo "# Automatically added by dh_installinit">> debian/mbmon.postrm.debhelper
	sed "s/#SCRIPT#/mbmon/;s/#INITPARMS#/defaults/;s/#ERROR_HANDLER#/exit \$?/" /usr/share/debhelper/autoscripts/postrm-init >> debian/mbmon.postrm.debhelper
	echo '# End automatically added section' >> debian/mbmon.postrm.debhelper
   dh_installmenu
	install -d debian/xmbmon/usr/share/menu
	install -p -m0644 debian/xmbmon.menu debian/xmbmon/usr/share/menu/xmbmon
	echo "# Automatically added by dh_installmenu">> debian/xmbmon.postinst.debhelper
	sed "" /usr/share/debhelper/autoscripts/postinst-menu >> debian/xmbmon.postinst.debhelper
	echo '# End automatically added section' >> debian/xmbmon.postinst.debhelper
	echo "# Automatically added by dh_installmenu">> debian/xmbmon.postrm.debhelper
	sed "" /usr/share/debhelper/autoscripts/postrm-menu >> debian/xmbmon.postrm.debhelper
	echo '# End automatically added section' >> debian/xmbmon.postrm.debhelper
   dh_perl
	(grep -s -v perl:Depends debian/mbmon.substvars; echo perl:Depends=perl) > debian/mbmon.substvars.new
	mv debian/mbmon.substvars.new debian/mbmon.substvars
   dh_link
	rm -f debian/mbmon/usr/bin/mbmon-rrd
	ln -sf ../share/mbmon/mbmon-rrd/mbmon-rrd.pl debian/mbmon/usr/bin/mbmon-rrd
   dh_compress
	cd debian/xmbmon
	chmod a-x usr/share/man/fr/man1/xmbmon.1 usr/share/man/man1/xmbmon.1x usr/share/doc/xmbmon/changelog usr/share/doc/xmbmon/ReadMe usr/share/doc/xmbmon/changelog.Debian usr/share/doc/xmbmon/ReadMe.jp usr/share/doc/xmbmon/ReadMe.tech
	gzip -9nf usr/share/man/fr/man1/xmbmon.1 usr/share/man/man1/xmbmon.1x usr/share/doc/xmbmon/changelog usr/share/doc/xmbmon/ReadMe usr/share/doc/xmbmon/changelog.Debian usr/share/doc/xmbmon/ReadMe.jp usr/share/doc/xmbmon/ReadMe.tech
	cd '/QA/pkg-xmbmon/xmbmon-2.05'
	cd debian/mbmon
	chmod a-x usr/share/man/fr/man1/mbmon.1 usr/share/man/fr/man1/mbmon-rrd.1 usr/share/man/man1/mbmon.1 usr/share/man/man1/mbmon-rrd.1 usr/share/doc/mbmon/changelog usr/share/doc/mbmon/ReadMe usr/share/doc/mbmon/changelog.Debian usr/share/doc/mbmon/ReadMe.jp usr/share/doc/mbmon/ReadMe.tech
	gzip -9nf usr/share/man/fr/man1/mbmon.1 usr/share/man/fr/man1/mbmon-rrd.1 usr/share/man/man1/mbmon.1 usr/share/man/man1/mbmon-rrd.1 usr/share/doc/mbmon/changelog usr/share/doc/mbmon/ReadMe usr/share/doc/mbmon/changelog.Debian usr/share/doc/mbmon/ReadMe.jp usr/share/doc/mbmon/ReadMe.tech
	cd '/QA/pkg-xmbmon/xmbmon-2.05'
   dh_fixperms
	find debian/xmbmon  -print0 2>/dev/null | xargs -0r chown --no-dereference 0:0
	find debian/xmbmon ! -type l  -print0 2>/dev/null | xargs -0r chmod go=rX,u+rw,a-s
	find debian/xmbmon/usr/share/doc -type f  ! -regex 'debian/xmbmon/usr/share/doc/[^/]*/examples/.*' -print0 2>/dev/null | xargs -0r chmod 0644
	find debian/xmbmon/usr/share/doc -type d  -print0 2>/dev/null | xargs -0r chmod 0755
	find debian/xmbmon/usr/share/man debian/xmbmon/usr/man/ debian/xmbmon/usr/X11*/man/ -type f  -print0 2>/dev/null | xargs -0r chmod 0644
	find debian/xmbmon -perm -5 -type f \( -name '*.so.*' -or -name '*.so' -or -name '*.la' -or -name '*.a' \)  -print0 2>/dev/null | xargs -0r chmod 0644
	find debian/xmbmon/usr/include -type f  -print0 2>/dev/null | xargs -0r chmod 0644
	find debian/xmbmon/usr/share/applications -type f  -print0 2>/dev/null | xargs -0r chmod 0644
	find debian/xmbmon -perm -5 -type f \( -name '*.cmxs' \)  -print0 2>/dev/null | xargs -0r chmod 0644
	find debian/xmbmon/usr/lib/x86_64-linux-gnu/perl5/5.20 debian/xmbmon/usr/share/perl5 -type f -perm -5 -name '*.pm'  -print0 2>/dev/null | xargs -0r chmod a-X
	find debian/xmbmon/usr/bin -type f  -print0 2>/dev/null | xargs -0r chmod a+x
	find debian/xmbmon/usr/lib -type f -name '*.ali'  -print0 2>/dev/null | xargs -0r chmod uga-w
	find debian/mbmon  -print0 2>/dev/null | xargs -0r chown --no-dereference 0:0
	find debian/mbmon ! -type l  -print0 2>/dev/null | xargs -0r chmod go=rX,u+rw,a-s
	find debian/mbmon/usr/share/doc -type f  ! -regex 'debian/mbmon/usr/share/doc/[^/]*/examples/.*' -print0 2>/dev/null | xargs -0r chmod 0644
	find debian/mbmon/usr/share/doc -type d  -print0 2>/dev/null | xargs -0r chmod 0755
	find debian/mbmon/usr/share/man debian/mbmon/usr/man/ debian/mbmon/usr/X11*/man/ -type f  -print0 2>/dev/null | xargs -0r chmod 0644
	find debian/mbmon -perm -5 -type f \( -name '*.so.*' -or -name '*.so' -or -name '*.la' -or -name '*.a' \)  -print0 2>/dev/null | xargs -0r chmod 0644
	find debian/mbmon/usr/include -type f  -print0 2>/dev/null | xargs -0r chmod 0644
	find debian/mbmon/usr/share/applications -type f  -print0 2>/dev/null | xargs -0r chmod 0644
	find debian/mbmon -perm -5 -type f \( -name '*.cmxs' \)  -print0 2>/dev/null | xargs -0r chmod 0644
	find debian/mbmon/usr/lib/x86_64-linux-gnu/perl5/5.20 debian/mbmon/usr/share/perl5 -type f -perm -5 -name '*.pm'  -print0 2>/dev/null | xargs -0r chmod a-X
	find debian/mbmon/usr/bin -type f  -print0 2>/dev/null | xargs -0r chmod a+x
	find debian/mbmon/etc/init.d -type f  -print0 2>/dev/null | xargs -0r chmod a+x
	find debian/mbmon/usr/lib -type f -name '*.ali'  -print0 2>/dev/null | xargs -0r chmod uga-w
   dh_strip
	strip --remove-section=.comment --remove-section=.note debian/xmbmon/usr/bin/xmbmon
	strip --remove-section=.comment --remove-section=.note debian/mbmon/usr/bin/mbmon
   dh_makeshlibs
	rm -f debian/xmbmon/DEBIAN/shlibs
	rm -f debian/mbmon/DEBIAN/shlibs
   dh_shlibdeps
	install -d debian/xmbmon/DEBIAN
	dpkg-shlibdeps -Tdebian/xmbmon.substvars debian/xmbmon/usr/bin/xmbmon
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/xmbmon/usr/bin/xmbmon was not linked against libm.so.6 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/xmbmon/usr/bin/xmbmon was not linked against libICE.so.6 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/xmbmon/usr/bin/xmbmon was not linked against libSM.so.6 (it uses none of the library's symbols)
	install -d debian/mbmon/DEBIAN
	dpkg-shlibdeps -Tdebian/mbmon.substvars debian/mbmon/usr/bin/mbmon
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/mbmon/usr/bin/mbmon was not linked against libm.so.6 (it uses none of the library's symbols)
   dh_installdeb
	printf '#!/bin/sh
set -e
' > debian/xmbmon/DEBIAN/postinst
	cat debian/xmbmon.postinst.debhelper >> debian/xmbmon/DEBIAN/postinst
	chown 0:0 debian/xmbmon/DEBIAN/postinst
	chmod 0755 debian/xmbmon/DEBIAN/postinst
	printf '#!/bin/sh
set -e
' > debian/xmbmon/DEBIAN/postrm
	cat debian/xmbmon.postrm.debhelper >> debian/xmbmon/DEBIAN/postrm
	chown 0:0 debian/xmbmon/DEBIAN/postrm
	chmod 0755 debian/xmbmon/DEBIAN/postrm
	printf '#!/bin/sh
set -e
' > debian/mbmon/DEBIAN/postinst
	cat debian/mbmon.postinst.debhelper >> debian/mbmon/DEBIAN/postinst
	chown 0:0 debian/mbmon/DEBIAN/postinst
	chmod 0755 debian/mbmon/DEBIAN/postinst
	printf '#!/bin/sh
set -e
' > debian/mbmon/DEBIAN/prerm
	cat debian/mbmon.prerm.debhelper >> debian/mbmon/DEBIAN/prerm
	chown 0:0 debian/mbmon/DEBIAN/prerm
	chmod 0755 debian/mbmon/DEBIAN/prerm
	printf '#!/bin/sh
set -e
' > debian/mbmon/DEBIAN/postrm
	cat debian/mbmon.postrm.debhelper >> debian/mbmon/DEBIAN/postrm
	chown 0:0 debian/mbmon/DEBIAN/postrm
	chmod 0755 debian/mbmon/DEBIAN/postrm
	find debian/mbmon/etc -type f -printf '/etc/%P
' | LC_ALL=C sort >> debian/mbmon/DEBIAN/conffiles
	chmod 0644 debian/mbmon/DEBIAN/conffiles
   dh_gencontrol
	echo misc:Depends= >> debian/xmbmon.substvars
	echo misc:Pre-Depends= >> debian/xmbmon.substvars
	dpkg-gencontrol -pxmbmon -ldebian/changelog -Tdebian/xmbmon.substvars -Pdebian/xmbmon
	chmod 0644 debian/xmbmon/DEBIAN/control
	chown 0:0 debian/xmbmon/DEBIAN/control
	echo misc:Depends= >> debian/mbmon.substvars
	echo misc:Pre-Depends= >> debian/mbmon.substvars
	dpkg-gencontrol -pmbmon -ldebian/changelog -Tdebian/mbmon.substvars -Pdebian/mbmon
dpkg-gencontrol: warning: package mbmon: unused substitution variable ${perl:Depends}
	chmod 0644 debian/mbmon/DEBIAN/control
	chown 0:0 debian/mbmon/DEBIAN/control
   dh_md5sums
	(cd debian/xmbmon >/dev/null ; find . -type f  ! -regex './DEBIAN/.*' -printf '%P\0' | LC_ALL=C sort -z | xargs -r0 md5sum > DEBIAN/md5sums) >/dev/null
	chmod 0644 debian/xmbmon/DEBIAN/md5sums
	chown 0:0 debian/xmbmon/DEBIAN/md5sums
	(cd debian/mbmon >/dev/null ; find . -type f ! -path "./etc/default/mbmon" ! -path "./etc/init.d/mbmon"  ! -regex './DEBIAN/.*' -printf '%P\0' | LC_ALL=C sort -z | xargs -r0 md5sum > DEBIAN/md5sums) >/dev/null
	chmod 0644 debian/mbmon/DEBIAN/md5sums
	chown 0:0 debian/mbmon/DEBIAN/md5sums
   dh_builddeb
	dpkg-deb --build debian/xmbmon ..
dpkg-deb: construindo pacote 'xmbmon' em '../xmbmon_2.05-8_amd64.deb'.
	dpkg-deb --build debian/mbmon ..
dpkg-deb: construindo pacote 'mbmon' em '../mbmon_2.05-8_amd64.deb'.
 dpkg-genchanges  >../xmbmon_2.05-8_amd64.changes
dpkg-genchanges: not including original source code in upload
 dpkg-source --after-build xmbmon-2.05
dpkg-source: info: unapplying autotools-update.patch
dpkg-source: info: unapplying fix-autoreconf_missing_template.patch
dpkg-source: info: unapplying fix_makefile_install.patch
dpkg-source: info: unapplying changes_for_debian-makefile.patch
dpkg-source: info: unapplying changed-readme_binaryname.patch
dpkg-source: info: unapplying replace_mbmon-rrd.patch
dpkg-source: info: unapplying manpage_read_mbmon-rrd.patch
dpkg-source: info: unapplying restart_without_wait.patch
dpkg-source: info: unapplying fix_manpage_typos.patch
dpkg-source: info: unapplying fix_manpage_errors.patch
dpkg-buildpackage: binary and diff upload (original source NOT included)
Now running lintian...
warning: the authors of lintian do not recommend running it with root privileges!
P: xmbmon source: debian-watch-may-check-gpg-signature
W: mbmon: hardening-no-relro usr/bin/mbmon
I: mbmon: hardening-no-fortify-functions usr/bin/mbmon
I: mbmon: init.d-script-does-not-implement-optional-option etc/init.d/mbmon status
W: xmbmon: hardening-no-relro usr/bin/xmbmon
I: xmbmon: hardening-no-fortify-functions usr/bin/xmbmon
Finished running lintian.
Now signing changes and any dsc files...
 signfile xmbmon_2.05-8.dsc E038E3E8

Reply to: