Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] common: remove proot chroot-style
@ 2020-11-07 21:58 Duncaen
  2020-11-07 21:58 ` [PR PATCH] [Updated] " Duncaen
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: Duncaen @ 2020-11-07 21:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 426 bytes --]

There is a new pull request by Duncaen against master on the void-packages repository

https://github.com/Duncaen/void-packages proot
https://github.com/void-linux/void-packages/pull/26204

common: remove proot chroot-style
proot is broken and result in random hard to debug issues,
this is the best way to not have new users use it.

A patch file from https://github.com/void-linux/void-packages/pull/26204.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-proot-26204.patch --]
[-- Type: text/x-diff, Size: 3055 bytes --]

From 5db3e392f5f21fa35b3d51f2875dc76063e93239 Mon Sep 17 00:00:00 2001
From: Duncaen <duncaen@voidlinux.org>
Date: Sat, 7 Nov 2020 22:50:11 +0100
Subject: [PATCH] common: remove proot chroot-style

proot is broken and result in random hard to debug issues,
this is the best way to not have new users use it.
---
 common/chroot-style/proot.sh     | 30 ------------------------------
 common/xbps-src/libexec/build.sh |  3 ---
 xbps-src                         |  4 ++--
 3 files changed, 2 insertions(+), 35 deletions(-)
 delete mode 100755 common/chroot-style/proot.sh

diff --git a/common/chroot-style/proot.sh b/common/chroot-style/proot.sh
deleted file mode 100755
index 5c670ea5da8..00000000000
--- a/common/chroot-style/proot.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-#
-# This chroot script uses proot (see http://proot.me)
-#
-readonly MASTERDIR="$1"
-readonly DISTDIR="$2"
-readonly HOSTDIR="$3"
-readonly EXTRA_ARGS="$4"
-shift 4
-
-if ! command -v proot >/dev/null 2>&1; then
-	exit 1
-fi
-
-if [ -z "$MASTERDIR" -o -z "$DISTDIR" ]; then
-	echo "$0 MASTERDIR/DISTDIR not set"
-	exit 1
-fi
-
-# proot does not properly return the resultcode. Workaround this
-RESULT=$(mktemp) || exit 1
-
-PROOT_NO_SECCOMP=1 proot -r $MASTERDIR -w / -b "$RESULT:/.result" -b $DISTDIR:/void-packages \
-	${HOSTDIR:+-b $HOSTDIR:/host} -b /proc:/proc -b /dev:/dev \
-	-b /sys:/sys $EXTRA_ARGS /bin/sh -c '$@; echo $? > /.result' $0 $@
-
-rv=$(cat "$RESULT")
-rm "$RESULT"
-
-exit $rv
diff --git a/common/xbps-src/libexec/build.sh b/common/xbps-src/libexec/build.sh
index 6abc988298b..3ac5a962d15 100755
--- a/common/xbps-src/libexec/build.sh
+++ b/common/xbps-src/libexec/build.sh
@@ -41,9 +41,6 @@ check_pkg_arch $XBPS_CROSS_BUILD
 if [ -z "$XBPS_CROSS_PREPARE" ]; then
     prepare_cross_sysroot $XBPS_CROSS_BUILD || exit $?
 fi
-if [ -z "$XBPS_DEPENDENCY" -a -z "$XBPS_TEMP_MASTERDIR" -a -n "$XBPS_KEEP_ALL" -a "$XBPS_CHROOT_CMD" = "proot" ]; then
-    remove_pkg_autodeps
-fi
 # Install dependencies from binary packages
 if [ "$PKGNAME" != "$XBPS_TARGET_PKG" -o -z "$XBPS_SKIP_DEPS" ]; then
     install_pkg_deps $PKGNAME $XBPS_TARGET_PKG pkg $XBPS_CROSS_BUILD $XBPS_CROSS_PREPARE || exit $?
diff --git a/xbps-src b/xbps-src
index 3cd19dc42ec..b9bb4b6dae4 100755
--- a/xbps-src
+++ b/xbps-src
@@ -317,7 +317,7 @@ read_pkg() {
 setup_distfiles_mirror() {
     local mirror scheme path
 
-    # Scheme file:// mirror locations only work with uchroot or proot
+    # Scheme file:// mirror locations only work with uchroot
     for mirror in $XBPS_DISTFILES_MIRROR; do
         scheme="file"
         if [[ "$mirror" == *://* ]]; then
@@ -327,7 +327,7 @@ setup_distfiles_mirror() {
             path="$mirror"
         fi
         [ "$scheme" != "file" ] && continue
-        if [ "$XBPS_CHROOT_CMD" == "uchroot" -o "$XBPS_CHROOT_CMD" == "proot" ]; then
+        if [ "$XBPS_CHROOT_CMD" == "uchroot" ]; then
             if [ ! -d "$path" ]; then
                 msg_warn "xbps-src: Invalid path in XBPS_DISTFILES_MIRROR ($mirror)\n"
                 continue

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] common: remove proot chroot-style
  2020-11-07 21:58 [PR PATCH] common: remove proot chroot-style Duncaen
@ 2020-11-07 21:58 ` Duncaen
  2020-11-07 22:05 ` xbps-src: " ericonr
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Duncaen @ 2020-11-07 21:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 431 bytes --]

There is an updated pull request by Duncaen against master on the void-packages repository

https://github.com/Duncaen/void-packages proot
https://github.com/void-linux/void-packages/pull/26204

common: remove proot chroot-style
proot is broken and result in random hard to debug issues,
this is the best way to not have new users use it.

A patch file from https://github.com/void-linux/void-packages/pull/26204.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-proot-26204.patch --]
[-- Type: text/x-diff, Size: 3057 bytes --]

From 84c642116b8d4038db96b93a25ce52b7cb6745c9 Mon Sep 17 00:00:00 2001
From: Duncaen <duncaen@voidlinux.org>
Date: Sat, 7 Nov 2020 22:50:11 +0100
Subject: [PATCH] xbps-src: remove proot chroot-style

proot is broken and result in random hard to debug issues,
this is the best way to not have new users use it.
---
 common/chroot-style/proot.sh     | 30 ------------------------------
 common/xbps-src/libexec/build.sh |  3 ---
 xbps-src                         |  4 ++--
 3 files changed, 2 insertions(+), 35 deletions(-)
 delete mode 100755 common/chroot-style/proot.sh

diff --git a/common/chroot-style/proot.sh b/common/chroot-style/proot.sh
deleted file mode 100755
index 5c670ea5da8..00000000000
--- a/common/chroot-style/proot.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-#
-# This chroot script uses proot (see http://proot.me)
-#
-readonly MASTERDIR="$1"
-readonly DISTDIR="$2"
-readonly HOSTDIR="$3"
-readonly EXTRA_ARGS="$4"
-shift 4
-
-if ! command -v proot >/dev/null 2>&1; then
-	exit 1
-fi
-
-if [ -z "$MASTERDIR" -o -z "$DISTDIR" ]; then
-	echo "$0 MASTERDIR/DISTDIR not set"
-	exit 1
-fi
-
-# proot does not properly return the resultcode. Workaround this
-RESULT=$(mktemp) || exit 1
-
-PROOT_NO_SECCOMP=1 proot -r $MASTERDIR -w / -b "$RESULT:/.result" -b $DISTDIR:/void-packages \
-	${HOSTDIR:+-b $HOSTDIR:/host} -b /proc:/proc -b /dev:/dev \
-	-b /sys:/sys $EXTRA_ARGS /bin/sh -c '$@; echo $? > /.result' $0 $@
-
-rv=$(cat "$RESULT")
-rm "$RESULT"
-
-exit $rv
diff --git a/common/xbps-src/libexec/build.sh b/common/xbps-src/libexec/build.sh
index 6abc988298b..3ac5a962d15 100755
--- a/common/xbps-src/libexec/build.sh
+++ b/common/xbps-src/libexec/build.sh
@@ -41,9 +41,6 @@ check_pkg_arch $XBPS_CROSS_BUILD
 if [ -z "$XBPS_CROSS_PREPARE" ]; then
     prepare_cross_sysroot $XBPS_CROSS_BUILD || exit $?
 fi
-if [ -z "$XBPS_DEPENDENCY" -a -z "$XBPS_TEMP_MASTERDIR" -a -n "$XBPS_KEEP_ALL" -a "$XBPS_CHROOT_CMD" = "proot" ]; then
-    remove_pkg_autodeps
-fi
 # Install dependencies from binary packages
 if [ "$PKGNAME" != "$XBPS_TARGET_PKG" -o -z "$XBPS_SKIP_DEPS" ]; then
     install_pkg_deps $PKGNAME $XBPS_TARGET_PKG pkg $XBPS_CROSS_BUILD $XBPS_CROSS_PREPARE || exit $?
diff --git a/xbps-src b/xbps-src
index 3cd19dc42ec..b9bb4b6dae4 100755
--- a/xbps-src
+++ b/xbps-src
@@ -317,7 +317,7 @@ read_pkg() {
 setup_distfiles_mirror() {
     local mirror scheme path
 
-    # Scheme file:// mirror locations only work with uchroot or proot
+    # Scheme file:// mirror locations only work with uchroot
     for mirror in $XBPS_DISTFILES_MIRROR; do
         scheme="file"
         if [[ "$mirror" == *://* ]]; then
@@ -327,7 +327,7 @@ setup_distfiles_mirror() {
             path="$mirror"
         fi
         [ "$scheme" != "file" ] && continue
-        if [ "$XBPS_CHROOT_CMD" == "uchroot" -o "$XBPS_CHROOT_CMD" == "proot" ]; then
+        if [ "$XBPS_CHROOT_CMD" == "uchroot" ]; then
             if [ ! -d "$path" ]; then
                 msg_warn "xbps-src: Invalid path in XBPS_DISTFILES_MIRROR ($mirror)\n"
                 continue

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: xbps-src: remove proot chroot-style
  2020-11-07 21:58 [PR PATCH] common: remove proot chroot-style Duncaen
  2020-11-07 21:58 ` [PR PATCH] [Updated] " Duncaen
