Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 526590 - >=net-mail/vpopmail-5.4.33 with >dev-db/mariadb-10 - configure: error: unrecognized option: `-I/usr/include/mysql/..'
Summary: >=net-mail/vpopmail-5.4.33 with >dev-db/mariadb-10 - configure: error: unreco...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-10-23 15:48 UTC by Markus Ullmann
Modified: 2018-06-08 05:11 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,7.18 KB, text/plain)
2014-10-25 22:09 UTC, Markus Ullmann
Details
possible change to ebuild (vpopmail-5.4.33-r1.ebuild.patch,468 bytes, patch)
2014-10-25 22:14 UTC, Markus Ullmann
Details | Diff
proposed patch for stable ebuild (vpopmail-5.4.33.ebuild.patch,585 bytes, patch)
2018-05-05 19:51 UTC, Michael
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Ullmann 2014-10-23 15:48:52 UTC
A change introduced in 5.4.33 ebuild leads to breakage with mariadb config:

----------
/usr/portage/net-mail/vpopmail/vpopmail-5.4.33.ebuild:80:		authopts="$(mysql_config --include)"
----------

Command outputs:

# mysql_config --include
-I/usr/include/mysql -I/usr/include/mysql/..

# emerge -av1 virtual/mysql dev-db/mariadb
[ebuild   R    ] dev-db/mariadb-10.0.14-r1  USE="community pam perl ssl -cluster -debug -embedded -extraengine -jemalloc -latin1 -max-idx-128 -minimal -odbc -oqgraph -profiling (-selinux) -sphinx -static -static-libs -systemtap -tcmalloc {-test} -tokudb -xml" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] virtual/mysql-5.6-r2:0/18  USE="-embedded -minimal -static -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB

# emerge -av1 vpopmail
[ebuild   R    ] net-mail/vpopmail-5.4.33-r1  USE="mysql -clearpasswd -ipalias -maildrop -postgres -spamassassin" 0 KiB
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-23 18:30:16 UTC
Please attach the entire build log to this bug report.
Comment 2 Markus Ullmann 2014-10-25 22:09:21 UTC
Created attachment 387362 [details]
build.log
Comment 3 Markus Ullmann 2014-10-25 22:14:21 UTC
Created attachment 387364 [details, diff]
possible change to ebuild
Comment 4 Brian Evans (RETIRED) gentoo-dev 2014-12-22 03:10:47 UTC
> mysqlinc=$(mysql_config --include)
> authopts="--enable-incdir=${mysqlinc#-I}"

This is not very portable when more than one directory appears like in this bug.  With >=virtual/mysql-5.5, use $(mysql_config --variable=pkgincludedir)
Comment 5 Michael 2018-05-05 19:45:16 UTC
I just want to confirm this bug - don't have canconfirm permission though. Thanks to Brian Evans comment about mysql_config, I was able to patch the ebuild in my own overlay, and have it compile again.
Comment 6 Michael 2018-05-05 19:51:19 UTC
Created attachment 530038 [details, diff]
proposed patch for stable ebuild
Comment 7 Larry the Git Cow gentoo-dev 2018-06-08 05:11:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66059885d224eca79b8ede013342cef091704566

commit 66059885d224eca79b8ede013342cef091704566
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2018-06-08 05:09:20 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2018-06-08 05:11:42 +0000

    net-mail/vpopmail: cleanup some outstanding bugs
    
    - Compile fix: MySQL include dir (#526590)
    - Remove ebeep (#646174)
    - Repoman warnings for dosym
    - EAPI=6 ebuild
    
    Closes: https://bugs.gentoo.org/526590
    Closes: https://bugs.gentoo.org/646174
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
    Package-Manager: Portage-2.3.33, Repoman-2.3.9

 net-mail/vpopmail/files/vpopmail-double-free.patch |  4 +-
 net-mail/vpopmail/vpopmail-5.4.33-r1.ebuild        | 13 ++--
 net-mail/vpopmail/vpopmail-5.4.33-r2.ebuild        | 75 ++++++++++++++++++----
 net-mail/vpopmail/vpopmail-5.4.33.ebuild           | 11 ++--
 4 files changed, 80 insertions(+), 23 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce73e9fc91ec8bdf6e238987ee4f765f64bcd73d

commit ce73e9fc91ec8bdf6e238987ee4f765f64bcd73d
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2018-06-06 21:16:26 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2018-06-08 05:11:40 +0000

    net-mail/vpopmail: fix linking
    
    Bug: https://bugs.gentoo.org/526590
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
    Package-Manager: Portage-2.3.33, Repoman-2.3.9

 net-mail/vpopmail/vpopmail-5.4.33-r1.ebuild |  15 +-
 net-mail/vpopmail/vpopmail-5.4.33-r2.ebuild | 254 ++++++++++++++++++++++++++++
 net-mail/vpopmail/vpopmail-5.4.33.ebuild    |  15 +-
 3 files changed, 270 insertions(+), 14 deletions(-)