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

libproxy: build failure on darwin #184328

Closed
wegank opened this issue Jul 31, 2022 · 2 comments · Fixed by #185853
Closed

libproxy: build failure on darwin #184328

wegank opened this issue Jul 31, 2022 · 2 comments · Fixed by #185853
Labels
0.kind: build failure A package fails to build 6.topic: darwin Running or building packages on Darwin

Comments

@wegank
Copy link
Member

wegank commented Jul 31, 2022

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix build nixpkgs#libproxy

Build log

CMake Error at libproxy/cmake/modules/pacrunner_duktape.cmk:10 (px_check_modules):
  Unknown CMake command "px_check_modules".
Call Stack (most recent call first):
  libproxy/cmake/modules.cmk:21 (include)
  libproxy/CMakeLists.txt:14 (include)


-- Configuring incomplete, errors occurred!

See Hydra.

Additional context

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here
@wegank wegank added the 0.kind: build failure A package fails to build label Jul 31, 2022
@jiegec
Copy link
Contributor

jiegec commented Aug 1, 2022

A possible fix:

diff --git a/libproxy/cmake/pkgconfig.cmk b/libproxy/cmake/pkgconfig.cmk
index 89bfc62..ffa0897 100644
--- a/libproxy/cmake/pkgconfig.cmk
+++ b/libproxy/cmake/pkgconfig.cmk
@@ -1,4 +1,4 @@
-if(NOT WIN32 AND NOT APPLE)
+if(NOT WIN32)
   find_package(PkgConfig)
 
   # Define our magical px_check_modules function

@vcunat vcunat added the 6.topic: darwin Running or building packages on Darwin label Aug 1, 2022
@jtojnar
Copy link
Member

jtojnar commented Aug 9, 2022

That looks like an upstream bug – the build system should never use functions it is undefining.

And either way, on Darwin, I would expect system JavaScriptCore to be used instead of Duktape.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants