Skip to content

Commit

Permalink
gnustep-libs/sope: fix mysql compilation, bug #566138
Browse files Browse the repository at this point in the history
Bug report and patch by Russell Knighton <[email protected]>

Package-Manager: portage-2.2.27
  • Loading branch information
voyageur committed Feb 18, 2016
1 parent 2ce8a6e commit b2d1a05
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
35 changes: 35 additions & 0 deletions gnustep-libs/sope/files/sope-2.3.2-mysql-preamble.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
--- a/sope-gdl1/MySQL/GNUmakefile.preamble 2015-09-07 17:52:21.244429620 +0100
+++ b/sope-gdl1/MySQL/GNUmakefile.preamble 2015-09-07 17:54:16.586770809 +0100
@@ -33,12 +33,12 @@

MySQL_BUNDLE_LIBS += \
-lGDLAccess \
- `mysql_config --libs`
+ $(shell mysql_config --libs)

MySQLD_BUNDLE_LIBS += \
-lGDLAccess \
-lEOControl \
- `mysql_config --libs`
+ $(shell mysql_config --libs)

gdltest_TOOL_LIBS += \
-lGDLAccess \
@@ -46,14 +46,15 @@

# set compile flags and go

-ADDITIONAL_CFLAGS += `mysql_config --cflags`
+ADDITIONAL_CFLAGS += $(shell mysql_config --cflags)

ADDITIONAL_INCLUDE_DIRS += \
-I../GDLAccess -I.. -I$(SOPE_ROOT)

ADDITIONAL_INCLUDE_DIRS += \
-I$(SOPE_ROOT)/sope-core/ \
- -I$(SOPE_ROOT)/sope-core/NGExtensions
+ -I$(SOPE_ROOT)/sope-core/NGExtensions \
+ $(shell mysql_config --cflags)


# dependencies
1 change: 1 addition & 0 deletions gnustep-libs/sope/sope-2.3.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pkg_pretend() {
src_prepare() {
# https://github.com/inverse-inc/sope/pull/33
epatch "${FILESDIR}"/${P}-optional-deps.patch
epatch "${FILESDIR}"/${P}-mysql-preamble.patch
gnustep-base_src_prepare
}

Expand Down
4 changes: 4 additions & 0 deletions gnustep-libs/sope/sope-3.0.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ RDEPEND="
"
DEPEND="${RDEPEND}"

PATCHES=(
"${FILESDIR}"/${PN}-2.3.2-mysql-preamble.patch
)

pkg_pretend() {
if use ssl && use gnutls && use libressl ; then
ewarn "You have enabled both gnutls and libressl, but only"
Expand Down

0 comments on commit b2d1a05

Please sign in to comment.