@ 2020-11-07 22:05 ` ericonr
  2020-11-07 22:05 ` ericonr
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: ericonr @ 2020-11-07 22:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 177 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/26204#issuecomment-723500997

Comment:
Needs to remove from README as well.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: xbps-src: remove proot chroot-style
  2020-11-07 21:58 [PR PATCH] common: remove proot chroot-style Duncaen
  2020-11-07 21:58 ` [PR PATCH] [Updated] " Duncaen
  2020-11-07 22:05 ` xbps-src: " ericonr
@ 2020-11-07 22:05 ` ericonr
  2020-11-07 22:07 ` [PR PATCH] [Updated] " Duncaen
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: ericonr @ 2020-11-07 22:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 181 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/26204#issuecomment-723500997

Comment:
Needs to be removed from README as well.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] xbps-src: remove proot chroot-style
  2020-11-07 21:58 [PR PATCH] common: remove proot chroot-style Duncaen
                   ` (2 preceding siblings ...)
  2020-11-07 22:05 ` ericonr
@ 2020-11-07 22:07 ` Duncaen
  2020-11-07 22:15 ` Duncaen
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Duncaen @ 2020-11-07 22:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 433 bytes --]

There is an updated pull request by Duncaen against master on the void-packages repository

https://github.com/Duncaen/void-packages proot
https://github.com/void-linux/void-packages/pull/26204

