Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832689 - <app-text/discount-2.2.7-r1 breaks revdeps using pkgconfig such as kde-apps/okular
Summary: <app-text/discount-2.2.7-r1 breaks revdeps using pkgconfig such as kde-apps/o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ben Kohler
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-04 10:53 UTC by segmentation fault
Modified: 2022-02-04 12:38 UTC (History)
1 user (show)

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 segmentation fault 2022-02-04 10:53:04 UTC
CMake Error in generators/markdown/CMakeLists.txt:
  Imported target "PkgConfig::Discount" includes non-existent path

    "usr/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.

Reproducible: Always

Steps to Reproduce:
1. emerge -1av kde-apps/okular
2.
3.
Actual Results:  
-- The following RECOMMENDED packages have been found:
...
 * Discount, A library that gives you formatting functions suitable for marking down entire documents or lines of text, <https://www.pell.portland.or.us/~orc/Code/discount/>

...but further down it says:

-- Configuring done
CMake Error in generators/markdown/CMakeLists.txt:
  Imported target "PkgConfig::Discount" includes non-existent path

    "usr/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

Expected Results:  
No such error.

Reason
------

I had app-text/discount-2.2.4 installed. That version was too low.


Solution
--------

I upgraded to app-text/discount-2.2.7-r2 and retried to merge okular-21.08.3. This time it worked. Therefore the ebuild needs to add >app-text/discount-2.2.4 in its build dependencies. Whether it needs to have >=app-text/discount-2.2.7 cannot be decided only from the above. But from the above we know that =app-text/discount-2.2.7 will work, while app-text/discount-2.2.4 will not.

You may close this issue as resolved.

Some info:

Portage 3.0.28 (python 3.8.12-final-0, default/linux/amd64/17.1/hardened, gcc-11.2.0, glibc-2.30-r8, 5.4.168-gentoo x86_64)
=================================================================
System uname: Linux-5.4.168-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with-glibc2.2.5


Timestamp of repository gentoo: Sat, 22 Jan 2022 


sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p8::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.12_p1-r1::gentoo, 3.9.9-r1::gentoo, 3.10.0_p1-r1::gentoo
dev-lang/rust:             1.53.0::gentoo
dev-lang/rust-bin:         1.53.0::gentoo
dev-util/cmake:            3.21.4::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/openrc:           0.42.1::gentoo
sys-apps/sandbox:          2.25::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:        1.11.6-r3::gentoo, 1.12.6::gentoo, 1.13.4-r2::gentoo, 1.14.1::gentoo, 1.15.1-r2::gentoo, 1.16.4::gentoo
sys-devel/binutils:        2.33.1-r1::gentoo, 2.37_p1::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           7.0.0::gentoo, 8.0.1::gentoo, 9.0.1::gentoo, 10.0.0::gentoo, 12.0.1::gentoo, 13.0.0::gentoo
sys-devel/gcc:             7.5.0::gentoo, 8.3.0-r1::gentoo, 8.4.0::gentoo, 9.3.0::gentoo, 11.2.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.0::gentoo
sys-devel/llvm:            7.0.0-r1::gentoo, 8.0.1::gentoo, 9.0.1::gentoo, 10.0.0::gentoo, 12.0.1::gentoo, 13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.30-r8::gentoo
Comment 2 Andreas Sturmlechner gentoo-dev 2022-02-04 11:46:58 UTC
oops.
Comment 3 Larry the Git Cow gentoo-dev 2022-02-04 11:49:09 UTC
The bug has been closed via the following commit(s):

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

commit 85caace119b784ec5d322243c9320926806acadd
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2022-02-04 11:48:15 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2022-02-04 11:48:35 +0000

    kde-apps/okular: DEPEND on >=app-text/discount-2.2.7-r1
    
    Avoiding a revbump just to fix a pkgconfig issue.
    
    Closes: https://bugs.gentoo.org/832689
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-apps/okular/okular-21.08.3.ebuild | 9 ++++++---
 kde-apps/okular/okular-21.12.2.ebuild | 7 +++++--
 2 files changed, 11 insertions(+), 5 deletions(-)
Comment 4 Larry the Git Cow gentoo-dev 2022-02-04 12:38:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=79d1222b7ae749cc0073d8548803992441d956c6

commit 79d1222b7ae749cc0073d8548803992441d956c6
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2022-02-04 12:37:56 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2022-02-04 12:37:56 +0000

    kde-apps/okular: DEPEND on >=app-text/discount-2.2.7-r1
    
    Closes: https://bugs.gentoo.org/832689
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-apps/okular/okular-21.12.49.9999.ebuild | 2 +-
 kde-apps/okular/okular-9999.ebuild          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)