`OWD` is not set when `APPIMAGE_EXTRACT_AND_RUN=1`
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- c
- Área
- operating-systems
Línea de trabajo
Comienza con src/runtime/runtime.c alrededor del manejo de OWD en la línea 1710 y, después, ejecuta la reproducción de Bazel proporcionada con y sin APPIMAGE_EXTRACT_AND_RUN=1. Compara la salida del entorno en ambos modos y verifica que la ruta de ejecución extraída establezca OWD de forma coherente con la ruta montada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
See https://github.com/lalten/rules_appimage/issues/156
To reproduce:
cd `mktemp -d`
echo 'bazel_dep(name="rules_appimage", version="1.8.0")' > MODULE.bazel
cat <<'EOF' >BUILD
load("@rules_appimage//appimage:appimage.bzl", "appimage")
sh_binary(
name = "test_sh",
srcs = ["test.sh"],
)
appimage(
name = "test.appimage",
binary = ":test_sh",
)
EOF
cat <<'EOF' >test.sh
#!/bin/bash
pwd
env | sort
EOF
chmod +x test.sh
bazel build //:test.appimage
I've attached the resulting test.appimage:
test.appimage.tar.gz
❯ env -i -- PATH="/bin" bazel-bin/test.appimage
/tmp/.mount_test.aIPOIGM/test_sh.runfiles/_main
APPDIR=/tmp/.mount_test.aIPOIGM
APPIMAGE=/home/user/.cache/bazel/_bazel_user/5f48ff965103b174f3c248651ebad24d/execroot/_main/bazel-out/k8-fastbuild/bin/test.appimage
ARGV0=bazel-bin/test.appimage
BUILD_WORKING_DIRECTORY=/home/user/repo
OLDPWD=/home/user/repo
OWD=/home/user/repo
PATH=/bin
PWD=/tmp/.mount_test.aIPOIGM/test_sh.runfiles/_main
RUNFILES_DIR=/tmp/.mount_test.aIPOIGM/test_sh.runfiles
SHLVL=1
TMPDIR=/tmp
_=/bin/env
❯ env -i -- PATH="/bin" APPIMAGE_EXTRACT_AND_RUN=1 bazel-bin/test.appimage
/tmp/appimage_extracted_065248ba50a9cbfc7dc25b7b2eaffc36/test_sh.runfiles/_main
APPDIR=/tmp/appimage_extracted_065248ba50a9cbfc7dc25b7b2eaffc36
APPIMAGE=/home/user/.cache/bazel/_bazel_user/5f48ff965103b174f3c248651ebad24d/execroot/_main/bazel-out/k8-fastbuild/bin/test.appimage
APPIMAGE_EXTRACT_AND_RUN=1
ARGV0=bazel-bin/test.appimage
BUILD_WORKING_DIRECTORY=
OLDPWD=/home/user/repo
PATH=/bin
PWD=/tmp/appimage_extracted_065248ba50a9cbfc7dc25b7b2eaffc36/test_sh.runfiles/_main
RUNFILES_DIR=/tmp/appimage_extracted_065248ba50a9cbfc7dc25b7b2eaffc36/test_sh.runfiles
SHLVL=1
TMPDIR=/tmp
_=/bin/env
you can see the OWD variable from https://github.com/AppImage/type2-runtime/blob/9594e2b1306a83b1020145f4e4e29c61065536a4/src/runtime/runtime.c#L1710 is set only when the appimage is mounted via fuse, but not when running with APPIMAGE_EXTRACT_AND_RUN=1.
It probably also makes sense to prefix the env var with APPIMAGE_ but that's a different issue.
- Lenguaje dominante
- C
- Estrellas
- 74
- Forks
- 38
- Merge medio
- 3 h 31 min
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de AppImage/type2-runtime
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
AppImage/type2-runtime#153 ·
-
fusermount3 get's skipped if not setuid, which breaks new fuse implementationsPosiblemente ocupada @probonopd la tomó hace 17 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
AppImage/type2-runtime#150 · 4 comentarios ·
-
Some apps can break unless it is run extractedPosiblemente ocupada @probonopd la tomó hace 5 días. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
AppImage/type2-runtime#144 · 2 comentarios ·
-
Tagged ReleasesAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
AppImage/type2-runtime#140 · 17 comentarios · 3 reacciones ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
AppImage/type2-runtime#133 · 11 comentarios · 1 reacción ·
Todos los issues de AppImage/type2-runtime
Issues similares
-
Discover carries headerEdges that nothing reads since #1914 moved E0507/E0517 to the compiler graphAbiertotech-debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
2个显示的问题Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
coolsnowwolf/lede#14209 ·
-
Status: Opened
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
Los mantenedores suelen responder en 3 días