Bug#922915: initscripts: Please do not enable tmpfs-based shm on Hurd

2019-02-23 Thread Samuel Thibault
Dmitry Bogatov, le sam. 23 févr. 2019 20:07:42 +, a ecrit:
> [2019-02-21 21:33] Samuel Thibault 
> > Hello,
> >
> > Please do not enable tmpfs-based shm by default on the Hurd yet, the
> > tmpfs implementation is not ready for that yet and triggers runtime
> > issues.
> >
> > The attached patch makes the default per-kernel, could you apply it?
> 
> Well, yes; but I'd like not to keep it indefinitely. Please add comment
> with apporiate number of hurd bug.

Here it is.

Samuel
---
 debian/src/initscripts/lib/init/tmpfs.sh |   10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

--- a/debian/src/initscripts/lib/init/tmpfs.sh
+++ b/debian/src/initscripts/lib/init/tmpfs.sh
@@ -85,8 +85,17 @@ need_overflow_tmp ()
 # values here.
 
 RAMLOCK=yes
+KERNEL="$(uname -s)"
 # These might be overridden by /etc/default/rcS
-if [ -z "$RAMSHM" ]; then RAMSHM=yes; fi
+case "$KERNEL" in
+   GNU)
+   # tmpfs can not be used for shm yet, see #923078
+   if [ -z "$RAMSHM" ]; then RAMSHM=no; fi
+   ;;
+   *)
+   if [ -z "$RAMSHM" ]; then RAMSHM=yes; fi
+   ;;
+esac
 if [ -z "$RAMTMP" ]; then RAMTMP=no; fi
 
 TMPFS_SIZE=20%VM


Bug#922915: initscripts: Please do not enable tmpfs-based shm on Hurd

2019-02-23 Thread Dmitry Bogatov


[2019-02-21 21:33] Samuel Thibault 
> Hello,
>
> Please do not enable tmpfs-based shm by default on the Hurd yet, the
> tmpfs implementation is not ready for that yet and triggers runtime
> issues.
>
> The attached patch makes the default per-kernel, could you apply it?

Well, yes; but I'd like not to keep it indefinitely. Please add comment
with apporiate number of hurd bug.
-- 
Note, that I send and fetch email in batch, once every 24 hours.
 If matter is urgent, try https://t.me/kaction
 --



Bug#922915: initscripts: Please do not enable tmpfs-based shm on Hurd

2019-02-21 Thread Samuel Thibault
Package: initscripts
Version: 2.93-6
Severity: important
Tags: patch

Hello,

Please do not enable tmpfs-based shm by default on the Hurd yet, the
tmpfs implementation is not ready for that yet and triggers runtime
issues.

The attached patch makes the default per-kernel, could you apply it?

Thanks,
Samuel

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 
'proposed-updates'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 
'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), 
(1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.20.0 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages initscripts depends on:
ii  coreutils   8.30-1
ii  debianutils 4.8.6.1
ii  lsb-base10.2018112800
ii  mount   2.33.1-0.1
ii  sysv-rc 2.93-6
ii  sysvinit-utils  2.93-6

Versions of packages initscripts recommends:
ii  e2fsprogs  1.44.5-1
ii  psmisc 23.2-1

initscripts suggests no packages.

-- Configuration Files:
/etc/default/rcS changed [not included]

-- no debconf information

-- 
Samuel
 > et sinon, quand on s'interesse a un media que l'on ne maitrise pas,
 > on essaye de le comprendre d'abord.
 (Suivi par l'intégralité du message initial de 45 lignes.)
 -+-BM in : GNU - La maîtrise est un long apprentissage petit scarabé -+-
---
 debian/src/initscripts/lib/init/tmpfs.sh |   10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

--- a/debian/src/initscripts/lib/init/tmpfs.sh
+++ b/debian/src/initscripts/lib/init/tmpfs.sh
@@ -85,8 +85,16 @@ need_overflow_tmp ()
 # values here.
 
 RAMLOCK=yes
+KERNEL="$(uname -s)"
 # These might be overridden by /etc/default/rcS
-if [ -z "$RAMSHM" ]; then RAMSHM=yes; fi
+case "$KERNEL" in
+   GNU)
+   if [ -z "$RAMSHM" ]; then RAMSHM=no; fi
+   ;;
+   *)
+   if [ -z "$RAMSHM" ]; then RAMSHM=yes; fi
+   ;;
+esac
 if [ -z "$RAMTMP" ]; then RAMTMP=no; fi
 
 TMPFS_SIZE=20%VM