diff -Nru dphys-swapfile-20100506/debian/changelog dphys-swapfile-20100506/debian/changelog --- dphys-swapfile-20100506/debian/changelog 2018-08-23 21:29:41.000000000 +0000 +++ dphys-swapfile-20100506/debian/changelog 2019-08-31 13:27:16.000000000 +0000 @@ -1,3 +1,16 @@ +dphys-swapfile (20100506-6) unstable; urgency=medium + + * Drop fallocate.patch: swapon(8) states that fallocate-generated + swapfiles will not work on certain file systems and explicitly + recommends the use of dd as upstream does. (Closes: #913481) + * Declare comliance with Debian Policy 4.4.0. (No changes needed.) + * Bump debhelper compatibility level to 12. + + Replace debian/compat with a versioned b-d on debhelper-compat. + * Add "Pre-Depends: ${misc:Pre-Depends}" to be able to use "invoke-rc.d + --skip-systemd-native". Thanks Lintian! + + -- Axel Beckert Sat, 31 Aug 2019 15:27:16 +0200 + dphys-swapfile (20100506-5) unstable; urgency=high * Add patch to fix the setup subcommand exiting prematurely with more diff -Nru dphys-swapfile-20100506/debian/compat dphys-swapfile-20100506/debian/compat --- dphys-swapfile-20100506/debian/compat 2018-08-09 00:25:14.000000000 +0000 +++ dphys-swapfile-20100506/debian/compat 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -11 diff -Nru dphys-swapfile-20100506/debian/control dphys-swapfile-20100506/debian/control --- dphys-swapfile-20100506/debian/control 2018-08-09 00:45:08.000000000 +0000 +++ dphys-swapfile-20100506/debian/control 2019-08-08 23:53:52.000000000 +0000 @@ -4,9 +4,9 @@ Maintainer: Axel Beckert Uploaders: Elmar S. Heeb Build-Depends: bash-completion, - debhelper (>= 11~) + debhelper-compat (= 12) Homepage: http://neil.franklin.ch/Projects/dphys-swapfile/ -Standards-Version: 4.2.0 +Standards-Version: 4.4.0 Vcs-Git: https://salsa.debian.org/debian/dphys-swapfile.git Vcs-Browser: https://salsa.debian.org/debian/dphys-swapfile Rules-Requires-Root: no @@ -16,6 +16,7 @@ Depends: dc, lsb-base (>= 3.0-6), ${misc:Depends} +Pre-Depends: ${misc:Pre-Depends} Description: Autogenerate and use a swap file This init.d script exists so one does not need to have a fixed size swap partition. Instead install without swap partition and then run this, diff -Nru dphys-swapfile-20100506/debian/patches/fallocate.patch dphys-swapfile-20100506/debian/patches/fallocate.patch --- dphys-swapfile-20100506/debian/patches/fallocate.patch 2017-01-19 23:35:28.000000000 +0000 +++ dphys-swapfile-20100506/debian/patches/fallocate.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,25 +0,0 @@ -Description: Use fallocate if available - This speeds up swap file generation massively. -Author: basti -Reviewed-By: Axel Beckert -Forwarded: yes (but rejected) - ---- a/dphys-swapfile -+++ b/dphys-swapfile -@@ -127,8 +127,14 @@ - grep -v "^${CONF_SWAPFILE}" /etc/fstab > /etc/.fstab - mv /etc/.fstab /etc/fstab - -- dd if=/dev/zero of="${CONF_SWAPFILE}" bs=1048576 \ -- count="${CONF_SWAPSIZE}" 2> /dev/null -+ # use fallocate if found to create swapfile, else use dd -+ type fallocate > /dev/null -+ if [ $? -eq 0 ]; then -+ fallocate -l "${CONF_SWAPSIZE}"M "${CONF_SWAPFILE}" 2> /dev/null -+ else -+ dd if=/dev/zero of="${CONF_SWAPFILE}" bs=1048576 \ -+ count="${CONF_SWAPSIZE}" 2> /dev/null -+ fi - - # ensure that only root can read possibly critical stuff going in here - chmod 600 "${CONF_SWAPFILE}" diff -Nru dphys-swapfile-20100506/debian/patches/series dphys-swapfile-20100506/debian/patches/series --- dphys-swapfile-20100506/debian/patches/series 2018-08-23 21:03:40.000000000 +0000 +++ dphys-swapfile-20100506/debian/patches/series 2019-08-08 23:25:49.000000000 +0000 @@ -1,5 +1,4 @@ first-chmod-then-mkswap.patch -fallocate.patch check-diskspace-first.patch change-example-from-var-run-to-var-tmp.patch replace-p-q-with-p-for-newer-dc.patch