xbps-src: remove proot chroot-style
proot is broken and result in random hard to debug issues,
this is the best way to not have new users use it.

A patch file from https://github.com/void-linux/void-packages/pull/26204.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-proot-26204.patch --]
[-- Type: text/x-diff, Size: 5109 bytes --]

From 1e4c6fb11ad52b48957c9adb5fe72a08f327023a Mon Sep 17 00:00:00 2001
From: Duncaen <duncaen@voidlinux.org>
Date: Sat, 7 Nov 2020 22:50:11 +0100
Subject: [PATCH] xbps-src: remove proot chroot-style

proot is broken and result in random hard to debug issues,
this is the best way to not have new users use it.
---
 README.md                        | 14 +-------------
 common/chroot-style/proot.sh     | 30 ------------------------------
 common/xbps-src/libexec/build.sh |  3 ---
 xbps-src                         |  4 ++--
 4 files changed, 3 insertions(+), 48 deletions(-)
 delete mode 100755 common/chroot-style/proot.sh

diff --git a/README.md b/README.md
index 9238b1918ef..7c89d5a5a90 100644
--- a/README.md
+++ b/README.md
@@ -51,7 +51,6 @@ multiple utilities to accomplish this task:
  - `ethereal` - only useful for one-shot containers, i.e docker (used with travis).
  - `xbps-uunshare(1)` - XBPS utility that uses `user_namespaces(7)` (part of xbps, default).
  - `xbps-uchroot(1)` - XBPS utility that uses `namespaces` and must be `setgid` (part of xbps).
