Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686420 - net-analyzer/hydra USE=subversion - In file included from /usr/include/subversion-1/svn_client.h:34, from hydra-svn.c:9: /usr/include/apr-1/apr.h:632:2: error: #error no decision has been made on APR_PATH_MAX for your platform
Summary: net-analyzer/hydra USE=subversion - In file included from /usr/include/subver...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Netmon Herd
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-05-20 22:49 UTC by Hank Leininger
Modified: 2019-05-20 23:18 UTC (History)
0 users

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


Attachments
Fix APR_PATH_MAX error when USE=subversion is enabled (hydra-9.0-apr-def.patch,1.33 KB, patch)
2019-05-20 22:49 UTC, Hank Leininger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hank Leininger 2019-05-20 22:49:07 UTC
Created attachment 577440 [details, diff]
Fix APR_PATH_MAX error when USE=subversion is enabled

When USE="subversion" is set, compilation of hydra-svn.c fails with (at least) Subversion 1.12.0:

In file included from /usr/include/subversion-1/svn_client.h:34,
from hydra-svn.c:9:
/usr/include/apr-1/apr.h:632:2: error: #error no decision has been made on APR_PATH_MAX for your platform
#error no decision has been made on APR_PATH_MAX for your platform
^~~~~

I encountered this the other day, and upstream accepted my fix:

https://github.com/vanhauser-thc/thc-hydra/pull/419

Because I don't know how long it will be before there is another release and an ebuild bump, I will attach the patch that I submitted to upstream; adding it to PATCHES= in the ebuild is sufficient for USE="subversion" to build.