]> git.pld-linux.org Git - packages/gnome-tour.git/commitdiff
- try with x32 patch
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 24 Apr 2021 15:54:09 +0000 (17:54 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 24 Apr 2021 15:54:09 +0000 (17:54 +0200)
gnome-tour-x32.patch [new file with mode: 0644]
gnome-tour.spec

diff --git a/gnome-tour-x32.patch b/gnome-tour-x32.patch
new file mode 100644 (file)
index 0000000..71a6f78
--- /dev/null
@@ -0,0 +1,26 @@
+--- ../BUILD/gnome-tour-40.0/build-aux/cargo.sh.orig   2021-03-23 16:31:44.642007800 +0100
++++ ../BUILD/gnome-tour-40.0/build-aux/cargo.sh        2021-04-24 17:48:45.504234520 +0200
+@@ -2,19 +2,20 @@
+ export MESON_BUILD_ROOT="$1"
+ export MESON_SOURCE_ROOT="$2"
+-export CARGO_TARGET_DIR="$MESON_BUILD_ROOT"/target
++export CARGO_TARGET_OPT="--target x86_64-unknown-linux-gnux32"
++export CARGO_TARGET_DIR="$MESON_BUILD_ROOT"/target/x86_64-unknown-linux-gnux32
+ export CARGO_HOME="$CARGO_TARGET_DIR"/cargo-home
+ FEATURES="$6"
+ if [ $4 = "Devel" ]
+ then
+     echo "DEBUG MODE"
+-    cargo build --manifest-path \
++    cargo build $CARGO_TARGET_OPT --manifest-path \
+         "$MESON_SOURCE_ROOT"/Cargo.toml $FEATURES && \
+         cp "$CARGO_TARGET_DIR"/debug/$5 $3
+ else
+     echo "RELEASE MODE"
+-    cargo build --manifest-path \
++    cargo build $CARGO_TARGET_OPT --manifest-path \
+         "$MESON_SOURCE_ROOT"/Cargo.toml $FEATURES --release && \
+         cp "$CARGO_TARGET_DIR"/release/$5 $3
+ fi
index c85507afd592879524f5029a325a5b0004dd2ab4..b5dce289c40bb494671812d682de8354a56e7330 100644 (file)
@@ -7,6 +7,7 @@ License:        GPL v3+
 Group:         X11/Applications
 Source0:       https://download.gnome.org/sources/gnome-tour/40/%{name}-%{version}.tar.xz
 # Source0-md5: d5ca4c8a9b248017c4e75fa4722caad0
+Patch0:                %{name}-x32.patch
 URL:           https://gitlab.gnome.org/GNOME/gnome-tour
 BuildRequires: appstream-glib
 BuildRequires: cargo
@@ -48,6 +49,9 @@ Przewodnik i powitanie dla środowiska GNOME.
 
 %prep
 %setup -q
+%ifarch x32
+%patch0 -p1
+%endif
 
 %build
 %meson build
This page took 0.135173 seconds and 4 git commands to generate.