- - `proot(1)` - utility that implements chroot/bind mounts in user space, see https://proot-me.github.io/.
 
 > NOTE: `xbps-src` does not allow building as root anymore. Use one of the chroot
 methods shown above.
@@ -136,17 +135,6 @@ If for some reason it's erroring out as `ERROR clone (Operation not permitted)`,
 your user is a member of the required `group` and that `xbps-uchroot(1)` utility has the
 proper permissions and owner/group as explained above.
 
-#### proot(1)
-
-The `proot(1)` utility implements chroot and bind mounts support completely in user space,
-and can be used if your Linux kernel does not have support for namespaces. See https://proot-me.github.io/.
-for more information.
-
-To enable it:
-
-    $ cd void-packages
-    $ echo XBPS_CHROOT_CMD=proot >> etc/conf
-
 <a name="install-bootstrap"></a>
 ### Install the bootstrap packages
 
@@ -404,7 +392,7 @@ checksum of the downloaded file matches the one specified in the template.
 Ultimately, if no mirror carries the distfile, or in case all downloads failed the
 checksum verification, the original download location is used.
 
-If you use `proot` or `uchroot` for your XBPS_CHROOT_CMD, you may also specify a local path
+If you use `uchroot` for your XBPS_CHROOT_CMD, you may also specify a local path
 using the `file://` prefix or simply an absolute path on your build host (e.g. /mnt/distfiles).
 Mirror locations specified this way are bind mounted inside the chroot environment
 under $XBPS_MASTERDIR and searched for distfiles just the same as remote locations.
diff --git a/common/chroot-style/proot.sh b/common/chroot-style/proot.sh
deleted file mode 100755
index 5c670ea5da8..00000000000
--- a/common/chroot-style/proot.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-#
-# This chroot script uses proot (see http://proot.me)
-#
-readonly MASTERDIR="$1"
-readonly DISTDIR="$2"
-readonly HOSTDIR="$3"
-readonly EXTRA_ARGS="$4"
-shift 4
-
-if ! command -v proot >/dev/null 2>&1; then
-	exit 1
-fi
-
-if [ -z "$MASTERDIR" -o -z "$DISTDIR" ]; then
-	echo "$0 MASTERDIR/DISTDIR not set"
-	exit 1
-fi
-
-# proot does not properly return the resultcode. Workaround this
-RESULT=$(mktemp) || exit 1
-
-PROOT_NO_SECCOMP=1 proot -r $MASTERDIR -w / -b "$RESULT:/.result" -b $DISTDIR:/void-packages \
-	${HOSTDIR:+-b $HOSTDIR:/host} -b /proc:/proc -b /dev:/dev \
-	-b /sys:/sys $EXTRA_ARGS /bin/sh -c '$@; echo $? > /.result' $0 $@
-
-rv=$(cat "$RESULT")
-rm "$RESULT"
-
-exit $rv
diff --git a/common/xbps-src/libexec/build.sh b/common/xbps-src/libexec/build.sh
index 6abc988298b..3ac5a962d15 100755
--- a/common/xbps-src/libexec/build.sh
+++ b/common/xbps-src/libexec/build.sh
@@ -41,9 +41,6 @@ check_pkg_arch $XBPS_CROSS_BUILD
 if [ -z "$XBPS_CROSS_PREPARE" ]; then
     prepare_cross_sysroot $XBPS_CROSS_BUILD || exit $?
 fi
-if [ -z "$XBPS_DEPENDENCY" -a -z "$XBPS_TEMP_MASTERDIR" -a -n "$XBPS_KEEP_ALL" -a "$XBPS_CHROOT_CMD" = "proot" ]; then
-    remove_pkg_autodeps
-fi
 # Install dependencies from binary packages
 if [ "$PKGNAME" != "$XBPS_TARGET_PKG" -o -z "$XBPS_SKIP_DEPS" ]; then
     install_pkg_deps $PKGNAME $XBPS_TARGET_PKG pkg $XBPS_CROSS_BUILD $XBPS_CROSS_PREPARE || exit $?
