Skip to content

[libuuid] Broken installation of vcpkg port libjpeg-turbo (affects libjpeg-turbo and it's deps like Jasper) #21970

@kafeg

Description

@kafeg

file(INSTALL ${SOURCE_PATH}/uuid.pc DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig)

Hey, there is a bug in the libuuid port which install debug part when I added set(VCPKG_BUILD_TYPE release) to my triplets/x64-linux.cmake.

The debug folder should not contain any files, but it does with libuuid port. And this affects to the other ports, like jasper and libjpeg-turbo.

here my installed packages and sample of the problem.
image

And here Dockerfile with steps how to fully reproduce the problem:

FROM alpine:3

RUN apk add --no-cache libc6-compat cmake ninja git gcc g++ libc-dev \
        yasm bash curl make linux-headers curl zip unzip tar \
		patch libx11-dev libx11-dev mesa mesa-dev libxi-dev \
        libxext-dev autoconf gettext gettext-dev libxkbcommon-dev \
		bison pkgconfig gperf python3 glu glu-dev mesa-gl libxcb \
		libxcb-dev libxkbcommon libxkbcommon-dev libxkbcommon-x11 \
		xcb-util-wm-dev xcb-util-image-dev xcb-util-keysyms-dev \
		xcb-util-cursor-dev xcb-util-renderutil-dev xcb-util-xrm-dev

ENV VCPKG_FORCE_SYSTEM_BINARIES 1

RUN git clone https://github.com/microsoft/vcpkg.git && \
  cd vcpkg && \
  git checkout 2021.12.01 && \
  chmod 777 bootstrap-vcpkg.sh && \
  ./bootstrap-vcpkg.sh --disableMetrics && \
  echo "set(VCPKG_BUILD_TYPE release)" >> ./triplets/x64-linux.cmake && \
  ./vcpkg install --triplet x64-linux --clean-after-build qt5-base && \
  rm -rf ./.git* && \
  rm -rf ./README* && \
  rm -rf ./bootstrap* && \
  rm -rf ./docs && \
  rm -rf ./downloads && \
  rm -rf ./buildtrees && \
  rm -rf ./packages && \
  rm -rf ./toolsrc

RUN apk add --no-cache freeglut freeglut-dev libxmu libxmu-dev libxi nano mc

RUN cd vcpkg && ./vcpkg install --triplet x64-linux --clean-after-build jwt-cpp ptyqt qtkeychain || true

You can call DOCKER_BUILDKIT=0 docker build . and then docker run --rm -it --entrypoint bash <image hash> to go inside environment.

Temp workaround: remove debug dir manualy before install affected packages.

For correct fix i think libuuid port should be changed to support release/debug only vcpkg sets.

Metadata

Metadata

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions