Bug#1017621: seahorse-nautilus: Fails to build with Nautilus 43

2022-11-22 Thread Andreas Metzler
On 2022-08-18 Jeremy Bicha  wrote:
> Source: seahorse-nautilus
[...]
> The newest release of Nautilus, version 43, has switched to GTK4 and
> includes major changes in the extensions API.

> seahorse-nautilus will need to be converted to GTK4 and make other changes
> for the new version.

> Nautilus 43 is available in Debian Experimental. When we upload
> nautilus 43 to Debian Unstable, we will need to remove
> seahorse-nautilus from Testing unless this bug is fixed, because the
> package will no longer build from source.

Hello,

as of today seahorse-nautilus actually FTBFS. It fails to locate gpgme
(gpgme-config was dropped, superseded by pkg-config). Find attached
a patch to fix this. Even with this change it later fails with
checking for libnautilus-extension >= 2.12.0 glib-2.0 >= 2.10.0... no

(There is now a libnautilus-extension-4.pc).

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
--- seahorse-nautilus-3.11.92.orig/configure.ac
+++ seahorse-nautilus-3.11.92/configure.ac
@@ -87,41 +87,7 @@ if test	"$DO_CHECK" = "yes"; then
 	fi
 fi
 
-ok="no"
-min_gpgme_version=1.0.0
-AC_PATH_PROG(GPGME_CONFIG, gpgme-config, "failed")
-if test $GPGME_CONFIG != "failed" ; then
-	AC_MSG_CHECKING(for GPGME - version >= $min_gpgme_version)
-	req_major=`echo $min_gpgme_version | \
-		sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
-	req_minor=`echo $min_gpgme_version | \
-		sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
-	req_micro=`echo $min_gpgme_version | \
-		sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
-	gpgme_config_version=`$GPGME_CONFIG --version`
-	major=`echo $gpgme_config_version | \
-		sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
-	minor=`echo $gpgme_config_version | \
-		sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
-	micro=`echo $gpgme_config_version | \
-		sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'`
-
-	if test "$major" -eq "$req_major"; then
-		if test "$minor" -ge "$req_minor"; then
-			if test "$micro" -ge "$req_micro"; then
-ok="yes"
-			fi
-		fi
-	fi
-fi
-
-if test $ok = "yes"; then
-	GPGME_CFLAGS=`$GPGME_CONFIG --cflags`
-	GPGME_LIBS=`$GPGME_CONFIG --libs`
-	AC_MSG_RESULT(yes)
-else
-	AC_MSG_ERROR(GPGME $min_gpgme_version or later needed)
-fi
+PKG_CHECK_MODULES(GPGME, [gpgme >= 1.0.0])
 
 SEAHORSE_CFLAGS="$SEAHORSE_CFLAGS $GPGME_CFLAGS"
 SEAHORSE_LIBS="$SEAHORSE_LIBS $GPGME_LIBS"
@@ -298,6 +264,6 @@ nautilus-ext/Makefile
 
 echo "
 GnuPG Version:   $gnupg_version
-GPGME Version:   $gpgme_config_version
+GPGME Version:   $GPGME_VERSION
 Notification Support:$enable_libnotify
 "


Bug#1017621: seahorse-nautilus: Fails to build with Nautilus 43

2022-08-18 Thread Jeremy Bicha
Source: seahorse-nautilus
Version: 3.11.92-4
Severity: important
Tags: ftbfs sid bookworm

The newest release of Nautilus, version 43, has switched to GTK4 and
includes major changes in the extensions API.

seahorse-nautilus will need to be converted to GTK4 and make other changes
for the new version.

Nautilus 43 is available in Debian Experimental. When we upload
nautilus 43 to Debian Unstable, we will need to remove
seahorse-nautilus from Testing unless this bug is fixed, because the
package will no longer build from source.

Thank you,
Jeremy Bicha