diff --git a/xbps-src b/xbps-src
index 3cd19dc42ec..b9bb4b6dae4 100755
--- a/xbps-src
+++ b/xbps-src
@@ -317,7 +317,7 @@ read_pkg() {
 setup_distfiles_mirror() {
     local mirror scheme path
 
-    # Scheme file:// mirror locations only work with uchroot or proot
+    # Scheme file:// mirror locations only work with uchroot
     for mirror in $XBPS_DISTFILES_MIRROR; do
         scheme="file"
         if [[ "$mirror" == *://* ]]; then
@@ -327,7 +327,7 @@ setup_distfiles_mirror() {
             path="$mirror"
         fi
         [ "$scheme" != "file" ] && continue
-        if [ "$XBPS_CHROOT_CMD" == "uchroot" -o "$XBPS_CHROOT_CMD" == "proot" ]; then
+        if [ "$XBPS_CHROOT_CMD" == "uchroot" ]; then
             if [ ! -d "$path" ]; then
                 msg_warn "xbps-src: Invalid path in XBPS_DISTFILES_MIRROR ($mirror)\n"
                 continue

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: xbps-src: remove proot chroot-style
  2020-11-07 21:58 [PR PATCH] common: remove proot chroot-style Duncaen
                   ` (3 preceding siblings ...)
  2020-11-07 22:07 ` [PR PATCH] [Updated] " Duncaen
@ 2020-11-07 22:15 ` Duncaen
  2020-11-07 22:23 ` pullmoll
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Duncaen @ 2020-11-07 22:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 179 bytes --]

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/26204#issuecomment-723501968

Comment:
removed every mention from the readme.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: xbps-src: remove proot chroot-style
  2020-11-07 21:58 [PR PATCH] common: remove proot chroot-style Duncaen
                   ` (4 preceding siblings ...)
  2020-11-07 22:15 ` Duncaen
@ 2020-11-07 22:23 ` pullmoll
  2020-11-07 22:23 ` Chocimier
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pullmoll @ 2020-11-07 22:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 273 bytes --]

New comment by pullmoll on void-packages repository

https://github.com/void-linux/void-packages/pull/26204#issuecomment-723502605

Comment:
There is an alpha release at https://github.com/proot-me/proot dated 2020-04-14 which builds here. I haven't tested it yet, though.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: xbps-src: remove proot chroot-style
  2020-11-07 21:58 [PR PATCH] common: remove proot chroot-style Duncaen
                   ` (5 preceding siblings ...)
  2020-11-07 22:23 ` pullmoll
@ 2020-11-07 22:23 ` Chocimier
  2020-11-07 22:29 ` [PR PATCH] [Updated] " Duncaen
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Chocimier @ 2020-11-07 22:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 183 bytes --]

New comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/26204#issuecomment-723502625

Comment:
proot is also mentioned in defaults.conf

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] xbps-src: remove proot chroot-style
  2020-11-07 21:58 [PR PATCH] common: remove proot chroot-style Duncaen
                   ` (6 preceding siblings ...)
  2020-11-07 22:23 ` Chocimier
@ 2020-11-07 22:29 ` Duncaen
  2020-11-07 23:25 ` fosslinux
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Duncaen @ 2020-11-07 22:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 433 bytes --]

There is an updated pull request by Duncaen against master on the void-packages repository

https://github.com/Duncaen/void-packages proot
https://github.com/void-linux/void-packages/pull/26204

xbps-src: remove proot chroot-style
proot is broken and result in random hard to debug issues,
this is the best way to not have new users use it.

A patch file from https://github.com/void-linux/void-packages/pull/26204.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-proot-26204.patch --]
[-- Type: text/x-diff, Size: 5928 bytes --]

From 542af78472f054a58a6af65b49849da00ad6a076 Mon Sep 17 00:00:00 2001
From: Duncaen <duncaen@voidlinux.org>
Date: Sat, 7 Nov 2020 22:50:11 +0100
Subject: [PATCH] xbps-src: remove proot chroot-style

proot is broken and result in random hard to debug issues,
this is the best way to not have new users use it.
---
 README.md                        | 14 +-------------
 common/chroot-style/proot.sh     | 30 ------------------------------
 common/xbps-src/libexec/build.sh |  3 ---
 etc/defaults.conf                |  3 +--
 xbps-src                         |  4 ++--
 5 files changed, 4 insertions(+), 50 deletions(-)
 delete mode 100755 common/chroot-style/proot.sh

