Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926176 - media-libs/libheif-1.15.2[test]: catch.hpp: No such file or directory
Summary: media-libs/libheif-1.15.2[test]: catch.hpp: No such file or directory
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jakov Smolić
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-05 02:38 UTC by Marco Sirabella
Modified: 2024-04-02 21:39 UTC (History)
2 users (show)

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


Attachments
build.log (libheif-1.15.2.build.log.xz,61.46 KB, application/x-xz)
2024-03-05 02:38 UTC, Marco Sirabella
Details
emerge --info '=media-libs/libheif-1.15.2::gentoo (libheif-1.15.2.info.txt,8.62 KB, text/plain)
2024-03-05 02:40 UTC, Marco Sirabella
Details
[PATCH] media-libs/libheif: Restrict test dep to catch-2* (0001-media-libs-libheif-Restrict-test-dep-to-catch-2.patch,740 bytes, patch)
2024-03-05 03:27 UTC, Marco Sirabella
Details | Diff
bs/libheif: Restrict test dep to catch-2 (0001-media-libs-libheif-Restrict-test-dep-to-catch-2.patch,1.11 KB, patch)
2024-03-05 03:55 UTC, Marco Sirabella
Details | Diff
[PATCH] media-libs/libheif: Restrict test dep to catch-2* (0001-media-libs-libheif-Restrict-test-dep-to-catch-2.patch,1.11 KB, patch)
2024-03-05 03:56 UTC, Marco Sirabella
Details | Diff
Restrict test dep to catch-2* (0001-media-libs-libheif-Restrict-test-dep-to-catch-2.patch,1.17 KB, patch)
2024-03-05 04:02 UTC, Marco Sirabella
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Sirabella 2024-03-05 02:38:30 UTC
Created attachment 886711 [details]
build.log

Making all in tests
make[2]: Entering directory '/var/tmp/portage/media-libs/libheif-1.15.2/work/libheif-1.15.2-abi_x86_64.amd64/tests'
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libheif-1.15.2/work/libheif-1.15.2/tests -I..    -I/var/tmp/portage/media-libs/libheif-1.15.2/work/libheif-1.15.2 -I../. -O2 -mtune=native -march=native -pipe -Wall  -Wsign-compare -Wconversion -Wno-sign-conversion -Wno-error=conversion -Wno-error=unused-parameter -Wno-error=deprecated-declarations -Wno-error=tautological-compare -c -o heif_unit_tests-main.o `test -f 'main.cc' || echo '/var/tmp/portage/media-libs/libheif-1.15.2/work/libheif-1.15.2/tests/'`main.cc
main.cc:28:10: fatal error: catch.hpp: No such file or directory
   28 | #include "catch.hpp"
      |          ^~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:502: heif_unit_tests-main.o] Error 1
Comment 1 Marco Sirabella 2024-03-05 02:40:51 UTC
Created attachment 886712 [details]
emerge --info '=media-libs/libheif-1.15.2::gentoo
Comment 2 Marco Sirabella 2024-03-05 03:09:34 UTC
$ ls -lha /var/tmp/portage/media-libs/libheif-1.15.2/work/libheif-1.15.2/tests/
total 64K
drwxr-xr-x  2 msirabella users 4.0K Mar  4 18:59 .
drwxr-xr-x 15 msirabella users 4.0K Mar  4 18:59 ..
-rw-r--r--  1 msirabella users 1.2K Nov 15  2022 Makefile.am
-rw-r--r--  1 msirabella users  30K Mar  4 18:59 Makefile.in
lrwxrwxrwx  1 msirabella users   29 Mar  4 18:58 catch.hpp -> /usr/include/catch2/catch.hpp
-rw-r--r--  1 msirabella users 5.3K Aug 31  2022 conversion.cc
-rw-r--r--  1 msirabella users 2.9K Aug 31  2022 encode.cc
-rw-r--r--  1 msirabella users 1.2K Aug 31  2022 main.cc
-rw-r--r--  1 msirabella users 2.7K Aug 31  2022 test-race.go



$ ls /usr/include/catch2/
benchmark                   catch_config.hpp           catch_tag_alias.hpp                catch_test_spec.hpp            catch_user_config.hpp     internal
catch_all.hpp               catch_get_random_seed.hpp  catch_tag_alias_autoregistrar.hpp  catch_timer.hpp                catch_version.hpp         matchers
catch_approx.hpp            catch_message.hpp          catch_template_test_macros.hpp     catch_tostring.hpp             catch_version_macros.hpp  reporters
catch_assertion_info.hpp    catch_section_info.hpp     catch_test_case_info.hpp           catch_totals.hpp               generators
catch_assertion_result.hpp  catch_session.hpp          catch_test_macros.hpp              catch_translate_exception.hpp  interfaces
Comment 3 Marco Sirabella 2024-03-05 03:18:52 UTC
Okay installing =dev-cpp/catch-2.13.8 manually seems to have done it, I'm not sure why this wasn't getting pulled in automatically with the libheif reinstall but it is now so!: 

$ equery y catch
Keywords for dev-cpp/catch:
             |                               |   u   |  
             | a   a     p s     l r   a     |   n   |  
             | m   r h   p p   i o i s l m m | e u s | r
             | d a m p p c a x a o s 3 p 6 i | a s l | e
             | 6 r 6 p p 6 r 8 6 n c 9 h 8 p | p e o | p
             | 4 m 4 a c 4 c 6 4 g v 0 a k s | i d t | o
-------------+-------------------------------+-------+-------
[I]1.12.2-r2 | + ~ ~ ~ ~ ~ ~ + o o ~ o o o o | 8 o 1 | gentoo
   1.9999    | o o o o o o o o o o o o o o o | 8 o   | gentoo
-------------+-------------------------------+-------+-------
   2.13.8    | + + + ~ + + + + ~ ~ ~ ~ ~ o o | 8 # 0 | gentoo
    3.4.0    | + + + + + + + + ~ ~ ~ ~ ~ o o | 8 o   | gentoo
 [I]3.5.2    | + + + ~ + + + + ~ ~ ~ ~ ~ o o | 8 o   | gentoo
     9999    | o o o o o o o o o o o o o o o | 8 o   | gentoo
Comment 4 Marco Sirabella 2024-03-05 03:25:59 UTC
Wait no it's because the =dev-cpp/catch-1.12.2-r2 is satisfying libheif's <dev-cpp/catch-3

This needs to be =dev-cpp/catch-2* probably
Comment 5 Marco Sirabella 2024-03-05 03:27:57 UTC
Created attachment 886713 [details, diff]
[PATCH] media-libs/libheif: Restrict test dep to catch-2*
Comment 6 Marco Sirabella 2024-03-05 03:55:07 UTC
Created attachment 886714 [details, diff]
bs/libheif: Restrict test dep to catch-2
Comment 7 Marco Sirabella 2024-03-05 03:56:12 UTC
Created attachment 886715 [details, diff]
[PATCH] media-libs/libheif: Restrict test dep to catch-2*
Comment 8 Marco Sirabella 2024-03-05 04:02:51 UTC
Created attachment 886716 [details, diff]
Restrict test dep to catch-2*

Okay yeah I couldn't get the double dependency restriction working, this one does work I just don't see the =* version specifier used in the tree too often.
Comment 9 REVOL V. 2024-04-02 21:39:46 UTC
I have the same bug and it was also resolved by installing dev-cpp/catch-2.13.8 instead of dev-cpp/catch-3.5.2

If needed I'll add my logs