Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 912375 - games-emulation/citra - CMake fails and complains about improper nesting
Summary: games-emulation/citra - CMake fails and complains about improper nesting
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Samuel Bauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-17 01:51 UTC by Sebastian France
Modified: 2023-08-25 12:17 UTC (History)
0 users

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


Attachments
Citra ebuild build log (build.log,364.03 KB, text/x-log)
2023-08-17 01:51 UTC, Sebastian France
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian France 2023-08-17 01:51:53 UTC
Created attachment 868019 [details]
Citra ebuild build log

When trying to build Citra the following error will cause the ebuild to fail in src_prepare():

-- Found WrapVulkanHeaders: /usr/include  
CMake Warning at CMakeLists.txt:292 (message):
  Clang format not found! Disabling the clang format target


-- Found Boost: /usr/lib64/cmake/Boost-1.82.0/BoostConfig.cmake (found suitable version "1.82.0", minimum required is "1.70.0") found components: container locale serialization iostreams 
CMake Error at externals/CMakeLists.txt:15 (endif):
  Flow control statements are not properly nested.

I had a look at the file and there is apparently a stray endif() causing this issue. I'm unsure if this is meant to be used with anything, so I didn't try to submit a PR.

The build log for Citra is attached.
Comment 1 Sebastian France 2023-08-17 11:11:15 UTC
(In reply to Sebastian France from comment #0)
> Created attachment 868019 [details]
> Citra ebuild build log
> 
> When trying to build Citra the following error will cause the ebuild to fail
> in src_prepare():
> 
> -- Found WrapVulkanHeaders: /usr/include  
> CMake Warning at CMakeLists.txt:292 (message):
>   Clang format not found! Disabling the clang format target
> 
> 
> -- Found Boost: /usr/lib64/cmake/Boost-1.82.0/BoostConfig.cmake (found
> suitable version "1.82.0", minimum required is "1.70.0") found components:
> container locale serialization iostreams 
> CMake Error at externals/CMakeLists.txt:15 (endif):
>   Flow control statements are not properly nested.
> 
> I had a look at the file and there is apparently a stray endif() causing
> this issue. I'm unsure if this is meant to be used with anything, so I
> didn't try to submit a PR.
> 
> The build log for Citra is attached.

Sorry, meant src_configure(). Although this is likely due to an improper use of sed in src_prepare().
Comment 2 Samuel Bauer 2023-08-17 11:19:06 UTC
Sed lines were affected by upstream update.

I already fixed the ebuild here but forgot to push it it guru, sorry
Comment 3 Sebastian France 2023-08-25 12:17:05 UTC
Marking this as resolved, as commit b92ba1a6a46ad13dfa03f91febadd5e6d8dceaa8 in GURU appears to have remedied the issue.