Just patched and ran in my environment. It works, but one of the patch hunks failed: lost@lost-cynic:~/tsocks$ sudo apt-get source tsocks Reading package lists... Done Need to get 87.0 kB of source archives. Get:1 http://us.archive.ubuntu.com/ubuntu xenial/universe tsocks 1.8beta5-9.3 (dsc) [1,455 B] Get:2 http://us.archive.ubuntu.com/ubuntu xenial/universe tsocks 1.8beta5-9.3 (tar) [85.5 kB] Fetched 87.0 kB in 0s (276 kB/s) dpkg-source: info: extracting tsocks in tsocks-1.8beta5 dpkg-source: info: unpacking tsocks_1.8beta5-9.3.tar.gz W: Can't drop privileges for downloading as file 'tsocks_1.8beta5-9.3.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) lost@lost-cynic:~/tsocks/tsocks-1.8beta5$ sudo ./07_init.dpatch -patch patching file tsocks.c Hunk #1 succeeded at 69 (offset -1 lines). Hunk #2 succeeded at 102 (offset -2 lines). Hunk #3 succeeded at 207 (offset -4 lines). Hunk #4 succeeded at 359 with fuzz 1 (offset -13 lines). Hunk #5 succeeded at 543 (offset -15 lines). Hunk #6 succeeded at 699 (offset -15 lines). Hunk #7 FAILED at 756. Hunk #8 succeeded at 1181 (offset -63 lines). 1 out of 8 hunks FAILED -- saving rejects to file tsocks.c.rej Contents of tsocks.c.rej: lost@lost-cynic:~/tsocks/tsocks-1.8beta5$ cat tsocks.c.rej --- tsocks-orig.c 2016-05-02 21:07:58.804224930 +0200 +++ tsocks.c 2016-05-02 21:13:00.399657192 +0200 @@ -756,6 +773,8 @@ struct connreq *conn; int rc; + tsocks_init(); + if (realgetpeername == NULL) { show_msg(MSGERR, "Unresolved symbol: getpeername\n"); return(-1); lost@lost-cynic:~/tsocks/tsocks-1.8beta5$ sudo apt-get build-dep tsocks Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: debhelper dh-strip-nondeterminism libfile-stripnondeterminism-perl po-debconf 0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded. Need to get 988 kB of archives. After this operation, 1,823 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 po-debconf all 1.0.19 [234 kB] Get:2 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libfile-stripnondeterminism-perl all 0.015-1 [10.3 kB] Get:3 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 dh-strip-nondeterminism all 0.015-1 [4,864 B] Get:4 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 debhelper all 9.20160115ubuntu3 [739 kB] Fetched 988 kB in 0s (1,444 kB/s) Selecting previously unselected package po-debconf. (Reading database ... 299037 files and directories currently installed.) Preparing to unpack .../po-debconf_1.0.19_all.deb ... Unpacking po-debconf (1.0.19) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../libfile-stripnondeterminism-perl_0.015-1_all.deb ... Unpacking libfile-stripnondeterminism-perl (0.015-1) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../dh-strip-nondeterminism_0.015-1_all.deb ... Unpacking dh-strip-nondeterminism (0.015-1) ... Selecting previously unselected package debhelper. Preparing to unpack .../debhelper_9.20160115ubuntu3_all.deb ... Unpacking debhelper (9.20160115ubuntu3) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for doc-base (0.10.7) ... Processing 1 added doc-base file... Setting up po-debconf (1.0.19) ... Setting up libfile-stripnondeterminism-perl (0.015-1) ... Setting up dh-strip-nondeterminism (0.015-1) ... Setting up debhelper (9.20160115ubuntu3) ... lost@lost-cynic:~/tsocks/tsocks-1.8beta5$ sudo debuild -us -uc -b dpkg-buildpackage -rfakeroot -D -us -uc -b dpkg-buildpackage: warning: using a gain-root-command while being root dpkg-buildpackage: source package tsocks dpkg-buildpackage: source version 1.8beta5-9.3ubuntu1 dpkg-buildpackage: source distribution UNRELEASED dpkg-buildpackage: source changed by root dpkg-source --before-build tsocks-1.8beta5 dpkg-buildpackage: host architecture amd64 fakeroot debian/rules clean dpatch deapply-all 06_fallback not applied to ./ . 05_config_in_home not applied to ./ . 04_getpeername not applied to ./ . 03_fixloop not applied to ./ . 02_hyphenfix not applied to ./ . 01_symbolexport not applied to ./ . rm -rf patch-stamp patch-stampT debian/patched dh_testdir dh_testroot rm -f build-stamp install-stamp config.status config.guess [ ! -f Makefile ] || /usr/bin/make distclean rm -f `find . -name "*~"` rm -rf debian/tsocks debian/files* core debian/*substvars #-rm -rf debian/plus/tsocks.8* #-rm -rf debian/conffiles dh_clean rm -f debian/debhelper-build-stamp rm -f debian/tsocks.substvars rm -f debian/tsocks.*.debhelper rm -rf debian/tsocks/ 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 {} + \) \) debian/rules build test -d debian/patched || install -d debian/patched dpatch apply-all applying patch 01_symbolexport to ./ ... ok. applying patch 02_hyphenfix to ./ ... ok. applying patch 03_fixloop to ./ ... ok. applying patch 04_getpeername to ./ ... ok. applying patch 05_config_in_home to ./ ... ok. applying patch 06_fallback to ./ ... ok. dpatch cat-all >>patch-stampT mv -f patch-stampT patch-stamp dh_testdir rm -f config.cache config.status .ChangeLog.swp cp /usr/share/misc/config.guess . cp /usr/share/misc/config.sub . ./configure --prefix=/usr \ --libdir=/usr/lib \ --mandir=/usr/share/man \ --with-conf=/etc/tsocks.conf \ --enable-hostnames \ #--enable-socksdns \ creating cache ./config.cache checking host system type... x86_64-pc-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for a BSD compatible install... /usr/bin/install -c checking whether ln -s works... yes checking if the C compiler accepts -Wall... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for dlfcn.h... yes checking for sys/socket.h... yes checking for arpa/inet.h... yes checking for fcntl.h... yes checking for sys/poll.h... yes checking for unistd.h... yes checking for strcspn... yes checking for strdup... yes checking for strerror... yes checking for strspn... yes checking for strtol... yes checking for connect in -lc... yes checking for socket... yes checking for inet_aton... yes checking for gethostbyname... yes checking for dlsym in -ldl... yes checking for RTLD_NEXT from dlfcn.h... no checking for RTLD_NEXT from dlfcn.h with _GNU_SOURCE... yes checking for correct select prototype... select(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout) checking for correct connect prototype... connect(int __fd, const struct sockaddr * __addr, socklen_t __len) checking for correct close prototype... close(int fd) checking for correct getpeername prototype... getpeername(int __fd, struct sockaddr * __name, socklen_t *__namelen) checking for correct poll prototype... poll(struct pollfd *ufds, unsigned long nfds, int timeout) updating cache ./config.cache creating ./config.status creating Makefile creating config.h /usr/bin/make CFLAGS="-O2 -g -Wall -Wl,-soname,libtsocks.so.1" make[1]: Entering directory '/home/lost/tsocks/tsocks-1.8beta5' gcc -fPIC -O2 -g -Wall -Wl,-soname,libtsocks.so.1 -I. -c tsocks.c -o tsocks.o tsocks.c: In function ‘connect’: tsocks.c:230:27: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] (void *) &sock_type, &sock_type_len); ^ In file included from tsocks.c:39:0: /usr/include/x86_64-linux-gnu/sys/socket.h:219:12: note: expected ‘socklen_t * restrict {aka unsigned int * restrict}’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ tsocks.c:286:62: warning: pointer targets in passing argument 3 of ‘getpeername’ differ in signedness [-Wpointer-sign] if (!getpeername(__fd, (struct sockaddr *) &peer_address, &namelen)) { ^ In file included from tsocks.c:39:0: /usr/include/x86_64-linux-gnu/sys/socket.h:141:12: note: expected ‘socklen_t * {aka unsigned int *}’ but argument is of type ‘int *’ extern int getpeername (int __fd, __SOCKADDR_ARG __addr, ^ tsocks.c: In function ‘select’: tsocks.c:369:8: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable] int rc = 0; ^ tsocks.c: In function ‘poll’: tsocks.c:556:8: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable] int rc = 0, i; ^ gcc -fPIC -O2 -g -Wall -Wl,-soname,libtsocks.so.1 -I. -c common.c -o common.o gcc -fPIC -O2 -g -Wall -Wl,-soname,libtsocks.so.1 -I. -c parser.c -o parser.o parser.c: In function ‘handle_path’: parser.c:242:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if (((int) (newserver = (struct serverent *) malloc(sizeof(struct serverent)))) == -1) ^ gcc -fPIC -O2 -g -Wall -Wl,-soname,libtsocks.so.1 -I. -nostdlib -shared -o libtsocks.so.1.8 tsocks.o common.o parser.o -ldl -lc ln -sf libtsocks.so.1.8 libtsocks.so gcc -fPIC -O2 -g -Wall -Wl,-soname,libtsocks.so.1 -I. -static -o saveme saveme.c gcc -fPIC -O2 -g -Wall -Wl,-soname,libtsocks.so.1 -I. -o inspectsocks inspectsocks.c common.o -lc gcc -fPIC -O2 -g -Wall -Wl,-soname,libtsocks.so.1 -I. -o validateconf validateconf.c common.o parser.o -lc make[1]: Leaving directory '/home/lost/tsocks/tsocks-1.8beta5' touch build-stamp fakeroot debian/rules binary dh_testdir dh_testroot dh_clean -k dh_clean: dh_clean -k is deprecated; use dh_prep instead rm -f debian/debhelper-build-stamp rm -f debian/tsocks.substvars rm -f debian/tsocks.*.debhelper rm -rf debian/tsocks/ rm -rf debian/.debhelper/ 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 {} + \) \) dh_installdirs install -d debian/tsocks install -d debian/tsocks/etc /usr/bin/make install prefix=/home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr \ libdir=/home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/lib \ mandir=/home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/share/man make[1]: Entering directory '/home/lost/tsocks/tsocks-1.8beta5' /bin/sh mkinstalldirs "/home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/bin" mkdir /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr mkdir /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/bin /usr/bin/install -c tsocks /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/bin /bin/sh mkinstalldirs "/home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/lib" mkdir /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/lib /usr/bin/install -c libtsocks.so.1.8 /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/lib ln -sf libtsocks.so.1.8 /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/lib/libtsocks.so.1 ln -sf libtsocks.so.1 /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/lib/libtsocks.so /bin/sh mkinstalldirs "/home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/share/man/man1" mkdir /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/share mkdir /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/share/man mkdir /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/share/man/man1 /usr/bin/install -c -m 644 tsocks.1 /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/share/man/man1/ /bin/sh mkinstalldirs "/home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/share/man/man8" mkdir /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/share/man/man8 /usr/bin/install -c -m 644 tsocks.8 /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/share/man/man8/ /bin/sh mkinstalldirs "/home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/share/man/man5" mkdir /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/share/man/man5 /usr/bin/install -c -m 644 tsocks.conf.5 /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/share/man/man5/ make[1]: Leaving directory '/home/lost/tsocks/tsocks-1.8beta5' install -m 600 tsocks.conf.complex.example /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/etc/tsocks.conf install validateconf /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/bin install inspectsocks /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/bin install saveme /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/bin #in the upstream now: #rm -f /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/bin/tsocks install -m 755 /home/lost/tsocks/tsocks-1.8beta5/debian/plus/tsocks /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/bin touch install-stamp dh_testroot dh_testdir dh_undocumented dh_undocumented: This program does nothing and should no longer be used. dh_installdocs install -d debian/tsocks/usr/share/doc/tsocks install -p -m0644 debian/README.debian debian/tsocks/usr/share/doc/tsocks/README.Debian install -p -m0644 debian/copyright debian/tsocks/usr/share/doc/tsocks/copyright #dh_installdebconf #rm -f /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/share/man/man8/tsocks.8 ##in the upstream now: ##sed s:/lib/:/usr/lib/:g /home/lost/tsocks/tsocks-1.8beta5/tsocks.8 > /home/lost/tsocks/tsocks-1.8beta5/debian/plus/tsocks.8 ###dh_compress /home/lost/tsocks/tsocks-1.8beta5/debian/plus/tsocks.8 ###dh_compress /home/lost/tsocks/tsocks-1.8beta5/debian/plus/tsocks.1 #install -o root -g root /home/lost/tsocks/tsocks-1.8beta5/debian/plus/tsocks.8 /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/share/man/man8/ install -o root -g root /home/lost/tsocks/tsocks-1.8beta5/debian/plus/tsocks.1 /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/share/man/man1/ install -o root -g root /home/lost/tsocks/tsocks-1.8beta5/debian/plus/saveme.8 /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/usr/share/man/man8/ dh_installman install -p -m0644 debian/plus/tsocks.1 debian/tsocks/usr/share/man/man1/tsocks.1 install -p -m0644 debian/plus/saveme.8 debian/tsocks/usr/share/man/man8/saveme.8 install -p -m0644 tsocks.8 debian/tsocks/usr/share/man/man8/tsocks.8 install -p -m0644 tsocks.conf.5 debian/tsocks/usr/share/man/man5/tsocks.conf.5 man --recode UTF-8 ./tsocks\.conf\.5 > tsocks\.conf\.5\.new chmod 644 tsocks.conf.5.new mv -f tsocks.conf.5.new tsocks.conf.5 man --recode UTF-8 ./saveme\.8 > saveme\.8\.new chmod 644 saveme.8.new mv -f saveme.8.new saveme.8 man --recode UTF-8 ./tsocks\.8 > tsocks\.8\.new chmod 644 tsocks.8.new mv -f tsocks.8.new tsocks.8 man --recode UTF-8 ./tsocks\.1 > tsocks\.1\.new chmod 644 tsocks.1.new mv -f tsocks.1.new tsocks.1 dh_installchangelogs ChangeLog upstream install -p -m0644 debian/changelog debian/tsocks/usr/share/doc/tsocks/changelog.Debian install -p -m0644 ChangeLog debian/tsocks/usr/share/doc/tsocks/changelog dh_installchangelogs install -p -m0644 debian/changelog debian/tsocks/usr/share/doc/tsocks/changelog.Debian dh_link rm -f debian/tsocks/usr/lib/libtsocks.so.1 ln -sf libtsocks.so.1.8 debian/tsocks/usr/lib/libtsocks.so.1 rm -f debian/tsocks/usr/lib/libtsocks.so ln -sf libtsocks.so.1 debian/tsocks/usr/lib/libtsocks.so dh_strip strip --remove-section=.comment --remove-section=.note --strip-unneeded debian/tsocks/usr/lib/libtsocks.so.1.8 strip --remove-section=.comment --remove-section=.note debian/tsocks/usr/bin/saveme strip --remove-section=.comment --remove-section=.note debian/tsocks/usr/bin/inspectsocks strip --remove-section=.comment --remove-section=.note debian/tsocks/usr/bin/validateconf dh_lintian install -d debian/tsocks/usr/share/lintian/overrides install -p -m0644 debian/tsocks.lintian-overrides debian/tsocks/usr/share/lintian/overrides/tsocks dh_compress cd debian/tsocks chmod a-x usr/share/doc/tsocks/changelog usr/share/doc/tsocks/changelog.Debian usr/share/man/man1/tsocks.1 usr/share/man/man5/tsocks.conf.5 usr/share/man/man8/saveme.8 usr/share/man/man8/tsocks.8 gzip -9nf usr/share/doc/tsocks/changelog usr/share/doc/tsocks/changelog.Debian usr/share/man/man1/tsocks.1 usr/share/man/man5/tsocks.conf.5 usr/share/man/man8/saveme.8 usr/share/man/man8/tsocks.8 cd '/home/lost/tsocks/tsocks-1.8beta5' dh_fixperms find debian/tsocks -print0 2>/dev/null | xargs -0r chown --no-dereference 0:0 find debian/tsocks ! -type l -print0 2>/dev/null | xargs -0r chmod go=rX,u+rw,a-s find debian/tsocks/usr/share/doc -type f ! -regex 'debian/tsocks/usr/share/doc/[^/]*/examples/.*' -print0 2>/dev/null | xargs -0r chmod 0644 find debian/tsocks/usr/share/doc -type d -print0 2>/dev/null | xargs -0r chmod 0755 find debian/tsocks/usr/share/man debian/tsocks/usr/man/ debian/tsocks/usr/X11*/man/ -type f -print0 2>/dev/null | xargs -0r chmod 0644 find debian/tsocks/usr/include -type f -print0 2>/dev/null | xargs -0r chmod 0644 find debian/tsocks/usr/share/applications -type f -print0 2>/dev/null | xargs -0r chmod 0644 find debian/tsocks/usr/lib/x86_64-linux-gnu/perl5/5.22 debian/tsocks/usr/share/perl5 -type f -perm -5 -name '*.pm' -print0 2>/dev/null | xargs -0r chmod a-X find debian/tsocks -perm -5 -type f \( -name '*.so.*' -o -name '*.so' -o -name '*.la' -o -name '*.a' -o -name '*.js' -o -name '*.css' -o -name '*.jpeg' -o -name '*.jpg' -o -name '*.png' -o -name '*.gif' -o -name '*.cmxs' \) -print0 2>/dev/null | xargs -0r chmod 0644 find debian/tsocks/usr/bin -type f -print0 2>/dev/null | xargs -0r chmod a+x find debian/tsocks/usr/lib -type f -name '*.ali' -print0 2>/dev/null | xargs -0r chmod uga-w find debian/tsocks/usr/share/lintian/overrides -type f -print0 2>/dev/null | xargs -0r chmod 0644 dh_makeshlibs rm -f debian/tsocks/DEBIAN/shlibs install -d debian/tsocks/DEBIAN echo 'libtsocks 1 tsocks' >>debian/tsocks/DEBIAN/shlibs install -d debian/.debhelper/generated/tsocks mv -f debian/.debhelper/generated/tsocks/triggers.new debian/.debhelper/generated/tsocks/triggers chmod 0644 debian/tsocks/DEBIAN/shlibs chown 0:0 debian/tsocks/DEBIAN/shlibs ./debian/util/write-built-using #create conffiles automagically: #find /home/lost/tsocks/tsocks-1.8beta5/debian/tsocks/etc -type f|sed s:/home/lost/tsocks/tsocks-1.8beta5/debian/tsocks:: >/home/lost/tsocks/tsocks-1.8beta5/debian/conffiles dh_installdeb install -p -m0644 debian/.debhelper/generated/tsocks/triggers debian/tsocks/DEBIAN/triggers find debian/tsocks/etc -type f -printf '/etc/%P ' | LC_ALL=C sort >> debian/tsocks/DEBIAN/conffiles chmod 0644 debian/tsocks/DEBIAN/conffiles dh_shlibdeps dpkg-shlibdeps -Tdebian/tsocks.substvars debian/tsocks/usr/bin/inspectsocks debian/tsocks/usr/bin/validateconf debian/tsocks/usr/lib/libtsocks.so.1.8 dh_gencontrol echo misc:Depends= >> debian/tsocks.substvars echo misc:Pre-Depends= >> debian/tsocks.substvars dpkg-gencontrol -ptsocks -ldebian/changelog -Tdebian/tsocks.substvars -Pdebian/tsocks chmod 0644 debian/tsocks/DEBIAN/control chown 0:0 debian/tsocks/DEBIAN/control dh_md5sums (cd debian/tsocks >/dev/null ; find . -type f ! -path "./etc/tsocks.conf" ! -regex './DEBIAN/.*' -printf '%P\0' | LC_ALL=C sort -z | xargs -r0 md5sum > DEBIAN/md5sums) >/dev/null chmod 0644 debian/tsocks/DEBIAN/md5sums chown 0:0 debian/tsocks/DEBIAN/md5sums dh_builddeb dpkg-deb --build debian/tsocks .. dpkg-deb: building package 'tsocks' in '../tsocks_1.8beta5-9.3ubuntu1_amd64.deb'. dpkg-genchanges -b >../tsocks_1.8beta5-9.3ubuntu1_amd64.changes dpkg-genchanges: binary-only upload (no source code included) dpkg-source --after-build tsocks-1.8beta5 dpkg-buildpackage: binary-only upload (no source included) Now running lintian... warning: the authors of lintian do not recommend running it with root privileges! E: tsocks changes: changed-by-address-is-root-user root E: tsocks changes: changed-by-address-malformed root E: tsocks changes: changed-by-address-is-root-user root W: tsocks: package-name-doesnt-match-sonames libtsocks1 E: tsocks: debian-changelog-file-contains-invalid-email-address root@lost-cynic E: tsocks: changelog-empty-entry W: tsocks: copyright-refers-to-versionless-license-file usr/share/common-licenses/GPL W: tsocks: manpage-has-errors-from-man usr/share/man/man5/tsocks.conf.5.gz 25: warning: macro `paths'' not defined W: tsocks: binary-without-manpage usr/bin/inspectsocks W: tsocks: binary-without-manpage usr/bin/validateconf W: tsocks: non-dev-pkg-with-shlib-symlink usr/lib/libtsocks.so.1.8 usr/lib/libtsocks.so N: 1 tag overridden (1 error) Finished running lintian. lost@lost-cynic:~/tsocks/tsocks-1.8beta5$ sudo dpkg -i ../tsocks_1.8beta5-9.3ubuntu1_amd64.deb (Reading database ... 299533 files and directories currently installed.) Preparing to unpack .../tsocks_1.8beta5-9.3ubuntu1_amd64.deb ... Unpacking tsocks (1.8beta5-9.3ubuntu1) over (1.8beta5-9.3) ... Setting up tsocks (1.8beta5-9.3ubuntu1) ... Processing triggers for libc-bin (2.23-0ubuntu3) ... Processing triggers for man-db (2.7.5-1) ... lost@lost-cynic:~/tsocks/tsocks-1.8beta5$