Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jan 2021 14:37:57 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r561563 - in head/sysutils/debootstrap: . files
Message-ID:  <202101141437.10EEbvli041132@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Thu Jan 14 14:37:57 2021
New Revision: 561563
URL: https://svnweb.freebsd.org/changeset/ports/561563

Log:
  sysutils/debootstrap: install mremap(2) apt(8) workaround
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sysutils/debootstrap/Makefile
  head/sysutils/debootstrap/files/patch-scripts-gutsy
  head/sysutils/debootstrap/files/patch-scripts_debian-common

Modified: head/sysutils/debootstrap/Makefile
==============================================================================
--- head/sysutils/debootstrap/Makefile	Thu Jan 14 14:34:38 2021	(r561562)
+++ head/sysutils/debootstrap/Makefile	Thu Jan 14 14:37:57 2021	(r561563)
@@ -3,7 +3,7 @@
 
 PORTNAME=	debootstrap
 PORTVERSION=	1.0.123
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	sysutils
 MASTER_SITES=	DEBIAN/pool/main/d/${PORTNAME}
 DISTNAME=	${PORTNAME}_${PORTVERSION}

Modified: head/sysutils/debootstrap/files/patch-scripts-gutsy
==============================================================================
--- head/sysutils/debootstrap/files/patch-scripts-gutsy	Thu Jan 14 14:34:38 2021	(r561562)
+++ head/sysutils/debootstrap/files/patch-scripts-gutsy	Thu Jan 14 14:37:57 2021	(r561563)
@@ -36,3 +36,16 @@
  	fi
  
  	if [ -x "$TARGET/sbin/initctl.REAL" ]; then
+@@ -267,6 +281,12 @@ echo \"Warning: Fake initctl called, doing nothing\"" 
+ 	fi
+ 	mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon"
+ 	rm -f "$TARGET/usr/sbin/policy-rc.d"
++
++	echo \
++"# Workaround for Linuxulator missing mremap(2) support; without it,
++# apt(8) fails like this:
++# E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Start.
++APT::Cache-Start 251658240;" >> "$TARGET/etc/apt/apt.conf.d/00freebsd"
+ 
+ 	progress $bases $bases CONFBASE "Configuring base system"
+ 	info BASESUCCESS "Base system installed successfully."

Modified: head/sysutils/debootstrap/files/patch-scripts_debian-common
==============================================================================
--- head/sysutils/debootstrap/files/patch-scripts_debian-common	Thu Jan 14 14:34:38 2021	(r561562)
+++ head/sysutils/debootstrap/files/patch-scripts_debian-common	Thu Jan 14 14:37:57 2021	(r561563)
@@ -1,4 +1,4 @@
---- scripts/debian-common.orig	2021-01-12 21:19:09 UTC
+--- scripts/debian-common.orig	2020-03-13 02:04:21 UTC
 +++ scripts/debian-common
 @@ -200,10 +200,21 @@ echo \"Warning: Fake start-stop-daemon called, doing n
  		predep=$(without "$(without "$(resolve_deps $predep)" "$required")" "$done_predeps")
@@ -22,3 +22,16 @@
  	done
  
  	if [ -n "$base" ]; then
+@@ -222,6 +233,12 @@ echo \"Warning: Fake start-stop-daemon called, doing n
+ 
+ 	mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon"
+ 	rm -f "$TARGET/usr/sbin/policy-rc.d"
++
++	echo \
++"# Workaround for Linuxulator missing mremap(2) support; without it,
++# apt(8) fails like this:
++# E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Start.
++APT::Cache-Start 251658240;" >> "$TARGET/etc/apt/apt.conf.d/00freebsd"
+ 
+ 	progress $bases $bases CONFBASE "Configuring base system"
+ 	info BASESUCCESS "Base system installed successfully."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101141437.10EEbvli041132>