diff --git a/README.md b/README.md
index 9238b1918ef..7c89d5a5a90 100644
--- a/README.md
+++ b/README.md
@@ -51,7 +51,6 @@ multiple utilities to accomplish this task:
  - `ethereal` - only useful for one-shot containers, i.e docker (used with travis).
  - `xbps-uunshare(1)` - XBPS utility that uses `user_namespaces(7)` (part of xbps, default).
  - `xbps-uchroot(1)` - XBPS utility that uses `namespaces` and must be `setgid` (part of xbps).
- - `proot(1)` - utility that implements chroot/bind mounts in user space, see https://proot-me.github.io/.
 
 > NOTE: `xbps-src` does not allow building as root anymore. Use one of the chroot
 methods shown above.
@@ -136,17 +135,6 @@ If for some reason it's erroring out as `ERROR clone (Operation not permitted)`,
 your user is a member of the required `group` and that `xbps-uchroot(1)` utility has the
 proper permissions and owner/group as explained above.
 
-#### proot(1)
-
-The `proot(1)` utility implements chroot and bind mounts support completely in user space,
-and can be used if your Linux kernel does not have support for namespaces. See https://proot-me.github.io/.
-for more information.
-
-To enable it:
-
-    $ cd void-packages
-    $ echo XBPS_CHROOT_CMD=proot >> etc/conf
-
 <a name="install-bootstrap"></a>
 ### Install the bootstrap packages
 
@@ -404,7 +392,7 @@ checksum of the downloaded file matches the one specified in the template.
 Ultimately, if no mirror carries the distfile, or in case all downloads failed the
 checksum verification, the original download location is used.
 
-If you use `proot` or `uchroot` for your XBPS_CHROOT_CMD, you may also specify a local path
+If you use `uchroot` for your XBPS_CHROOT_CMD, you may also specify a local path
 using the `file://` prefix or simply an absolute path on your build host (e.g. /mnt/distfiles).
 Mirror locations specified this way are bind mounted inside the chroot environment
 under $XBPS_MASTERDIR and searched for distfiles just the same as remote locations.
diff --git a/common/chroot-style/proot.sh b/common/chroot-style/proot.sh
deleted file mode 100755
index 5c670ea5da8..00000000000
--- a/common/chroot-style/proot.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-#
-# This chroot script uses proot (see http://proot.me)
-#
-readonly MASTERDIR="$1"
-readonly DISTDIR="$2"
-readonly HOSTDIR="$3"
-readonly EXTRA_ARGS="$4"
-shift 4
-
-if ! command -v proot >/dev/null 2>&1; then
-	exit 1
-fi
-
-if [ -z "$MASTERDIR" -o -z "$DISTDIR" ]; then
-	echo "$0 MASTERDIR/DISTDIR not set"
-	exit 1
-fi
-
-# proot does not properly return the resultcode. Workaround this
-RESULT=$(mktemp) || exit 1
-
-PROOT_NO_SECCOMP=1 proot -r $MASTERDIR -w / -b "$RESULT:/.result" -b $DISTDIR:/void-packages \
-	${HOSTDIR:+-b $HOSTDIR:/host} -b /proc:/proc -b /dev:/dev \
-	-b /sys:/sys $EXTRA_ARGS /bin/sh -c '$@; echo $? > /.result' $0 $@
-
-rv=$(cat "$RESULT")
-rm "$RESULT"
-
-exit $rv
diff --git a/common/xbps-src/libexec/build.sh b/common/xbps-src/libexec/build.sh
index 6abc988298b..3ac5a962d15 100755
--- a/common/xbps-src/libexec/build.sh
+++ b/common/xbps-src/libexec/build.sh
@@ -41,9 +41,6 @@ check_pkg_arch $XBPS_CROSS_BUILD
 if [ -z "$XBPS_CROSS_PREPARE" ]; then
     prepare_cross_sysroot $XBPS_CROSS_BUILD || exit $?
 fi
-if [ -z "$XBPS_DEPENDENCY" -a -z "$XBPS_TEMP_MASTERDIR" -a -n "$XBPS_KEEP_ALL" -a "$XBPS_CHROOT_CMD" = "proot" ]; then
-    remove_pkg_autodeps
-fi
 # Install dependencies from binary packages
 if [ "$PKGNAME" != "$XBPS_TARGET_PKG" -o -z "$XBPS_SKIP_DEPS" ]; then
     install_pkg_deps $PKGNAME $XBPS_TARGET_PKG pkg $XBPS_CROSS_BUILD $XBPS_CROSS_PREPARE || exit $?
