Re: problem installing/building wget on macOS High Sierra

Alexander Hansen <[email protected]> Tue, 2 Jan 2018 22:06:15 -0800
Newsgroups gmane.os.apple.fink.devel
Message-ID <[email protected]>

> On Jan 2, 2018, at 11:40, Pavel Ahafonau <[email protected]> wrote:
> 
> Hi Alexander,
> 
> Installation of wget on macOS High Sierra via fink is now requiring a java version higher than the latest approved by Apple (1.6.0_65).
> 

I believe that’s “grudgingly supplied”, not “approved”.   Apple has been trying to get rid of Java 6 for a while now.  

> If you can fix it - please do so.
> 

I can’t.  The dependency isn’t directly in wget, but its dependency libidn, for which I am not the maintainer.  I believe libidn was deliberately updated to use a more modern Java because Apple hadn’t released Java 6 for High Sierra yet.

> The problem is actually in a kind of misconception.
> 
> wget by itself is a native binary/app that should not require java at all.

I’ve been building stuff on OS X since its beginning, and on Linux for several years before that (i.e. more that 20 years of building on Unix-like systems), so I’m well aware of this.  Our build procedure for wget doesn’t care one bit about Java.

> 
> However, it uses some library (probably the one that supports IDN) that need java.

The only reason that libidn has a Java dependency is because its build process builds an accompanying Java plugin.  When installing wget from the binary distribution, which applies to the majority of our users, only the libidn-shlibs library package is required.

> 
> To overcome this one must install an insecure java version from Oracle that installs it's plugins into browsers.

Not quite correct. You’re installing the JDK and an accompanying JRE which are independent of the browser plugin JRE.

> 
> For people concerned about security it looks like not a good option.
> 
> So it would be nice to have something like a "wget-no-java" version even in case it will not support IDN.
> 

Fionna:~ hansen$ fink list wget
Scanning package description files..........
Information about 10445 packages read in 1 seconds.
 p   gnu-wget                      [virtual package]
     wget             1.19.2-2     Automatic web site retriever (SSL)
     wget-gnutls      1.19.2-2     Automatic web site retriever (SSL)
     wget-gnutls-idn  1.19.2-2     Automatic web site retriever (SSL)
(i)  wget-idn         1.19.2-2     Automatic web site retriever (SSL)

Neither “wget” nor “wget-gnutls” need libidn.  It might be that some other dependency needs Java, though—I haven’t investigated that.

> Also, you may consider using some other lib for IDN support.
> For example, in my own apps I use puny code conversion that fits just a few hundred lines of C code.
> It requires no java at all.
> 

I don’t think anybody is likely to pay me enough for my time to try to roll my own analogue to libidn and port wget to use that.   


> Best regards,
> Paully.


-- 
Alexander Hansen, Ph.D.
Fink User Liaison


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel