diff --git a/1.2-py3/Dockerfile b/1.2-py3/Dockerfile index f3b590a..7cfea57 100644 --- a/1.2-py3/Dockerfile +++ b/1.2-py3/Dockerfile @@ -65,6 +65,8 @@ RUN apk --update add --no-cache boost-python3 boost ninja "-j$(nproc)" && \ ninja install && \ cd .. && \ + # Strip leaked CMake imported-target names from the generated pkg-config file + sed -i 's/ *-lIconv::Iconv//g' /usr/lib/pkgconfig/libtorrent-rasterbar.pc && \ # Remove temp files cd && \ apk del --purge build-dependencies && \ diff --git a/1.2-py3/container-structure-test.yml b/1.2-py3/container-structure-test.yml index 11ec496..a0f05b6 100644 --- a/1.2-py3/container-structure-test.yml +++ b/1.2-py3/container-structure-test.yml @@ -32,3 +32,5 @@ fileContentTests: - name: "pkgconfig" path: "/usr/lib/pkgconfig/libtorrent-rasterbar.pc" expectedContents: ["Libs:.*-ltorrent-rasterbar"] + # No unresolved CMake imported-target names (e.g. -lIconv::Iconv) should leak into the Libs line + excludedContents: ["-l\\S*::"]