diff --git a/etc/defaults.conf b/etc/defaults.conf
index 6e297903fbd..a652310307b 100644
--- a/etc/defaults.conf
+++ b/etc/defaults.conf
@@ -118,14 +118,13 @@ XBPS_SUCMD="sudo /bin/sh -c"
 #
 # 	- uunshare (uses xbps-uunshare(1), user namespaces)
 # 	- uchroot (uses xbps-uchroot(1), namespaces, setgid)
-# 	- proot (uses proot, external, does not need special permissions)
 # 	- bwrap (uses bwrap, external, does not need special permissions)
 #	- ethereal (uses root, needs no permissions, for disposable containers)
 #
 # The order is already set as shown above, but can be overriden below.
 # Additional arguments to the chroot style can be passed in via XBPS_CHROOT_CMD_ARGS.
 #
-#XBPS_CHROOT_CMD=proot
+#XBPS_CHROOT_CMD=uchroot
 #XBPS_CHROOT_CMD_ARGS=""
 
 # [OPTIONAL]
diff --git a/xbps-src b/xbps-src
index 3cd19dc42ec..b9bb4b6dae4 100755
--- a/xbps-src
+++ b/xbps-src
@@ -317,7 +317,7 @@ read_pkg() {
 setup_distfiles_mirror() {
     local mirror scheme path
 
-    # Scheme file:// mirror locations only work with uchroot or proot
+    # Scheme file:// mirror locations only work with uchroot
     for mirror in $XBPS_DISTFILES_MIRROR; do
         scheme="file"
         if [[ "$mirror" == *://* ]]; then
@@ -327,7 +327,7 @@ setup_distfiles_mirror() {
             path="$mirror"
         fi
         [ "$scheme" != "file" ] && continue
-        if [ "$XBPS_CHROOT_CMD" == "uchroot" -o "$XBPS_CHROOT_CMD" == "proot" ]; then
+        if [ "$XBPS_CHROOT_CMD" == "uchroot" ]; then
             if [ ! -d "$path" ]; then
                 msg_warn "xbps-src: Invalid path in XBPS_DISTFILES_MIRROR ($mirror)\n"
                 continue

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: xbps-src: remove proot chroot-style
  2020-11-07 21:58 [PR PATCH] common: remove proot chroot-style Duncaen
                   ` (7 preceding siblings ...)
  2020-11-07 22:29 ` [PR PATCH] [Updated] " Duncaen
@ 2020-11-07 23:25 ` fosslinux
  2020-11-09 13:08 ` ericonr
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: fosslinux @ 2020-11-07 23:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

New comment by fosslinux on void-packages repository

https://github.com/void-linux/void-packages/pull/26204#issuecomment-723508009

Comment:
I agree with this change. I don't believe proot is a good fit for xbps in any way and lots of stuff randomly breaks under it.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: xbps-src: remove proot chroot-style
  2020-11-07 21:58 [PR PATCH] common: remove proot chroot-style Duncaen
                   ` (8 preceding siblings ...)
  2020-11-07 23:25 ` fosslinux
@ 2020-11-09 13:08 ` ericonr
  2020-11-11 21:30 ` zenny
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: ericonr @ 2020-11-09 13:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 240 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/26204#issuecomment-724001412

Comment:
Another data point: https://github.com/void-linux/void-packages/issues/24240#issuecomment-723896196

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: xbps-src: remove proot chroot-style
  2020-11-07 21:58 [PR PATCH] common: remove proot chroot-style Duncaen
                   ` (9 preceding siblings ...)
  2020-11-09 13:08 ` ericonr
@ 2020-11-11 21:30 ` zenny
  2020-11-11 21:32 ` zenny
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: zenny @ 2020-11-11 21:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 286 bytes --]

New comment by zenny on void-packages repository

https://github.com/void-linux/void-packages/pull/26204#issuecomment-725671926

Comment:
> removed every mention from the readme.

Is it only me that I still see https://github.com/void-linux/void-packages/blob/master/README.md#proot1

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: xbps-src: remove proot chroot-style
  2020-11-07 21:58 [PR PATCH] common: remove proot chroot-style Duncaen
                   ` (10 preceding siblings ...)
  2020-11-11 21:30 ` zenny
@ 2020-11-11 21:32 ` zenny
  2020-11-11 21:34 ` zenny
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: zenny @ 2020-11-11 21:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 354 bytes --]

New comment by zenny on void-packages repository

https://github.com/void-linux/void-packages/pull/26204#issuecomment-725671926

Comment:
> removed every mention from the readme.

Is it only me that I still see the mention in `readme` till these lines are written? 

```
https://github.com/void-linux/void-packages/blob/master/README.md#proot1
```

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: xbps-src: remove proot chroot-style
  2020-11-07 21:58 [PR PATCH] common: remove proot chroot-style Duncaen
                   ` (11 preceding siblings ...)
  2020-11-11 21:32 ` zenny
@ 2020-11-11 21:34 ` zenny
  2020-11-11 22:48 ` Duncaen
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: zenny @ 2020-11-11 21:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 387 bytes --]

New comment by zenny on void-packages repository

https://github.com/void-linux/void-packages/pull/26204#issuecomment-725673622

Comment:
> There is an alpha release at https://github.com/proot-me/proot dated 2020-04-14 which builds here. I haven't tested it yet, though.

I tried with the release you mentioned, but still problematic to build gccemacs without any way to debug, fyi. 

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: xbps-src: remove proot chroot-style
  2020-11-07 21:58 [PR PATCH] common: remove proot chroot-style Duncaen
                   ` (12 preceding siblings ...)
  2020-11-11 21:34 ` zenny
@ 2020-11-11 22:48 ` Duncaen
  2020-11-23  5:11 ` ericonr
  2020-12-30  7:02 ` [PR PATCH] [Merged]: " the-maldridge
  15 siblings, 0 replies; 17+ messages in thread
From: Duncaen @ 2020-11-11 22:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 443 bytes --]

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/26204#issuecomment-725704314

Comment:
> > removed every mention from the readme.
> 
> Is it only me that I still see the mention in `readme` till these lines are written?
> 
> ```
> https://github.com/void-linux/void-packages/blob/master/README.md#proot1
> ```

I was talking about the changes in this PR, that are not yet merged...

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: xbps-src: remove proot chroot-style
  2020-11-07 21:58 [PR PATCH] common: remove proot chroot-style Duncaen
                   ` (13 preceding siblings ...)
  2020-11-11 22:48 ` Duncaen
@ 2020-11-23  5:11 ` ericonr
  2020-12-30  7:02 ` [PR PATCH] [Merged]: " the-maldridge
  15 siblings, 0 replies; 17+ messages in thread
From: ericonr @ 2020-11-23  5:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 145 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/26204#issuecomment-731929817

Comment:
Ping

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Merged]: xbps-src: remove proot chroot-style
  2020-11-07 21:58 [PR PATCH] common: remove proot chroot-style Duncaen
                   ` (14 preceding siblings ...)
  2020-11-23  5:11 ` ericonr
@ 2020-12-30  7:02 ` the-maldridge
  15 siblings, 0 replies; 17+ messages in thread
From: the-maldridge @ 2020-12-30  7:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 279 bytes --]

There's a merged pull request on the void-packages repository

xbps-src: remove proot chroot-style
https://github.com/void-linux/void-packages/pull/26204

Description:
proot is broken and result in random hard to debug issues,
this is the best way to not have new users use it.

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2020-12-30  7:02 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-07 21:58 [PR PATCH] common: remove proot chroot-style Duncaen
2020-11-07 21:58 ` [PR PATCH] [Updated] " Duncaen
2020-11-07 22:05 ` xbps-src: " ericonr
2020-11-07 22:05 ` ericonr
2020-11-07 22:07 ` [PR PATCH] [Updated] " Duncaen
2020-11-07 22:15 ` Duncaen
2020-11-07 22:23 ` pullmoll
2020-11-07 22:23 ` Chocimier
2020-11-07 22:29 ` [PR PATCH] [Updated] " Duncaen
2020-11-07 23:25 ` fosslinux
2020-11-09 13:08 ` ericonr
2020-11-11 21:30 ` zenny
2020-11-11 21:32 ` zenny
2020-11-11 21:34 ` zenny
2020-11-11 22:48 ` Duncaen
2020-11-23  5:11 ` ericonr
2020-12-30  7:02 ` [PR PATCH] [Merged]: " the-maldridge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).