Le 25/06/2017 à 19:09, Richard Gallamore a écrit : > When using USE_GCC= 5+, errors occur because this USE only sets > build and run time dependency, and not lib dependency. > > Error: /usr/local/bin/ann_in is linked to > /usr/local/lib/gcc5/libgfortran.so.3 from lang/gcc but it is not declared as > a dependency > Error: /usr/local/bin/ann_in is linked to > /usr/local/lib/gcc5/libquadmath.so.0 from lang/gcc but it is not declared as > a dependency > Error: /usr/local/bin/c81merge is linked to > /usr/local/lib/gcc5/libstdc++.so.6 from lang/gcc but it is not declared as a > dependency > Error: /usr/local/bin/c81merge is linked to /usr/local/lib/gcc5/libgcc_s.so.1 > from lang/gcc but it is not declared as a dependency > > Should this be considered a false positive? or should USE_GCC > also add a LIB_DEPEND to ports?
This is quite strange. lang/gcc does not provide any of those libraries. lang/gcc is a metapackage, the only thing it does is depend on the lang/gccXX you asked for, and it provide symlinks: # pkg info -l lang/gcc gcc-5.4.0_2: /usr/local/bin/g++ /usr/local/bin/gcc /usr/local/bin/gfortran # ls -l $(pkg info -ql lang/gcc) lrwxr-xr-x 1 root wheel 4 29 mai 15:21 /usr/local/bin/g++@ -> g++5 lrwxr-xr-x 1 root wheel 4 29 mai 15:21 /usr/local/bin/gcc@ -> gcc5 lrwxr-xr-x 1 root wheel 9 29 mai 15:21 /usr/local/bin/gfortran@ -> gfortran5 -- Mathieu Arnold
signature.asc
Description: OpenPGP digital signature