Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[qpdf] new port #43799

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

[qpdf] new port #43799

wants to merge 2 commits into from

Conversation

rremilian
Copy link
Contributor

Fixes #43708

  • Changes comply with the maintainer guide.
  • The name of the port matches an existing name for this component on https://repology.org/ if possible, and/or is strongly associated with that component on search engines.
  • Optional dependencies are resolved in exactly one way. For example, if the component is built with CMake, all find_package calls are REQUIRED, are satisfied by vcpkg.json's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxx.
  • The versioning scheme in vcpkg.json matches what upstream says.
  • The license declaration in vcpkg.json matches what upstream says.
  • The installed as the "copyright" file matches what upstream says.
  • The source code of the component installed comes from an authoritative source.
  • The generated "usage text" is accurate. See adding-usage for context.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is in the new port's versions file.
  • Only one version is added to each modified port's versions file.

@rremilian
Copy link
Contributor Author

I cannot reproduce the issue from x64-linux locally.

Installing 1/1 qpdf[core,libgnutls]:[email protected]...
Building qpdf[core,libgnutls]:[email protected]...
-- Using cached qpdf-qpdf-v11.10.0.tar.gz
-- Cleaning sources at /root/vcpkg/buildtrees/qpdf/src/v11.10.0-5a9b8d8b36.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /root/vcpkg/downloads/qpdf-qpdf-v11.10.0.tar.gz
-- Using source at /root/vcpkg/buildtrees/qpdf/src/v11.10.0-5a9b8d8b36.clean
-- Configuring x64-linux
-- Building x64-linux-dbg
-- Building x64-linux-rel
-- Fixing pkgconfig file: /root/vcpkg/packages/qpdf_x64-linux/lib/pkgconfig/libqpdf.pc
-- Fixing pkgconfig file: /root/vcpkg/packages/qpdf_x64-linux/debug/lib/pkgconfig/libqpdf.pc
-- Installing: /root/vcpkg/packages/qpdf_x64-linux/share/qpdf/copyright
-- Adjusted RPATH of '/root/vcpkg/packages/qpdf_x64-linux/bin/fix-qdf' (From '' -> To '$ORIGIN:$ORIGIN/../lib')
-- Adjusted RPATH of '/root/vcpkg/packages/qpdf_x64-linux/bin/qpdf' (From '' -> To '$ORIGIN:$ORIGIN/../lib')
-- Adjusted RPATH of '/root/vcpkg/packages/qpdf_x64-linux/bin/zlib-flate' (From '' -> To '$ORIGIN:$ORIGIN/../lib')
-- Adjusted RPATH of '/root/vcpkg/packages/qpdf_x64-linux/debug/bin/fix-qdf' (From '' -> To '$ORIGIN:$ORIGIN/../lib')
-- Adjusted RPATH of '/root/vcpkg/packages/qpdf_x64-linux/debug/bin/qpdf' (From '' -> To '$ORIGIN:$ORIGIN/../lib')
-- Adjusted RPATH of '/root/vcpkg/packages/qpdf_x64-linux/debug/bin/zlib-flate' (From '' -> To '$ORIGIN:$ORIGIN/../lib')
-- Performing post-build validation
Stored binaries in 1 destinations in 8.8 s.
Elapsed time to handle qpdf:x64-linux: 1.4 min
qpdf:x64-linux package ABI: 624cd923ae74befc91c92d601f00ced12b1b61c50bdfe2a0bf16d3e0ef770a84
Total install time: 1.4 min
qpdf provides CMake targets:

  # this is heuristically generated, and may not be correct
  find_package(qpdf CONFIG REQUIRED)
  target_link_libraries(main PRIVATE qpdf::libqpdf)

qpdf provides pkg-config modules:

  # PDF transformation library
  libqpdf

Seems to be some linkage problem:

/usr/bin/ld: /mnt/vcpkg-ci/installed/x64-linux/debug/lib/pkgconfig/../../lib/libhogweed.a(bignum.o): in function `nettle_mpz_sizeinbase_256_s':
/mnt/vcpkg-ci/b/nettle/x64-linux-dbg/./../src/e_20240616-833a54d0d5.clean/bignum.c:69: undefined reference to `__gmpz_com'
/usr/bin/ld: /mnt/vcpkg-ci/installed/x64-linux/debug/lib/pkgconfig/../../lib/libhogweed.a(bignum.o): in function `nettle_mpz_to_octets':
/mnt/vcpkg-ci/b/nettle/x64-linux-dbg/./../src/e_20240616-833a54d0d5.clean/bignum.c:93: undefined reference to `__gmpz_getlimbn'
/usr/bin/ld: /mnt/vcpkg-ci/installed/x64-linux/debug/lib/pkgconfig/../../lib/libhogweed.a(bignum.o): in function `nettle_mpz_get_str_256':
/mnt/vcpkg-ci/b/nettle/x64-linux-dbg/./../src/e_20240616-833a54d0d5.clean/bignum.c:127: undefined reference to `__gmpz_com'
/usr/bin/ld: /mnt/vcpkg-ci/installed/x64-linux/debug/lib/pkgconfig/../../lib/libhogweed.a(bignum.o): in function `nettle_mpz_set_str_256_s':
/mnt/vcpkg-ci/b/nettle/x64-linux-dbg/./../src/e_20240616-833a54d0d5.clean/bignum.c:173: undefined reference to `__gmpz_init_set_ui'
/usr/bin/ld: /mnt/vcpkg-ci/installed/x64-linux/debug/lib/pkgconfig/../../lib/libhogweed.a(rsa-sign.o): in function `nettle_rsa_compute_root':
/mnt/vcpkg-ci/b/nettle/x64-linux-dbg/./../src/e_20240616-833a54d0d5.clean/rsa-sign.c:179: undefined reference to `__gmpz_limbs_write'
/usr/bin/ld: /mnt/vcpkg-ci/b/nettle/x64-linux-dbg/./../src/e_20240616-833a54d0d5.clean/rsa-sign.c:181: undefined reference to `__gmpz_limbs_finish'
/usr/bin/ld: /mnt/vcpkg-ci/installed/x64-linux/debug/lib/pkgconfig/../../lib/libhogweed.a(rsa-sec-compute-root.o): in function `sec_mul_itch':
/mnt/vcpkg-ci/b/nettle/x64-linux-dbg/./../src/e_20240616-833a54d0d5.clean/rsa-sec-compute-root.c:53: undefined reference to `__gmpn_sec_mul_itch'
/usr/bin/ld: /mnt/vcpkg-ci/b/nettle/x64-linux-dbg/./../src/e_20240616-833a54d0d5.clean/rsa-sec-compute-root.c:55: undefined reference to `__gmpn_sec_mul_itch'
...

@rremilian rremilian marked this pull request as draft February 12, 2025 21:17
@Mengna-Li Mengna-Li added the category:new-port The issue is requesting a new library to be added; consider making a PR! label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:new-port The issue is requesting a new library to be added; consider making a PR!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[New Port Request] qpdf
2 participants