From c9ae4cae140bee7af7847967ce545eb3ddd1b256 Mon Sep 17 00:00:00 2001 From: Nathan Owens Date: Mon, 14 Dec 2020 10:36:26 -0600 Subject: [PATCH] giggle: Fix cross build --- srcpkgs/giggle/patches/0001-Fix-cross.patch | 34 +++++++++++++++++++++ srcpkgs/giggle/template | 1 - 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/giggle/patches/0001-Fix-cross.patch diff --git a/srcpkgs/giggle/patches/0001-Fix-cross.patch b/srcpkgs/giggle/patches/0001-Fix-cross.patch new file mode 100644 index 00000000000..9589fdc0ac1 --- /dev/null +++ b/srcpkgs/giggle/patches/0001-Fix-cross.patch @@ -0,0 +1,34 @@ +From a3f22386938bd54214011b2b711b55b5fa277698 Mon Sep 17 00:00:00 2001 +From: Nathan Owens +Date: Mon, 14 Dec 2020 10:18:27 -0600 +Subject: [PATCH] Fix cross + +--- + configure | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git configure configure +index 3faf65b..ddbdb2f 100755 +--- configure ++++ configure +@@ -13359,7 +13359,7 @@ $as_echo "#define _GNU_SOURCE 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU extensions of strptime()" >&5 + $as_echo_n "checking for GNU extensions of strptime()... " >&6; } +-if test "$cross_compiling" = yes; then : ++if test "$cross_compiling" = xyes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + as_fn_error $? "cannot run test program while cross compiling +@@ -13395,7 +13395,7 @@ fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t type" >&5 + $as_echo_n "checking size of time_t type... " >&6; } +-if test "$cross_compiling" = yes; then : ++if test "$cross_compiling" = xyes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + as_fn_error $? "cannot run test program while cross compiling +-- +2.29.2 + diff --git a/srcpkgs/giggle/template b/srcpkgs/giggle/template index 9da11473757..2e42bcb849f 100644 --- a/srcpkgs/giggle/template +++ b/srcpkgs/giggle/template @@ -13,7 +13,6 @@ homepage="https://wiki.gnome.org/Apps/giggle" distfiles="${GNOME_SITE}/${pkgname}/${version}/${pkgname}-${version}.tar.xz" checksum=ae2e2237fa0d0999d99d0a0ee9b7ec147e80bd2472d59a045b2b01eb02261f59 lib32disabled=yes -nocross=yes CFLAGS="-fcommon"