Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 692316 - app-office/ledger-3.1.2 uses internal copy of dev-libs/utfcpp and fails to build with >=dev-libs/utfcpp-3.0
Summary: app-office/ledger-3.1.2 uses internal copy of dev-libs/utfcpp and fails to bu...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Erik Mackdanz
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-17 01:30 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2019-08-17 01:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2019-08-17 01:30:00 UTC
app-office/ledger-3.1.2 has dependency on dev-libs/utfcpp, but it actually uses internal copy of this library.

If you add in ebuild in src_prepare():
rm -r lib/utfcpp || die

Then you will see:

...
-- Performing Test HAVE_WORKING_UTFCPP
-- Performing Test HAVE_WORKING_UTFCPP - Failed
CMake Error at CMakeLists.txt:289 (message):
  Missing required header file: utf8.h

  Define UTFCPP_PATH or install utfcpp locally into the source tree below
  lib/utfcpp/.


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/app-office/ledger-3.1.2/work/ledger-3.1.2_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/app-office/ledger-3.1.2/work/ledger-3.1.2_build/CMakeFiles/CMakeError.log".
 * ERROR: app-office/ledger-3.1.2::gentoo failed (configure phase):
 *   cmake failed
Comment 1 Arfrever Frehtes Taifersar Arahesis 2019-08-17 01:51:16 UTC
With this:
[[[
--- app-office/ledger/ledger-3.1.2.ebuild
+++ app-office/ledger/ledger-3.1.2.ebuild
@@ -77,6 +77,9 @@ src_prepare() {
                || die "Failed to update info file name in file contents"
 
        mv doc/ledger{3,}.texi || die "Failed to rename info file name"
+
+       # Delete internal copy of dev-libs/utfcpp
+       rm -r lib/utfcpp || die
 }
 
 src_configure() {
@@ -88,6 +91,7 @@ src_configure() {
                -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON
                -DBUILD_DEBUG="$(usex debug)"
                -DUSE_PYTHON27_COMPONENT=yes
+               -DUTFCPP_PATH="/usr/include/utf8cpp"
        )
 
        cmake-utils_src_configure
]]]

dev-libs/utfcpp can be detected, but compilation failure occurs later:
https://github.com/ledger/ledger/issues/1816