[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/13: gnu: mysql: Fix build.
From: |
Tobias Geerinckx-Rice |
Subject: |
12/13: gnu: mysql: Fix build. |
Date: |
Mon, 20 Aug 2018 14:17:48 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 7cbf06d8c2935abfc6c688cf3f9b99e0e5393960
Author: Tobias Geerinckx-Rice <address@hidden>
Date: Wed Aug 15 23:26:39 2018 +0200
gnu: mysql: Fix build.
MySQL demands address@hidden, and lying about it no longer works:
sql/item_geofunc_internal.cc: In function ‘void handle_gis_exception(const
char*)’:
sql/item_geofunc_internal.cc:37:81: error: expected unqualified-id before
‘&’ token
catch (const
boost::geometry::detail::self_get_turn_points::self_ip_exception &)
^
[...]
* gnu/packages/databases.scm (boost-for-mysql): New variable.
(mysql)[inputs]: Use that instead of the regular boost.
[arguments]: Remove now-unnecessary ‘patch-boost-version’ phase.
---
gnu/packages/databases.scm | 27 +++++++++++++++++----------
1 file changed, 17 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 37fd88f..934af50 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -548,6 +548,22 @@ RDBMS systems (which are deep in functionality).")
;; Some parts are licensed under the Apache License
license:asl2.0))))
+(define boost-for-mysql
+ (package
+ (inherit boost)
+ (version "1.59.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://sourceforge/boost/boost/" version "/boost_"
+ (string-map (lambda (x) (if (eq? x #\.) #\_ x)) version)
+ ".tar.bz2"))
+ (sha256
+ (base32
+ "1jj1aai5rdmd72g90a3pd8sw9vi32zad46xv5av8fhnr48ir6ykj"))))))
+
+;; XXX When updating, check whether boost-for-mysql is still needed.
+;; It might suffice to patch ‘cmake/boost.cmake’ as done in the past.
(define-public mysql
(package
(name "mysql")
@@ -589,15 +605,6 @@ RDBMS systems (which are deep in functionality).")
"-DINSTALL_SQLBENCHDIR=")
#:phases (modify-phases %standard-phases
(add-after
- 'unpack 'patch-boost-version
- (lambda _
- ;; Mysql wants boost-1.59.0 specifically
- (substitute* "cmake/boost.cmake"
- (("59")
- ,(match (string-split (package-version boost) #\.)
- ((_ minor . _) minor))))
- #t))
- (add-after
'install 'remove-extra-binaries
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
@@ -611,7 +618,7 @@ RDBMS systems (which are deep in functionality).")
`(("bison" ,bison)
("perl" ,perl)))
(inputs
- `(("boost" ,boost)
+ `(("boost" ,boost-for-mysql)
("libaio" ,libaio)
("ncurses" ,ncurses)
("openssl" ,openssl)
- branch master updated (cfad074 -> 8ecf3f7), Tobias Geerinckx-Rice, 2018/08/20
- 12/13: gnu: mysql: Fix build.,
Tobias Geerinckx-Rice <=
- 13/13: gnu: mysql: Update to 5.7.23., Tobias Geerinckx-Rice, 2018/08/20
- 10/13: gnu: python-mysqlclient: Update to 1.3.13., Tobias Geerinckx-Rice, 2018/08/20
- 07/13: gnu: r-tinytex: Update to 0.6., Tobias Geerinckx-Rice, 2018/08/20
- 09/13: gnu: perl-dbd-sqlite: Update to 1.58., Tobias Geerinckx-Rice, 2018/08/20
- 08/13: gnu: r-energy: Update to 1.7-5., Tobias Geerinckx-Rice, 2018/08/20
- 02/13: gnu: r-mitml: Update to 0.3-6., Tobias Geerinckx-Rice, 2018/08/20
- 01/13: gnu: r-vgam: Update to 1.0-6., Tobias Geerinckx-Rice, 2018/08/20
- 11/13: gnu: python-pyodbc: Update to 4.0.24., Tobias Geerinckx-Rice, 2018/08/20
- 05/13: gnu: r-jomo: Update to 2.6-3., Tobias Geerinckx-Rice, 2018/08/20
- 06/13: gnu: r-xfun: Update to 0.3., Tobias Geerinckx-Rice, 2018/08/20