From 1689692cb2356b2c1b878d4667903b813a7f124b Mon Sep 17 00:00:00 2001 From: Dmitry Mikushin Date: Fri, 3 Sep 2021 22:39:08 +0200 Subject: [PATCH 1/2] Scripting very basic debian package creation in makedeb.sh --- debian/changelog.in | 521 +++++++++++++++++++++++++ debian/clean | 2 + debian/compat | 1 + debian/control | 40 ++ debian/copyright | 211 ++++++++++ debian/fakechroot.docs | 2 + debian/fakechroot.examples | 6 + debian/fakechroot.install | 4 + debian/fakechroot.lintian-overrides | 1 + debian/gbp.conf | 4 + debian/libfakechroot.dirs | 1 + debian/libfakechroot.install | 1 + debian/libfakechroot.lintian-overrides | 3 + debian/libfakechroot.triggers | 1 + debian/rules | 28 ++ debian/source/format | 1 + debian/watch | 2 + fakechroot.dsc.in | 24 ++ makedeb.sh | 60 +++ 19 files changed, 913 insertions(+) create mode 100644 debian/changelog.in create mode 100644 debian/clean create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/fakechroot.docs create mode 100644 debian/fakechroot.examples create mode 100644 debian/fakechroot.install create mode 100644 debian/fakechroot.lintian-overrides create mode 100644 debian/gbp.conf create mode 100644 debian/libfakechroot.dirs create mode 100644 debian/libfakechroot.install create mode 100644 debian/libfakechroot.lintian-overrides create mode 100644 debian/libfakechroot.triggers create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch create mode 100644 fakechroot.dsc.in create mode 100755 makedeb.sh diff --git a/debian/changelog.in b/debian/changelog.in new file mode 100644 index 00000000..31ff6375 --- /dev/null +++ b/debian/changelog.in @@ -0,0 +1,521 @@ +fakechroot (2.19-3) unstable; urgency=high + + * Correct autoconf variables for configure. The paths should be + compatible with non-symlinked /bin directory. Closes: #846270. + + -- Piotr Roszatycki Tue, 29 Nov 2016 21:05:31 +0100 + +fakechroot (2.19-2) unstable; urgency=medium + + * Hardcode paths to prevent some subtle errors when environment is changed. + + -- Piotr Roszatycki Sun, 20 Nov 2016 23:53:04 +0100 + +fakechroot (2.19-1) unstable; urgency=medium + + * New upstream version 2.19: + - Prevent escaping fake chroot. Closes: #742072. + - Can do chroot twice. Closes: #741965. + - Variable FAKECHROOT_EXCLUDE_PATH can contain 100 elements. + Closes: #745084. + - Bugfixes for chroot wrapper: Closes: #741670. + - Bugfixes for debootstrap wrapper. Closes: #742070. + - Bugfixes for env wrapper. Closes: #815194. + - Bugfixes for fakechroot command. Closes: #840008. + - Bugfixes for ldd wrapper. Closes: #780759, #839873, #839962, #840007. + + -- Piotr Roszatycki Sun, 20 Nov 2016 18:05:23 +0100 + +fakechroot (2.18-1.1) unstable; urgency=medium + + * non-maintainer upload + * avoid using debian/libfakechroot when doing arch-independent builds + (Closes: #806221) Thanks to Santiago Vila for the patch. + * added libjemalloc1 to Build-Depends for better test suite + coverage. + * packaging metadata cleanup + + -- Daniel Kahn Gillmor Tue, 02 Aug 2016 14:38:50 -0400 + +fakechroot (2.18-1) unstable; urgency=medium + + * New upstream release: + - Works correctly with stretch and vivid. Closes: #745082, #763391, + #774332. + - Doesn't mix _BSD_SOURCE and _XOPEN_SOURCE macros. Closes: #749632. + * Build-Requires: debhelper >= 9. + + -- Piotr Roszatycki Mon, 26 Oct 2015 22:08:24 +0100 + +fakechroot (2.17.2-1) unstable; urgency=low + + * New upstream release. + * Supports parallel building. + * Apply patch from upstream's master: enables verbose compiler mode. + + -- Piotr Roszatycki Tue, 24 Dec 2013 21:03:57 +0100 + +fakechroot (2.17.1-2) unstable; urgency=medium + + * Apply patch from upstream's master: fixes "-h" option for fakechroot + script. + + -- Piotr Roszatycki Mon, 16 Dec 2013 20:17:52 +0100 + +fakechroot (2.17.1-1) unstable; urgency=low + + * New upstream release: + - It is safe to use relative paths which won't escape from fake chroot. + Closes: #533560, #582478, #582479, #663967. + - More bugfixes. Closes: #631390, #649146, #664121, #691538, #694827, + #697465, #700816, #720641, #720643, #720645, #720647, #720648, #730981. + * Use dh_autoreconf to update config.guess and config.sub for arm64. Thanks + to Colin Watson. Closes: #726161. + + -- Piotr Roszatycki Thu, 05 Dec 2013 22:14:14 +0100 + +fakechroot (2.16-1) unstable; urgency=low + + * New upstream release: + - Library path is added to ld.so.conf. + - Chroot ld.so.conf is added to LD_LIBRARY_PATH. Closes: #476528. + * debootstrap works with default, buildd and minbase variants. + + -- Piotr Roszatycki Sun, 11 Dec 2011 13:30:18 +0100 + +fakechroot (2.15-1) unstable; urgency=low + + * New upstream release: + - New function faccessat(2) was added. It fixes "test -r" command. + Thanks to Johannes Schauer. Closes: #641079. + - The popen(3) function were reimplemented based on OpenBSD source to + prevent some coredumps with newer GNU C Library. Closes: #637119. + - Manpage explains that fakeroot should be called in the fakechroot + environment to prevent some problems with incorrect order of preloaded + libraries. Closes: #611156. + * Multiarch support. Splitting package into fakechroot and libfakechroot. + Thanks to Johannes Schauer. Closes: #632954, #635625 + * Attached example for debootstrap usage to fakechroot package. + + -- Piotr Roszatycki Fri, 30 Sep 2011 14:07:46 +0200 + +fakechroot (2.14-1) unstable; urgency=low + + * New upstream release: + - Compiles with gcc-4.5. Closes: #606003. + + -- Piotr Roszatycki Sat, 18 Dec 2010 01:58:03 +0100 + +fakechroot (2.13.1-1) unstable; urgency=low + + * New upstream release. + + -- Piotr Roszatycki Tue, 30 Nov 2010 00:46:03 +0100 + +fakechroot (2.13-1) unstable; urgency=low + + * New upstream release: + - Fixes were made for realpath(3) and ftw(3) functions. apt-ftparchive(1) + command currently is working. Closes: #604082. + + -- Piotr Roszatycki Mon, 29 Nov 2010 15:10:02 +0100 + +fakechroot (2.12-1) unstable; urgency=low + + * New upstream release: + - All Debian patches were applied upstream. + - New function statvfs: "apt-get" command should work if called in + non-Debian host system. + + -- Piotr Roszatycki Sat, 13 Nov 2010 20:16:46 +0100 + +fakechroot (2.11-2) unstable; urgency=low + + * Fixed FTBFS on kFreeBSD. Closes: #596637. + * More verbose "make test". + + -- Piotr Roszatycki Tue, 21 Sep 2010 15:56:37 +0200 + +fakechroot (2.11-1) unstable; urgency=low + + * New upstream release: + - All Debian patches were applied upstream. + - Fixed getsockname(2) and getpeername(2) functions and bug when + "host 127.0.0.1" is called. Closes: #596435. + - Fixed canonicalize_file_name(3) function and bug when "man-db" command + is called. + + -- Piotr Roszatycki Sun, 12 Sep 2010 20:15:43 +0200 + +fakechroot (2.10-2) unstable; urgency=low + + * Fixed FTBFS on kFreeBSD and skip some tests which fail on this arch. + * Added kfreebsd-amd64 to biarch architectures. + * Biarch library dependencies moved to "Suggests". Closes: #594818. + * Ignore warnings about missing manpages for fakechroot's wrappers. + + -- Piotr Roszatycki Thu, 02 Sep 2010 11:56:16 +0200 + +fakechroot (2.10-1) unstable; urgency=low + + * New upstream release: + - Fixed "undefined symbol: rpl_malloc" error for compiled 32-bit library + on 64-bit architecture by dropping AC_FUNC_MALLOC in configure.ac. + Closes: #511296. + - Fixed chroot(2) function and bug when getcwd failed to return proper + paths when root included ".". Closes: #548691. + - Fixed readlink(2) function and bug when symlink targeted long path name. + Closes: #552258. + - Fixed __lxstat(3), __lxstat64(3), lstat(2) and lstat64(2) functions and + bug when debootstrap failed on dpkg's assertion `r == stab.st_size'. + Closes: #561991. + - New function popen(3). Closes: #582847. + - New function utimensat(2). Works with the latest /bin/cp -dp command. + Closes: #588508. + - Fixed an example session in manual page. Closes: #532091. + - Applied NMU. Closes: #566653. + - Put files in lib32 directories directly. Closes: #533002. + - Fix conflicting types for 'scandir'. Closes: #552891. + * Switch to 3.0 (quilt) source format. + * Dropped fake libfakechroot library. Closes: #572111. + * debian/rules, debian/packages: + - Switched to debhelper. + * debian/control: + - VCS switched to launchpad's bazaar. + - Dropped conflict on old libc6-i386. + * debian/copyright: + - Machine-readable. + + -- Piotr Roszatycki Thu, 26 Aug 2010 23:09:46 +0200 + +fakechroot (2.9-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Put files in lib32 directories directly (Closes: #533002). + * Fix conflicting types for 'scandir' (Closes: #552891). + + -- Luk Claes Sun, 24 Jan 2010 10:08:13 +0000 + +fakechroot (2.9-1) unstable; urgency=medium + + * src/libfakechroot.c: + - Fixed getpeername(2) and getsockname(2). Thanks to Axel Thimm and + Fedora people. + - Fixed were made for execve(2): + . Always copy necessary variables to new environment. + . Do not make duplicates of environment variables. Thanks to Richard + W.M. Jones. + - Fixed were made for chroot(2). It is possible to escape chroot. + Thanks to Richard W.M. Jones. + - Fixed were made for mktemp(2). There was a buffer overflow. Thanks to + Mikhail Gusarov. + - New function: futimesat(2). Fixes "touch -m" command. + - New functions: bindtextdomain(3), notify_add_watch(2). + * test/*: + - More test units was added, "make check" works as expected. + * debian/packages: + - Autodetected biarch libdir for amd64 architecture on Debian and Ubuntu. + - Build-Depends: lsb-release + + -- Piotr Roszatycki Mon, 30 Mar 2009 14:55:26 +0200 + +fakechroot (2.8-1) unstable; urgency=medium + + * src/libfakechroot.c: + - Fixed __fxstatat64(3) function which broke chown(1) command on i386 + architecture. Closes: #473682. + - Fixed FreeBSD port. All *64(2) functions are optional. + + -- Piotr Roszatycki Fri, 25 Jul 2008 15:01:40 +0200 + +fakechroot (2.7.1-1) unstable; urgency=low + + * src/libfakechroot.c: + - Supports uclibc which doesn't provide getwd(2) function. + * m4/readlink_argtypes.m4, src/libfakechroot.c: + - Compiles with older libc: configure script detects readlink type of + return value. + * debian/packages: + - Supports cross compiling. + * test/fakechroot.sh: + - Can be called with $PREFIX environment variable. + + -- Piotr Roszatycki Thu, 17 Jul 2008 13:50:10 +0200 + +fakechroot (2.7-1) unstable; urgency=medium + + * Apply all NMU patches. Thank you, people! + * Improved stability and support for the latest libc. Closes: #420870. + * src/libfakechroot.c: + - Fixed readlink(2) function to be ssize_t as it is in newer libc. + Thanks Sune Vuorela. + - New functions: __fxstatat(2), __fxstatat64(2), fchmodat(2), fchownat(2), + __openat(2), __openat64(2), unlinkat(2). It fixes last coreutils. + Thanks Martin Pitt and Daniel Kahn Gillmor. Closes: #473682. + - New functions: mkdirat(2), renameat(2). + - Fixed chroot(2) function to not change current working directory. + Closes: #477447. + - Fixed chroot(2) function to handle relative path. + - Fixed execve(2) function to not expand argv0 and handle "#!" correctly. + Thanks Mark Eichin. Closes: #412774. + - New eaccess(3) function backported from Klik. + - New functions: bind(2), connect(2), getpeername(2), getsockname(2). + They support PF_UNIX sockets. Closes: #413918. + - More memory allocation for fakechroot_init. + * test/fakechroot.sh: + - Add cp, mkdir, chmod, rm and libraries. + - Call bash instead of sh. + - Use /usr/lib/fakechroot library path if own version is not compiled. + * debian/packages: + - Standards-Version: 3.8.0 + - Depends on main libc package. Non-default multilib architecture is + excluded from dependencies list. + - Multilib architecture is supported on i386. + + -- Piotr Roszatycki Tue, 15 Jul 2008 13:31:00 +0200 + +fakechroot (2.6-1.3ubuntu3) intrepid; urgency=low + + * src/libfakechroot.c: Define openat64(), to unbreak rm -r on i386, too. + (LP: #228534) + + -- Martin Pitt Fri, 09 May 2008 07:53:31 +0200 + +fakechroot (2.6-1.3ubuntu2) intrepid; urgency=low + + * src/libfakechroot.c: + - Define openat(), to unbreak rm -r. + - Define fchmodat(), to unbreak chmod. + - Define fchownat(), to unbreak chown. + This fixes everything which broke debootstrapping Hardy. + * test/fakechroot.sh: Add cp, mkdir, chmod. + + -- Martin Pitt Thu, 08 May 2008 22:13:43 +0200 + +fakechroot (2.6-1.3ubuntu1) intrepid; urgency=low + + * src/libfakechroot.c: Provide wrapping of unlinkat(), __fxstatat(), and + __fxstatat64() to unbreak rm'ing absolute directories. This extends the + original patch from Daniel Kahn Gillmor in Debian #473682. Still + incomplete, since other *at() functions are still missing, but those are + the most pressing which cause the Apport retracers to fail so badly. + * test/fakechroot.sh: Add /bin/rm, and call bash instead of sh. + + -- Martin Pitt Thu, 08 May 2008 20:45:48 +0200 + +fakechroot (2.6-1.3) unstable; urgency=low + + * Non-maintainer upload to fix the fix for the fix for #422586 + * Only use gcc-multilib on some archs. + * Fix the readlink function to be ssize_t as it is in newer libc + + -- Sune Vuorela Sat, 19 May 2007 17:19:53 +0200 + +fakechroot (2.6-1.2) unstable; urgency=low + + * Non-maintainer upload. + * Add build-dependency on gcc-multilib the yada way to avoid FTBFS. + (Closes: #422586) + + -- Sune Vuorela Sat, 19 May 2007 15:13:28 +0200 + +fakechroot (2.6-1.1) unstable; urgency=low + + * Non-maintainer upload during BSP. + * Added build-dependency on gcc-multilib to avoid FTBFS (Closes: #422586). + + -- Mario Iseli Fri, 18 May 2007 18:17:26 +0200 + +fakechroot (2.6-1) unstable; urgency=low + + * New environment variable FAKECHROOT_EXCLUDE_PATH. + * Fixed getcwd(3) function. Closes: #410145, #410739. + * Fixed readlink(2) function. Closes: #412141. + * Fixed mktemp(3) function. Closes: #412918. + * The chroot(2) function is now recursive and allows nested chroots. + Closes: #412603. + * Updated manpage. + * Supported 32-bit biarch on ppc64 architecture. Closes: #361202. + * Fixed typo in package's description. Closes: #363403. + + -- Piotr Roszatycki Sat, 5 May 2007 17:20:28 +0200 + +fakechroot (2.5-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Apply patch from Andreas Jochens to build-dep on + libc6-dev-i386 instead of the obsolete ia32-libs-dev on amd64. (Closes: + #360434) + + -- Marc 'HE' Brockschmidt Sat, 16 Sep 2006 12:08:27 +0200 + +fakechroot (2.5-1) unstable; urgency=low + + * Relicensed to LGPL + * configure script regenerated with libtool 2.1a (2005-10-24). + + -- Piotr Roszatycki Mon, 24 Oct 2005 09:13:55 +0200 + +fakechroot (2.4-1) unstable; urgency=low + + * Convert to non native Debian package. + * New option --use-system-libs as a workaround if the system dynamic + linker can't load the libc.so from fake chroot. + * Fix revoke(2) function. + * Load symbols on demand, so fakechroot is compatible with libselinux. + * Support RedHat EL 4 (and CentOS, and Whitebox, etc.) + * Updated manual page. + * Configure script regenerated with libtool 2.1a. The source should be + more portable and does not require C++ compiler installed. + + -- Piotr Roszatycki Thu, 8 Sep 2005 17:54:15 +0200 + +fakechroot (2.3) unstable; urgency=low + + * Initial port to FreeBSD 5.x. + * Implement and functions. + * New configure option --with-libpath. + * Link with -avoid-version option. + + -- Piotr Roszatycki Tue, 6 Sep 2005 16:54:35 +0200 + +fakechroot (2.2) unstable; urgency=low + + * Included config.h, so GLIBC 2.3 functions works now. + * Initial port to Solaris 8. + + -- Piotr Roszatycki Fri, 2 Sep 2005 16:55:29 +0200 + +fakechroot (2.1) unstable; urgency=low + + * Add missing lremovexattr(2) function. + * Support also older GLIBC (Debian woody, Ubuntu hoary). + + -- Piotr Roszatycki Thu, 25 Aug 2005 12:51:29 +0200 + +fakechroot (2.0) unstable; urgency=low + + * The code was rewritten from scratch. The fakeroot functionality + was dropped, so the fakechroot can extend the fakeroot functionality + or can be used without it. + * The FAKECHROOT_VERSION environment variable contains the current + package number. + + -- Piotr Roszatycki Wed, 24 Aug 2005 14:32:26 +0200 + +fakechroot (0.9+1.3) unstable; urgency=medium + + * Clean up the code - no static variables. + * narrow_chroot_path(path) macro returns original path if it is outside + chroot so getcwd(2) works for /dev and /proc. + * Implement lutimes(2) function. + * Fixed path for biarch libraries on sparc and amd64. + * Updated ldd.fake script. Now works on biarch systems. + * Biarch support for s390. + * Updated documentation. + + -- Piotr Roszatycki Mon, 20 Jun 2005 10:04:24 +0200 + +fakechroot (0.8+1.3) unstable; urgency=medium + + * Merged with fakeroot 1.3. + * chroot(2) function includes default path to LD_LIBRARY_PATH. + * Fixed scandir64(3) function. + + -- Piotr Roszatycki Tue, 14 Jun 2005 16:20:12 +0200 + +fakechroot (0.7+1.2.4) unstable; urgency=low + + * Implement wrapper for scandir(3) function. Now, the run-parts(8) works + correctly. Closes: #312409. + * Implement wrapper for glob(3) functions. Thanks to ALT Linux guys. + * Implement wrapper for glob_pattern_p(3) functions. + + -- Piotr Roszatycki Tue, 14 Jun 2005 11:56:47 +0200 + +fakechroot (0.6+1.2.4) unstable; urgency=low + + * Implement wrappers for mkstemp64 and mkdtemp functions. + * Clean up the code. + * Fix ldd.fake script. + * Modified path for debootstrap. + + -- Piotr Roszatycki Sat, 5 Feb 2005 20:36:56 +0100 + +fakechroot (0.5+1.2.4) unstable; urgency=low + + * Fix mkstemp(2) function. Some other cleanups to the code. + * Relative paths to the fakechroot script. + + -- Piotr Roszatycki Fri, 4 Feb 2005 17:20:26 +0100 + +fakechroot (0.4+1.2.4) unstable; urgency=low + + * Implement wrappers for . + * Build with faked named as fakechrootd. + * fakeroot package is not necessary to run fakechroot. + + -- Piotr Roszatycki Fri, 4 Feb 2005 15:35:17 +0100 + +fakechroot (0.3+1.2.4) unstable; urgency=low + + * Merged with fakeroot 1.2.4 and fakechroot 0.2.6.1 (downloaded from + http://www.altlinux.org/). Thanks to ALT Linux guys for maintaining + the code. + * Patch updated to the latest debootstrap. Closes: #247199. + * Fixed typo in package description. Closes: #252503. + * The new version builds with gcc-3.4. Closes: #258855. + + -- Piotr Roszatycki Thu, 3 Feb 2005 12:38:54 +0100 + +fakechroot (0.2.6+0.7.8) unstable; urgency=low + + * Merged with fakeroot 0.7.8. + + -- Piotr Roszatycki Tue, 30 Sep 2003 17:53:35 +0200 + +fakechroot (0.2.5+0.7.5) unstable; urgency=low + + * Updated man page. + + -- Piotr Roszatycki Tue, 19 Aug 2003 09:52:49 +0200 + +fakechroot (0.2.4+0.7.5) unstable; urgency=low + + * Add man page, closes: #205615. + * Add example scripts and patch for debootstrap. + + -- Piotr Roszatycki Mon, 18 Aug 2003 17:01:05 +0200 + +fakechroot (0.2.3+0.7.5) unstable; urgency=low + + * Add documentation in /usr/share/doc/fakechroot. + + -- Piotr Roszatycki Sat, 9 Aug 2003 01:43:31 +0200 + +fakechroot (0.2.2+0.7.5) unstable; urgency=low + + * The schema of version package is "fakechroot_ver+fakeroot_ver". Fix that. + * "make check" is optional. + + -- Piotr Roszatycki Tue, 29 Jul 2003 10:39:28 +0200 + +fakechroot (0.2.1+0.7.6) unstable; urgency=low + + * Compile without check target. + + -- Piotr Roszatycki Tue, 29 Jul 2003 10:19:35 +0200 + +fakechroot (0.2+0.7.5) unstable; urgency=low + + * Merge with fakeroot-0.7.5. + * Support for lib64. + + -- Piotr Roszatycki Fri, 25 Jul 2003 13:04:32 +0200 + +fakechroot (0.1+0.6.9) unstable; urgency=low + + * Initial release. + + -- Piotr Roszatycki Tue, 15 Apr 2003 17:13:31 +0200 + diff --git a/debian/clean b/debian/clean new file mode 100644 index 00000000..345fbe2e --- /dev/null +++ b/debian/clean @@ -0,0 +1,2 @@ +config*.cache +config.log diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..3140ee9d --- /dev/null +++ b/debian/control @@ -0,0 +1,40 @@ +Source: fakechroot +Maintainer: Piotr Roszatycki +Section: utils +Priority: optional +Build-Depends: + debhelper (>= 9.20141010), + dh-autoreconf, + dpkg-dev (>= 1.17.14), + libjemalloc1 +Standards-Version: 3.9.8 +Homepage: https://github.com/dex4er/fakechroot +VCS-Git: https://anonscm.debian.org/git/collab-maint/fakechroot.git +VCS-Browser: https://anonscm.debian.org/git/collab-maint/fakechroot.git + +Package: fakechroot +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, + libfakechroot (>= ${source:Version}), + libfakechroot (<< ${source:Version}.1~) +Description: gives a fake chroot environment - utilities + The fakechroot preloads a library which overrides libc functions, so + it is possible to use root-specific tools without root privileges. + . + In fake chroot you can install i.e. Debian bootstrap, create developer's + environment and build packages inside chroot'ed system using standard + non-root user account. + +Package: libfakechroot +Section: libs +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Multi-Arch: same +Description: gives a fake chroot environment - runtime + This package provides a library which overrides libc functions, so + it is possible to use root-specific tools without root privileges. + . + In fake chroot you can install i.e. Debian bootstrap, create developer's + environment and build packages inside chroot'ed system using standard + non-root user account. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..bfc58e3f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,211 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: fakechroot +Upstream-Contact: Piotr Roszatycki +Source: https://github.com/fakechroot/fakechroot/downloads + +Files: * +Copyright: 2003-2015 Piotr Roszatycki +License: LGPL-2.1+ + +Files: debian/* +Copyright: 2003-2015, Piotr Roszatycki +License: GPL-2+ + +Files: src/__opendir2.c +Copyright: 1983, 1993 The Regents of the University of California. + 2000 Daniel Eischen. +License: BSD-3-clause + +Files: src/audit_log_acct_message.c +Copyright: 2015 JH Chatenet +License: LGPL-2.1 + +Files: src/setenv.c +Copyright: 1992,95,96,97,98,99,2000,2001 Free Software Foundation, Inc. +License: LGPL-2.1+ + +Files: src/dedotdot.c +Copyright: 1999,2000 by Jef Poskanzer . +License: BSD-2-clause + +Files: src/dl_iterate_phdr.c +Copyright: 2014 Robin McCorkell +License: LGPL-2.1+ + +Files: src/dladdr.c +Copyright: 2014 Robin McCorkell +License: LGPL-2.1+ + +Files: src/dlopen.c +Copyright: 2010, 2013 Piotr Roszatycki + 2014 Robin McCorkell +License: LGPL-2.1+ + +Files: src/execl.c +Copyright: 1991,92,94,97,98,99,2002,2005 Free Software Foundation, Inc. +License: LGPL-2.1+ + +Files: src/execle.c +Copyright: 1991,97,98,99,2002,2005 Free Software Foundation, Inc. +License: LGPL-2.1+ + +Files: src/execlp.c +Copyright: 1991,93,96,97,98,99,2002,2005 Free Software Foundation, Inc. +License: LGPL-2.1+ + +Files: src/execvp.c +Copyright: 1991,92, 1995-99, 2002, 2004, 2005, 2007, 2009 Free Software + Foundation, Inc. +License: LGPL-2.1+ + +Files: src/fts.c +Copyright: 1990, 1993, 1994 The Regents of the University of California. + 2010-2015 Piotr Roszatycki +License: BSD-3-clause + +Files: src/ftw.c src/ftw64.c +Copyright: 1996-2004, 2006-2008, 2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + Contributed by Ulrich Drepper , 1996. +License: LGPL-2.1+ + +Files: src/getcwd_real.c +Copyright: 1989, 1991, 1993 The Regents of the University of California. + 2000-2006 Erik Andersen +License: BSD-3-clause and LGPL-2.1+ + +Files: src/libfakechroot.c +Copyright: 2003-2015 Piotr Roszatycki + 2007 Mark Eichin + 2006, 2007 Alexander Shishkin + 2006, 2007 Lionel Tricon +License: LGPL-2.1+ + +Files: src/popen.c +Copyright: 1988, 1993 The Regents of the University of California. + 2010-2015 Piotr Roszatycki +License: BSD-3-clause + +Files: src/posix_spawnp.c +Copyright: 1991,92, 1995-99, 2002, 2004, 2005, 2007, 2009 + Free Software Foundation, Inc. + 2010-2015 Piotr Roszatycki +License: LGPL-2.1+ + +Files: src/rawmemchr.c +Copyright: 2002 Manuel Novoa III + 2000-2005 Erik Andersen +License: LGPL-2.1 + +Files: src/realpath.c +Copyright: 1996-2010 Free Software Foundation, Inc. +License: LGPL-2.1+ + +Files: src/rpl_lstat.c +Copyright: 1997-2006, 2008-2010 Free Software Foundation, Inc. + 2013, 2015 Piotr Roszatycki +License: LGPL-3+ + +Files: src/stpcpy.c +Copyright: 1992, 1995, 1997-1998, 2006, 2009-2010 Free Software + Foundation, Inc. +License: LGPL-3+ + +Files: src/strchrnul.c +Copyright: 2003, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +License: LGPL-3+ + +Files: src/strlcpy.c +Copyright: 1998 Todd C. Miller +License: BSD-1-clause + +License: BSD-1-clause + Copyright (c) The Regents of the University of California. + All rights reserved. + . + Permission to use, copy, modify, and distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + . + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +License: BSD-2-clause + Copyright (c) The Regents of the University of California. + All rights reserved. + . + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +License: BSD-3-clause + Copyright (c) The Regents of the University of California. + All rights reserved. + . + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +License: GPL-2+ + On Debian systems, the full text of the GNU General Public + License can be found in the file + `/usr/share/common-licenses/GPL-2'. + +License: LGPL-2.1+ + On Debian systems, the full text of the GNU Lesser General Public + License can be found in the file + `/usr/share/common-licenses/LGPL-2.1'. Future versions (the "or any + later version" clause) can be found in the same directory. + +License: LGPL-3+ + On Debian systems, the full text of the GNU Lesser General Public + License can be found in the file + `/usr/share/common-licenses/LGPL-3. Future versions (the "or any + later version" clause) can be found in the same directory. + +License: LGPL-2.1 + On Debian systems, the full text of the GNU Lesser General Public + License can be found in the file + `/usr/share/common-licenses/LGPL-2.1'. diff --git a/debian/fakechroot.docs b/debian/fakechroot.docs new file mode 100644 index 00000000..88b27bc0 --- /dev/null +++ b/debian/fakechroot.docs @@ -0,0 +1,2 @@ +NEWS.md +THANKS.md diff --git a/debian/fakechroot.examples b/debian/fakechroot.examples new file mode 100644 index 00000000..54d544b5 --- /dev/null +++ b/debian/fakechroot.examples @@ -0,0 +1,6 @@ +scripts/relocatesymlinks.sh +scripts/restoremode.sh +scripts/savemode.sh +test/archlinux.sh +test/debootstrap.sh +test/testtree.sh diff --git a/debian/fakechroot.install b/debian/fakechroot.install new file mode 100644 index 00000000..7f213b72 --- /dev/null +++ b/debian/fakechroot.install @@ -0,0 +1,4 @@ +etc/*/* +usr/bin/* +usr/sbin/* +usr/share/man/man*/* diff --git a/debian/fakechroot.lintian-overrides b/debian/fakechroot.lintian-overrides new file mode 100644 index 00000000..9a77a680 --- /dev/null +++ b/debian/fakechroot.lintian-overrides @@ -0,0 +1 @@ +binary-without-manpage *.fakechroot diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 00000000..ace277a1 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,4 @@ +[DEFAULT] +pristine-tar = True +ignore-branch = True +builder = debuild -i'^\.git/|^\.gitignore$|^\.travis.yml$|^README\.md$' -I diff --git a/debian/libfakechroot.dirs b/debian/libfakechroot.dirs new file mode 100644 index 00000000..b674de64 --- /dev/null +++ b/debian/libfakechroot.dirs @@ -0,0 +1 @@ +/etc/ld.so.conf.d diff --git a/debian/libfakechroot.install b/debian/libfakechroot.install new file mode 100644 index 00000000..40fd09e9 --- /dev/null +++ b/debian/libfakechroot.install @@ -0,0 +1 @@ +usr/lib/*/fakechroot/*.so diff --git a/debian/libfakechroot.lintian-overrides b/debian/libfakechroot.lintian-overrides new file mode 100644 index 00000000..134f32d5 --- /dev/null +++ b/debian/libfakechroot.lintian-overrides @@ -0,0 +1,3 @@ +package-has-unnecessary-activation-of-ldconfig-trigger +package-modifies-ld.so-search-path *.conf +postinst-has-useless-call-to-ldconfig diff --git a/debian/libfakechroot.triggers b/debian/libfakechroot.triggers new file mode 100644 index 00000000..dd866036 --- /dev/null +++ b/debian/libfakechroot.triggers @@ -0,0 +1 @@ +activate-noawait ldconfig diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..b67e12de --- /dev/null +++ b/debian/rules @@ -0,0 +1,28 @@ +#!/usr/bin/make -f + +DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + PARALLEL := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + PROVEFLAGS += -j$(PARALLEL) +endif + +%: + dh $@ --parallel --with autoreconf + +override_dh_auto_configure: + dh_auto_configure -- --enable-dependency-tracking --with-libpath=no V=1 EXTRA_CFLAGS='-Wall' PROVEFLAGS="$(PROVEFLAGS)" \ + ac_cv_path_CHROOT=/usr/sbin/chroot \ + ac_cv_path_DEBOOTSTRAP=/usr/sbin/debootstrap \ + ac_cv_path_ECHO=/bin/echo \ + ac_cv_path_ENV=/usr/bin/env \ + ac_cv_path_FAKEROOT=/usr/bin/fakeroot \ + ac_cv_path_ISCHROOT=/usr/bin/ischroot \ + ac_cv_path_LDCONFIG=/sbin/ldconfig \ + ac_cv_path_LDD=/usr/bin/ldd \ + ac_cv_path_PERL=/usr/bin/perl \ + ac_cv_path_SHELL=/bin/bash + +override_dh_auto_install-arch: + dh_auto_install --parallel + echo /usr/lib/$(DEB_HOST_MULTIARCH)/fakechroot > debian/libfakechroot/etc/ld.so.conf.d/fakechroot-$(DEB_HOST_MULTIARCH).conf diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 00000000..f2f3f770 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +https://github.com/dex4er/fakechroot/releases /dex4er/fakechroot/archive/([0-9a-z.-]*)\.tar\.gz diff --git a/fakechroot.dsc.in b/fakechroot.dsc.in new file mode 100644 index 00000000..b1b06f52 --- /dev/null +++ b/fakechroot.dsc.in @@ -0,0 +1,24 @@ +Format: 3.0 (quilt) +Source: fakechroot +Binary: fakechroot, libfakechroot +Architecture: any all +Version: @PACKAGE_VERSION@ +Maintainer: Piotr Roszatycki +Homepage: https://github.com/dex4er/fakechroot +Standards-Version: 3.9.8 +Vcs-Browser: https://anonscm.debian.org/git/collab-maint/fakechroot.git +Vcs-Git: https://anonscm.debian.org/git/collab-maint/fakechroot.git +Build-Depends: debhelper (>= 9.20141010), dh-autoreconf, dpkg-dev (>= 1.17.14), libjemalloc1 +Package-List: + fakechroot deb utils optional arch=all + libfakechroot deb libs optional arch=any +Checksums-Sha1: + @FAKECHROOT_ORIG_SHA1@ @FAKECHROOT_ORIG_SIZE@ @FAKECHROOT_ORIG@ + @FAKECHROOT_DEBIAN_SHA1@ @FAKECHROOT_DEBIAN_SIZE@ @FAKECHROOT_DEBIAN@ +Checksums-Sha256: + @FAKECHROOT_ORIG_SHA256@ @FAKECHROOT_ORIG_SIZE@ @FAKECHROOT_ORIG@ + @FAKECHROOT_DEBIAN_SHA256@ @FAKECHROOT_DEBIAN_SIZE@ @FAKECHROOT_DEBIAN@ +Files: + @FAKECHROOT_ORIG_MD5@ @FAKECHROOT_ORIG_SIZE@ @FAKECHROOT_ORIG@ + @FAKECHROOT_DEBIAN_MD5@ @FAKECHROOT_DEBIAN_SIZE@ @FAKECHROOT_DEBIAN@ + diff --git a/makedeb.sh b/makedeb.sh new file mode 100755 index 00000000..93e13d0c --- /dev/null +++ b/makedeb.sh @@ -0,0 +1,60 @@ +#!/bin/bash + +set -e + +#./makedist.sh + +PACKAGE_VERSION=$(sed -nr "s/PACKAGE_VERSION='(.*)'/\1/p" configure) + +FAKECHROOT_DSC_SIGNED=fakechroot_$PACKAGE_VERSION.dsc +FAKECHROOT_DSC_UNSIGNED=fakechroot_$PACKAGE_VERSION.dsc.unsigned +FAKECHROOT_ORIG=fakechroot_$PACKAGE_VERSION.orig.tar.gz +FAKECHROOT_DEBIAN=fakechroot_$PACKAGE_VERSION.debian.tar.gz + +cp fakechroot.dsc.in $FAKECHROOT_DSC_UNSIGNED + +CHANGELOG=$(cat debian/changelog.in) +CHANGELOG_TOPMSG=$(cat < $(date) +EOF +) +printf "$CHANGELOG_TOPMSG\n\n$CHANGELOG" >debian/changelog + +cp fakechroot-$PACKAGE_VERSION.tar.gz $FAKECHROOT_ORIG +tar -cvzf $FAKECHROOT_DEBIAN debian/ + +FAKECHROOT_ORIG_SIZE=$(stat --printf="%s" $FAKECHROOT_ORIG) +FAKECHROOT_ORIG_SHA1=$(shasum $FAKECHROOT_ORIG | sed -nr "s/^([a-f0-9]+).*/\1/p") +FAKECHROOT_ORIG_SHA256=$(sha256sum $FAKECHROOT_ORIG | sed -nr "s/^([a-f0-9]+).*/\1/p") +FAKECHROOT_ORIG_MD5=$(md5sum $FAKECHROOT_ORIG | sed -nr "s/^([a-f0-9]+).*/\1/p") + +FAKECHROOT_DEBIAN_SIZE=$(stat --printf="%s" $FAKECHROOT_DEBIAN) +FAKECHROOT_DEBIAN_SHA1=$(shasum $FAKECHROOT_DEBIAN | sed -nr "s/^([a-f0-9]+).*/\1/p") +FAKECHROOT_DEBIAN_SHA256=$(sha256sum $FAKECHROOT_DEBIAN | sed -nr "s/^([a-f0-9]+).*/\1/p") +FAKECHROOT_DEBIAN_MD5=$(md5sum $FAKECHROOT_DEBIAN | sed -nr "s/^([a-f0-9]+).*/\1/p") + +sed -i "s/@PACKAGE_VERSION@/$PACKAGE_VERSION/g" $FAKECHROOT_DSC_UNSIGNED +sed -i "s/@FAKECHROOT_ORIG@/$FAKECHROOT_ORIG/g" $FAKECHROOT_DSC_UNSIGNED +sed -i "s/@FAKECHROOT_DEBIAN@/$FAKECHROOT_DEBIAN/g" $FAKECHROOT_DSC_UNSIGNED +sed -i "s/@FAKECHROOT_ORIG_SIZE@/$FAKECHROOT_ORIG_SIZE/g" $FAKECHROOT_DSC_UNSIGNED +sed -i "s/@FAKECHROOT_DEBIAN_SIZE@/$FAKECHROOT_DEBIAN_SIZE/g" $FAKECHROOT_DSC_UNSIGNED +sed -i "s/@FAKECHROOT_ORIG_SHA1@/$FAKECHROOT_ORIG_SHA1/g" $FAKECHROOT_DSC_UNSIGNED +sed -i "s/@FAKECHROOT_DEBIAN_SHA1@/$FAKECHROOT_DEBIAN_SHA1/g" $FAKECHROOT_DSC_UNSIGNED +sed -i "s/@FAKECHROOT_ORIG_SHA256@/$FAKECHROOT_ORIG_SHA256/g" $FAKECHROOT_DSC_UNSIGNED +sed -i "s/@FAKECHROOT_DEBIAN_SHA256@/$FAKECHROOT_DEBIAN_SHA256/g" $FAKECHROOT_DSC_UNSIGNED +sed -i "s/@FAKECHROOT_ORIG_MD5@/$FAKECHROOT_ORIG_MD5/g" $FAKECHROOT_DSC_UNSIGNED +sed -i "s/@FAKECHROOT_DEBIAN_MD5@/$FAKECHROOT_DEBIAN_MD5/g" $FAKECHROOT_DSC_UNSIGNED + +# TODO Signing procedure is not fully implemented +# The user must do: gpg --gen-key +gpg --yes --output $FAKECHROOT_DSC_SIGNED --clearsign $FAKECHROOT_DSC_UNSIGNED + +rm -rf fakechroot-2.20.2 +dpkg-source --no-check --no-copy -x $FAKECHROOT_DSC_SIGNED +cd fakechroot-$PACKAGE_VERSION +dpkg-buildpackage --no-sign -rfakeroot -b +dpkg-buildpackage --no-sign -rfakeroot -A From 4fa5f91d8a19a004f87a9f1af4e41e6b8c9c938f Mon Sep 17 00:00:00 2001 From: Dmitry Mikushin Date: Fri, 3 Sep 2021 22:47:52 +0200 Subject: [PATCH 2/2] Uncommenting makedist.sh --- makedeb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makedeb.sh b/makedeb.sh index 93e13d0c..69d033ce 100755 --- a/makedeb.sh +++ b/makedeb.sh @@ -2,7 +2,7 @@ set -e -#./makedist.sh +./makedist.sh PACKAGE_VERSION=$(sed -nr "s/PACKAGE_VERSION='(.*)'/\1/p" configure)