[MacPorts] #66783: soprano cannot be installed on Apple Silicon

MacPorts noreply at macports.org
Fri Feb 17 17:27:42 UTC 2023


#66783: soprano cannot be installed on Apple Silicon
-------------------------+--------------------
  Reporter:  smsnobin77  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  arm64
      Port:  soprano     |
-------------------------+--------------------

Comment (by kencu):

 let's move that comment here:
 {{{
 So this port can't build universal on an M1 Mac (or perhaps on any Mac)
 because the JVM isn't universal.

 I am not sure if we might hack together a universal java-19 installation
 for M1 Macs -- it might be possible.

 Edit: I did this for openjdk-18, but it was unstable.
 https://github.com/kencu/macports-ports/commits/openjdk18universal

 But you can install soprano +universal if you disable all the JAVA stuff.
 To do that, I just forced it all off everywhere, like this:
 {{{
 % diff -u Portfile `port file soprano`
 --- Portfile    2022-12-29 23:19:54
 +++
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/soprano/Portfile
 2023-01-02 14:43:19
 @@ -2,7 +2,7 @@

  PortSystem          1.0
  PortGroup           kde4 1.1
 -PortGroup           java 1.0
 +#PortGroup           java 1.0

  name                soprano
  version             2.9.4
 @@ -28,9 +28,9 @@
                      size    1958856

  # Required java version.
 -java.version        11+
 +#java.version        11+
  # LTS JDK port to install if required java not found
 -java.fallback       openjdk11
 +#java.fallback       openjdk11

  depends_lib-append  port:strigi \
                      port:raptor2 \
 @@ -49,6 +49,14 @@

  configure.args-append \
                      -DSOPRANO_DISABLE_CLUCENE_INDEX=1
 +
 +# prevent finding java if installed
 +configure.env-append "JAVA_HOME="
 +configure.args-append -DJAVA_AWT_INCLUDE_PATH= \
 +                      -DJAVA_AWT_LIBRARY= \
 +                      -DJAVA_INCLUDE_PATH= \
 +                      -DJAVA_INCLUDE_PATH2= \
 +                      -DJAVA_JVM_LIBRARY=

  livecheck.type      sourceforge
  livecheck.url
 http://sourceforge.net/projects/soprano/files/Soprano/
 }}}


 if soprano is really disabled badly without JAVA support, then some other
 plan will be needed.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/66783#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list