updating of aria2 from 1.6.3-r1 to 1.7.0 fails with the following message: gnutls is version 2.8.4 this is probably similar to bug #253729 checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for xml2-config... /usr/bin/xml2-config checking for libxml - version >= 2.6.24... yes (version 2.7.3) checking for LIBGNUTLS... configure: WARNING: checking for libgnutls-config... no checking for libgnutls - version >= 1.2.9... no *** The libgnutls-config script installed by LIBGNUTLS could not be found *** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in *** your path, or set the LIBGNUTLS_CONFIG environment variable to the *** full path to libgnutls-config. configure: error: in `/var/tmp/portage/net-misc/aria2-1.7.0/work/aria2-1.7.0': configure: error: gnutls is requested but not found in the system. See `config.log' for more details. i'll attach emerge --info and the config.log file
Created attachment 212963 [details] the config.log from aria2
Created attachment 212965 [details] emerge --info
I also reported the problem upstream: https://sourceforge.net/tracker/?func=detail&aid=2914060&group_id=159897&atid=813673
Well, the problem is that this package has pkg-config check for gnutls. (though their configure.ac could use a fix or two, i.e. it should use host/build, not host/target) What does 'pkg-config gnutls --modversion' print for you ?
(In reply to comment #4) > Well, the problem is that this package has pkg-config check for gnutls. > (though their configure.ac could use a fix or two, i.e. > it should use host/build, not host/target) > > What does 'pkg-config gnutls --modversion' print for you ? > the command returns 2.8.4 actually, I got some response from upstream and the developer of aria2 posted a patch, which fixed the issue for me with aria2 version 1.7.2 (which is not in portage, yet) I'll attach the patch and an ebuild that works with that patch. Also, a workaround for this problem exists by enabling the sqlite use flag. Apparently, there was some bug in the configuring routine that made the config fall back to the deprecated libgnutls-config method, if sqlite was disabled. read more at the upstream bug report: https://sourceforge.net/tracker/index.php?func=detail&aid=2914060&group_id=159897&atid=813673
Created attachment 213092 [details, diff] patch that fixes the issue
Created attachment 213094 [details] ebuild that installs version 1.7.2 and applies the patch the ebuild is just a renamed version of the 1.7.0 ebuild with the epatch line added. i propose to get this upgraded ebuild into portage asap (probably as version 1.7.2-r1) in order to fix the issue of aria2 not compiling with the combination of gnutls and -sqlite use flags.
*** Bug 297266 has been marked as a duplicate of this bug. ***
Thanks, fix included by upstream in 1.8.1.