Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#12519 closed defect (fixed)

Unable to fetch javacc

Reported by: Philippe.Lafoucriere@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.5.0
Keywords: Cc: Philippe.Lafoucriere@…, mww@…
Port:

Description

There's a problem while installing cobertura :

sudo port install cobertura
--->  Fetching javacc
--->  Attempting to fetch javacc-4.0.tar.gz from https://javacc.dev.java.net/files/documents/17/26776/
--->  Attempting to fetch javacc-4.0.tar.gz from http://svn.macports.org/repository/macports/distfiles/javacc
--->  Attempting to fetch javacc-4.0.tar.gz from http://svn.macports.org/repository/macports/distfiles/general/
--->  Attempting to fetch javacc-4.0.tar.gz from http://svn.macports.org/repository/macports/downloads/javacc
Error: Target org.macports.fetch returned: fetch failed
Error: The following dependencies failed to build: javancss ccl-util javacc objectweb-asm objectweb-anttasks
Error: Status 1 encountered during processing.

Thanks Philippe

Change History (5)

comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: Philippe.Lafoucriere@… mww@… added
Milestone: Port Bugs
Owner: changed from macports-dev@… to mww@…
Summary: Unable to install coberturaUnable to fetch javacc

The problem is the javacc port, which downloads via https, and for some reason curl thinks the SSL certificate is invalid (though I got no error message when downloading via Camino 1.5):

$ curl -I https://javacc.dev.java.net/files/documents/17/26776/javacc-4.0.tar.gz
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). The default
 bundle is named curl-ca-bundle.crt; you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
$

Either the folks at java.net really do have a bad certificate, in which case they need to update it, or curl is incorrectly rejecting the certificate, in which case the curl bug needs to be fixed. The portfile could also just ignore the certificate, though I hate doing that. Either way, until the problem is resolved, you can download the source archive manually and place it in /opt/local/var/macports/distfiles/javacc and MacPorts should find it and use it.

comment:2 Changed 17 years ago by mww@…

Status: newassigned

to fix at least the building problem, I've placed a copy of the distfile on the macports.org server;

comment:3 Changed 17 years ago by Philippe.Lafoucriere@…

Thank you so much.

-- Philippe

comment:4 Changed 17 years ago by markd@…

Resolution: fixed
Status: assignedclosed

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.