commit:     f043a66074d170b289ad0be21ce963236771e1cd
Author:     Matthew White <mehw.is.me <AT> inventati <DOT> org>
AuthorDate: Sun Oct 13 09:59:53 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 14 01:02:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f043a660

media-libs/libiptcdata: add 1.0.5-r2 to fix compiling on Gentoo

Fix missing headers and libraries.

Compiling from inside the 'python' sub-directory doesn't set ${S} as
the top source directory, missing required headers and libraries.

[sam: Drop revbump.]

Closes: https://bugs.gentoo.org/936589
Closes: https://bugs.gentoo.org/941462
Package-Manager: portage-3.0.65-r1
Signed-off-by: Matthew White <mehw.is.me <AT> inventati.org>
Closes: https://github.com/gentoo/gentoo/pull/38974
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/libiptcdata/libiptcdata-1.0.5-r1.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/media-libs/libiptcdata/libiptcdata-1.0.5-r1.ebuild 
b/media-libs/libiptcdata/libiptcdata-1.0.5-r1.ebuild
index 6f51a051ba3e..d043c92b131f 100644
--- a/media-libs/libiptcdata/libiptcdata-1.0.5-r1.ebuild
+++ b/media-libs/libiptcdata/libiptcdata-1.0.5-r1.ebuild
@@ -41,6 +41,13 @@ src_prepare() {
        eautoreconf
        if use python; then
                cd python || die
+               # Bug #936589: compiling from inside the 'python' sub-directory
+               # might set that as the top source directory, and not ${S}, but
+               # "${S}/libiptcdata" is required to find headers and libraries.
+               # Symbolic linking "../libiptcdata" is a possible fix.  Another
+               # way is adding in python/setup.py, under iptcdata's Extension,
+               # "include_dirs=['..']" and "library_dirs=['../libiptcdata']".
+               ln -s "../${PN}" . || die
                distutils-r1_src_prepare
        fi
 }

Reply via email to