flatpak: 0.11.7 → 0.11.8.2
This commit is contained in:
parent
79b7808597
commit
eb969e2f89
@ -4,7 +4,7 @@
|
|||||||
, libsoup, lzma, ostree, polkit, python3, systemd, xlibs, valgrind, glib_networking, makeWrapper, gnome3 }:
|
, libsoup, lzma, ostree, polkit, python3, systemd, xlibs, valgrind, glib_networking, makeWrapper, gnome3 }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "0.11.7";
|
version = "0.11.8.2";
|
||||||
desktop_schemas = gnome3.gsettings_desktop_schemas;
|
desktop_schemas = gnome3.gsettings_desktop_schemas;
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "flatpak-${version}";
|
name = "flatpak-${version}";
|
||||||
@ -13,7 +13,7 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/flatpak/flatpak/releases/download/${version}/${name}.tar.xz";
|
url = "https://github.com/flatpak/flatpak/releases/download/${version}/${name}.tar.xz";
|
||||||
sha256 = "1vq4j7v68lp4fsvpas1bcsx1z4snpj0mkbq2mi00kx3jb48z768h";
|
sha256 = "03c2fx0y7irvws25858x217xmbacn2vfdypf8vc32hkrbh9i6df7";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
--- a/tests/libtest.sh
|
--- a/tests/libtest.sh
|
||||||
+++ b/tests/libtest.sh
|
+++ b/tests/libtest.sh
|
||||||
@@ -322,7 +322,7 @@
|
@@ -324,7 +324,7 @@
|
||||||
# running installed-tests: assume we know what we're doing
|
# running installed-tests: assume we know what we're doing
|
||||||
:
|
:
|
||||||
elif ! "$FLATPAK_BWRAP" --unshare-ipc --unshare-net --unshare-pid \
|
elif ! "$FLATPAK_BWRAP" --unshare-ipc --unshare-net --unshare-pid \
|
||||||
@ -9,7 +9,7 @@
|
|||||||
sed -e 's/^/# /' < bwrap-result
|
sed -e 's/^/# /' < bwrap-result
|
||||||
echo "1..0 # SKIP Cannot run bwrap"
|
echo "1..0 # SKIP Cannot run bwrap"
|
||||||
exit 0
|
exit 0
|
||||||
@@ -330,7 +330,7 @@
|
@@ -332,7 +332,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
skip_without_python2 () {
|
skip_without_python2 () {
|
||||||
@ -18,7 +18,7 @@
|
|||||||
echo "1..0 # SKIP this test requires /usr/bin/python2 (2.7) support"
|
echo "1..0 # SKIP this test requires /usr/bin/python2 (2.7) support"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@@ -350,12 +350,12 @@
|
@@ -352,12 +352,12 @@
|
||||||
export DBUS_SESSION_BUS_ADDRESS="$(cat dbus-session-bus-address)"
|
export DBUS_SESSION_BUS_ADDRESS="$(cat dbus-session-bus-address)"
|
||||||
DBUS_SESSION_BUS_PID="$(cat dbus-session-bus-pid)"
|
DBUS_SESSION_BUS_PID="$(cat dbus-session-bus-pid)"
|
||||||
|
|
||||||
@ -28,30 +28,51 @@
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cleanup () {
|
cleanup () {
|
||||||
- /bin/kill $DBUS_SESSION_BUS_PID ${FLATPAK_HTTP_PID:-}
|
- /bin/kill -9 $DBUS_SESSION_BUS_PID ${FLATPAK_HTTP_PID:-}
|
||||||
+ @coreutils@/bin/kill $DBUS_SESSION_BUS_PID ${FLATPAK_HTTP_PID:-}
|
+ @coreutils@/bin/kill -9 $DBUS_SESSION_BUS_PID ${FLATPAK_HTTP_PID:-}
|
||||||
gpg-connect-agent --homedir "${FL_GPG_HOMEDIR}" killagent /bye || true
|
gpg-connect-agent --homedir "${FL_GPG_HOMEDIR}" killagent /bye || true
|
||||||
fusermount -u $XDG_RUNTIME_DIR/doc || :
|
fusermount -u $XDG_RUNTIME_DIR/doc || :
|
||||||
if test -n "${TEST_SKIP_CLEANUP:-}"; then
|
if test -n "${TEST_SKIP_CLEANUP:-}"; then
|
||||||
--- a/tests/make-test-runtime.sh
|
--- a/tests/make-test-runtime.sh
|
||||||
+++ b/tests/make-test-runtime.sh
|
+++ b/tests/make-test-runtime.sh
|
||||||
@@ -21,6 +21,7 @@
|
@@ -26,6 +26,7 @@
|
||||||
cat ${DIR}/metadata
|
PATH="$PATH:/usr/sbin:/sbin"
|
||||||
|
|
||||||
# Add bash and dependencies
|
# Add bash and dependencies
|
||||||
+mkdir -p ${DIR}/nix/store
|
+mkdir -p ${DIR}/nix/store
|
||||||
mkdir -p ${DIR}/usr/bin
|
mkdir -p ${DIR}/usr/bin
|
||||||
mkdir -p ${DIR}/usr/lib
|
mkdir -p ${DIR}/usr/lib
|
||||||
ln -s ../lib ${DIR}/usr/lib64
|
ln -s ../lib ${DIR}/usr/lib64
|
||||||
@@ -30,47 +31,27 @@
|
@@ -35,73 +36,27 @@
|
||||||
else
|
else
|
||||||
cp `which ldconfig` ${DIR}/usr/bin
|
cp `which ldconfig` ${DIR}/usr/bin
|
||||||
fi
|
fi
|
||||||
-T=`mktemp`
|
-LIBS=`mktemp`
|
||||||
-for i in $@; do
|
-BINS=`mktemp`
|
||||||
|
-
|
||||||
|
-add_bin() {
|
||||||
|
- local f=$1
|
||||||
|
- shift
|
||||||
|
-
|
||||||
|
- if grep -qFe "${f}" $BINS; then
|
||||||
|
- # Already handled
|
||||||
|
- return 0
|
||||||
|
- fi
|
||||||
|
-
|
||||||
|
- echo $f >> $BINS
|
||||||
|
-
|
||||||
|
- # Add library dependencies
|
||||||
|
- (ldd "${f}" | sed "s/.* => //" | awk '{ print $1}' | grep ^/ | sort -u -o $LIBS $LIBS -) || true
|
||||||
|
-
|
||||||
|
- local shebang=$(sed -n '1s/^#!\([^ ]*\).*/\1/p' "${f}")
|
||||||
|
- if [ x$shebang != x ]; then
|
||||||
|
- add_bin "$shebang"
|
||||||
|
- fi
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
for i in $@; do
|
||||||
- I=`which $i`
|
- I=`which $i`
|
||||||
- cp $I ${DIR}/usr/bin
|
- add_bin $I
|
||||||
- ldd $I | sed "s/.* => //" | awk '{ print $1}' | grep ^/ | grep ^/ >> $T
|
|
||||||
- if test $i == python2; then
|
- if test $i == python2; then
|
||||||
- mkdir -p ${DIR}/usr/lib/python2.7/lib-dynload
|
- mkdir -p ${DIR}/usr/lib/python2.7/lib-dynload
|
||||||
- # This is a hardcoded minimal set of modules we need in the current tests.
|
- # This is a hardcoded minimal set of modules we need in the current tests.
|
||||||
@ -78,10 +99,13 @@
|
|||||||
- done
|
- done
|
||||||
- fi
|
- fi
|
||||||
-done
|
-done
|
||||||
ln -s bash ${DIR}/usr/bin/sh
|
-for i in `cat $BINS`; do
|
||||||
-for i in `sort -u $T`; do
|
- echo Adding binary $i 1>&2
|
||||||
|
- cp "$i" ${DIR}/usr/bin/
|
||||||
|
-done
|
||||||
|
-for i in `cat $LIBS`; do
|
||||||
|
- echo Adding library $i 1>&2
|
||||||
- cp "$i" ${DIR}/usr/lib/
|
- cp "$i" ${DIR}/usr/lib/
|
||||||
+for i in $@; do
|
|
||||||
+ I=$(readlink -f $(which $i))
|
+ I=$(readlink -f $(which $i))
|
||||||
+ requisites=$(nix-store --query --requisites "$I")
|
+ requisites=$(nix-store --query --requisites "$I")
|
||||||
+ for r in $requisites; do
|
+ for r in $requisites; do
|
||||||
@ -92,6 +116,7 @@
|
|||||||
+ done
|
+ done
|
||||||
+ ln -s $I ${DIR}/usr/bin/$i
|
+ ln -s $I ${DIR}/usr/bin/$i
|
||||||
done
|
done
|
||||||
|
ln -s bash ${DIR}/usr/bin/sh
|
||||||
|
|
||||||
-# We copy the C.UTF8 locale and call it en_US. Its a bit of a lie, but
|
-# We copy the C.UTF8 locale and call it en_US. Its a bit of a lie, but
|
||||||
-# the real en_US locale is often not available, because its in the
|
-# the real en_US locale is often not available, because its in the
|
||||||
@ -110,7 +135,7 @@
|
|||||||
collection_args=--collection-id=${COLLECTION_ID}
|
collection_args=--collection-id=${COLLECTION_ID}
|
||||||
--- a/tests/testlibrary.c
|
--- a/tests/testlibrary.c
|
||||||
+++ b/tests/testlibrary.c
|
+++ b/tests/testlibrary.c
|
||||||
@@ -378,7 +378,7 @@
|
@@ -610,7 +610,7 @@
|
||||||
{
|
{
|
||||||
gint exit_code = 0;
|
gint exit_code = 0;
|
||||||
char *argv[] = { (char *)bwrap, "--unshare-ipc", "--unshare-net",
|
char *argv[] = { (char *)bwrap, "--unshare-ipc", "--unshare-net",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user