Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 772254 - dev-db/mariadb-10.5.9: CMake Error at libmariadb/cmake/ConnectorName.cmake:30 (ENDMACRO): Flow control statements are not properly nested.
Summary: dev-db/mariadb-10.5.9: CMake Error at libmariadb/cmake/ConnectorName.cmake:30...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-23 16:43 UTC by Helmut Jarausch
Modified: 2021-06-14 12:16 UTC (History)
2 users (show)

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


Attachments
build log (mariadb-10.5.9.build,34.32 KB, text/plain)
2021-02-23 16:43 UTC, Helmut Jarausch
Details
emerge --info output (maria-db.info,23.19 KB, text/plain)
2021-02-23 16:45 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2021-02-23 16:43:41 UTC
Created attachment 688149 [details]
build log

I have cmake-3.20.0_rc1 installed and I get
a CMAKE error :
CMake Error at libmariadb/cmake/ConnectorName.cmake:30 (ENDMACRO):
  Flow control statements are not properly nested.
Call Stack (most recent call first):
  libmariadb/CMakeLists.txt:423 (INCLUDE)

A similar problem exists with sci-libs/opencascade-7.4.0-r4
Comment 1 Helmut Jarausch 2021-02-23 16:45:14 UTC
Created attachment 688152 [details]
emerge --info output
Comment 2 Andreas Sturmlechner gentoo-dev 2021-02-25 09:19:37 UTC
Easy fix in the reported file:

>   IF(IS64)
>     SET(MACHINE_NAME "x64")
>   ELSE()
>     SET(MACHINE_NAME "32")
>   END()
>      ^^

Should be ENDIF() of course.
Comment 3 Larry the Git Cow gentoo-dev 2021-03-02 17:15:51 UTC
The bug has been closed via the following commit(s):

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

commit 51d932c944b611d29df40ceb7c934444cc44d067
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2021-03-02 17:00:34 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-03-02 17:15:45 +0000

    dev-db/mariadb: fix flow control statement
    
    Closes: https://bugs.gentoo.org/772254
    Package-Manager: Portage-3.0.16, Repoman-3.0.2
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 dev-db/mariadb/Manifest               | 8 ++++----
 dev-db/mariadb/mariadb-10.2.37.ebuild | 2 +-
 dev-db/mariadb/mariadb-10.3.28.ebuild | 2 +-
 dev-db/mariadb/mariadb-10.4.18.ebuild | 2 +-
 dev-db/mariadb/mariadb-10.5.9.ebuild  | 2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)
Comment 4 namirimuprimrose860 2021-06-14 09:59:37 UTC
how do i edit the connectorNamr.cmake file inorder to correct the flow statement? I'm not quite sure on how to proceed with the above given information
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2021-06-14 12:16:42 UTC
It is fixed in Gentoo.

If you maintain your own fork, you need to write a patch like https://github.com/Whissi/gentoo-mariadb/commit/abbfaef5b6f4274fa236b9aa1193ffdb8b3ceab5.patch and put it into /etc/portage/patches/dev-db/mariadb. But note that this is also fixed upstream in latest versions.