Giter Club home page Giter Club logo

Comments (2)

ararslan avatar ararslan commented on August 18, 2024

This change at least allows it to build, but I still get "Provider BinDeps.BuildProcess failed to satisfy dependency libopenspecfun":

diff --git a/deps/scratch.jl b/deps/scratch.jl
index e8c5ec9..28dcd64 100644
--- a/deps/scratch.jl
+++ b/deps/scratch.jl
@@ -83,39 +83,35 @@ elseif Sys.ARCH === :x86_64
     fc *= " -m64"
 end
 
-flags = [
-    # OpenSpecFun build flags
-    "ARCH=\"$(Sys.ARCH)\"",
-    "CC=\"$cc\"",
-    "FC=\"$fc\"",
-    "USECLANG=$(Int(use_clang))",
-    "USEGCC=$(Int(!use_clang))",
-    "USE_OPENLIBM=$(Int(use_openlibm))",
-    "CFLAGS=\"-O3 -std=c99\"",
-    "FFLAGS=\"-O2 -fPIC\"",
-    "LDFLAGS=\"-L$(libdir(openspecfun)) -Wl,-rpath,'\$\$ORIGIN' -Wl,-z,origin\"",
-    # Make flags
-    "DESTDIR=\"\"",
-    "prefix=$(depsdir(openspecfun))",
-    "libdir=$(libdir(openspecfun))",
-    "shlibdir=$(libdir(openspecfun))",
-    "includedir=$(includedir(openspecfun))",
-    "O="
-]
-
 provides(Sources, URI("https://github.com/JuliaLang/openspecfun/archive/v$OSF_VERS.tar.gz"),
-         openspecfun)
+         openspecfun, unpacked_dir="openspecfun-$OSF_VERS")
 
 provides(BuildProcess,
     (@build_steps begin
         GetSources(openspecfun)
         CreateDirectory(builddir(openspecfun))
         @build_steps begin
-            ChangeDirectory(builddir(openspecfun))
+            ChangeDirectory(joinpath(srcdir(openspecfun), "openspecfun-$OSF_VERS"))
             FileRule(joinpath(libdir(openspecfun), "libopenspecfun." * Libdl.dlext),
                 @build_steps begin
                     CreateDirectory(libdir(openspecfun))
-                    `$MAKE_CMD install $flags`
+                    ```
+                    $MAKE_CMD install
+                        ARCH="$(Sys.ARCH)"
+                        CC="$cc"
+                        FC="$fc"
+                        USECLANG=$(Int(use_clang))
+                        USEGCC=$(Int(!use_clang))
+                        USE_OPENLIBM=$(Int(use_openlibm))
+                        CFLAGS="-O3 -std=c99"
+                        FFLAGS="-O2 -fPIC"
+                        LDFLAGS="-L$(libdir(openspecfun)) -Wl,-rpath,'\$\$ORIGIN' -Wl,-z,origin"
+                        DESTDIR=""
+                        prefix=""
+                        libdir="$(libdir(openspecfun))"
+                        includedir="$(includedir(openspecfun))"
+                        O=
+                    ```
                 end)
         end
     end), openspecfun)

from specialfunctions.jl.

ararslan avatar ararslan commented on August 18, 2024

I should note that even though I'm getting that error, the expected library was created, and lives in the expected spot:

$ tree deps
deps
├── binaries.jl
├── build.jl
├── builds
├── downloads
│   └── v0.5.3.tar.gz
├── scratch.jl
├── src
│   ├── openlibm
│       ├── ...
│   ├── openlibm-0.5.4.tar.gz
│   └── openspecfun-0.5.3
│       ├── ...
└── usr
    ├── include
    │   ├── Faddeeva.h
    │   └── openlibm
    │       ├── ...
    └── lib
        ├── libopenlibm.so
        ├── libopenspecfun.a
        ├── libopenspecfun.so -> libopenspecfun.so.1.3
        ├── libopenspecfun.so.1 -> libopenspecfun.so.1.3
        └── libopenspecfun.so.1.3

from specialfunctions.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.