[Bug 237913] devel/apache-ant - upgrade, build from source
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Jun 27 20:54:46 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237913
--- Comment #7 from Mikhail Teterin <mi at FreeBSD.org> ---
Greg, Michael, the arguments you raise would apply - verbatim - to the entire
FreeBSD. Indeed, building from source "adds complexity". It also targets a
certain hardware. And so on.
Yet, FreeBSD is an open source project -- with the sources provided for
EVERYTHING, with it being possible to rebuild every file in the distribution
(including documentation)...
And ports are -- or should be -- the same. Quoting from
https://www.freebsd.org/ports/ (emphasis mine):
Each "port" listed here contains any patches necessary to make the
original application SOURCE CODE compile and run on FreeBSD.
It is quite disappointing to see a number of Java ports violate the above
principle installing precompiled binaries -- simply repackaging them from some
format into another (pkg a.k.a tar.xz). Of course, it is understood, that in a
volunteer project developers may simply not have time for a proper
implementation.
Yet, when the work's already been done and requires only minor fixups (if
any!), to reject it on the grounds, that "building from source is not
necessary", is "too complicated", or "takes too long", is contrary to the very
purpose of the whole endeavor.
Indeed, in Comment #3 Michael seems to agree with that -- only to contradict
himself later...
That's in general. As for particulars:
> Building with a certain JDK version means that older JDKs can't run the classes that are built.
This is not quite true. The "-target" argument can be added to javac's command
line to target an older JVM, while using a newer one. This is similar to using
C-compiler's -march flag...
Indeed, by forcing the users to accept the binaries built for the lowest
version (JDK7?), you're pessimizing the situation for the users of newer
JDKs...
> If you force the build to use the oldest JDK
The proposed patch would use whatever JDK the user *already has* installed. The
result will be perfectly usable for almost all users...
> building this from source is as timeconsuming as building LLVM
"buildworld" once took my 486-33 computer 4 days. Was it a mistake for FreeBSD
to bother maintaining the src/ tree buildable from source back then?
Whoever has no time to build from source, can always install a prebuilt RPM,
oops, package. But a) it should be possible to build from source; and b) such
building should be regularly exercised to prevent bit-rot.
This is not a problem unique to Java ports and needs no Java-specific
solutions.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-java
mailing list