SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
30
devel/darcs/patches/patch-darcs_cabal
Normal file
30
devel/darcs/patches/patch-darcs_cabal
Normal file
|
@ -0,0 +1,30 @@
|
|||
Workaround
|
||||
src/hscurl.c:50:11: error:
|
||||
error: expected ';' after top level declarator
|
||||
"darcs/" PACKAGE_VERSION " libcurl/" LIBCURL_VERSION;
|
||||
^
|
||||
;
|
||||
|
|
||||
50 | "darcs/" PACKAGE_VERSION " libcurl/" LIBCURL_VERSION;
|
||||
| ^
|
||||
1 error generated.
|
||||
`cc' failed in phase `C Compiler'. (Exit code: 1)
|
||||
|
||||
This seems related to a long closed http://bugs.darcs.net/issue1824
|
||||
titled "PACKAGE_VERSION is not a string"
|
||||
|
||||
I don't see any value in reporting the version of darcs to the server
|
||||
anyway, so implement the current effective behavior of darcs on Windows.
|
||||
|
||||
Index: darcs.cabal
|
||||
--- darcs.cabal.orig
|
||||
+++ darcs.cabal
|
||||
@@ -467,7 +467,7 @@ Library
|
||||
other-modules: Darcs.Util.Download.Curl
|
||||
cpp-options: -DHAVE_CURL
|
||||
c-sources: src/hscurl.c
|
||||
- cc-options: -DHAVE_CURL
|
||||
+ cc-options: -DHAVE_CURL -DPACKAGE_VERSION="unknown"
|
||||
if flag(pkgconfig)
|
||||
pkgconfig-depends: libcurl
|
||||
else
|
Loading…
Add table
Add a link
Reference in a new issue