Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296830 - net-misc/aria2-1.7.0 fails to compile with gnutls use flag enabled and gnutls 2.8.4
Summary: net-misc/aria2-1.7.0 fails to compile with gnutls use flag enabled and gnutls...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
: 297266 (view as bug list)
Depends on:
Blocks: 253709
  Show dependency tree
 
Reported: 2009-12-14 09:03 UTC by Till Korten
Modified: 2010-01-25 16:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
the config.log from aria2 (config.log,24.42 KB, text/plain)
2009-12-14 09:07 UTC, Till Korten
Details
emerge --info (emerge.info,3.99 KB, text/plain)
2009-12-14 09:07 UTC, Till Korten
Details
patch that fixes the issue (1.7.2-configure-pkg-config.patch,32.35 KB, patch)
2009-12-15 16:03 UTC, Till Korten
Details | Diff
ebuild that installs version 1.7.2 and applies the patch (aria2-1.7.2.ebuild,2.61 KB, text/plain)
2009-12-15 16:07 UTC, Till Korten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Till Korten 2009-12-14 09:03:29 UTC
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
Comment 1 Till Korten 2009-12-14 09:07:15 UTC
Created attachment 212963 [details]
the config.log from aria2
Comment 2 Till Korten 2009-12-14 09:07:33 UTC
Created attachment 212965 [details]
emerge --info
Comment 3 Till Korten 2009-12-14 09:28:40 UTC
I also reported the problem upstream:

https://sourceforge.net/tracker/?func=detail&aid=2914060&group_id=159897&atid=813673
Comment 4 Rafał Mużyło 2009-12-14 10:45:09 UTC
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 ?
Comment 5 Till Korten 2009-12-15 15:58:36 UTC
(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
Comment 6 Till Korten 2009-12-15 16:03:41 UTC
Created attachment 213092 [details, diff]
patch that fixes the issue
Comment 7 Till Korten 2009-12-15 16:07:16 UTC
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.
Comment 8 Rafał Mużyło 2009-12-18 16:22:57 UTC
*** Bug 297266 has been marked as a duplicate of this bug. ***
Comment 9 Tiziano Müller (RETIRED) gentoo-dev 2010-01-25 16:26:43 UTC
Thanks, fix included by upstream in 1.8.1.