Bug 243611 - print/pdflib: fail to build with JAVA option
Summary: print/pdflib: fail to build with JAVA option
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Alex Dupre
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-26 11:49 UTC by Tommy P
Modified: 2020-01-27 07:30 UTC (History)
3 users (show)

See Also:
w.schwarzenfeld: maintainer-feedback? (ale)


Attachments
patch for print/pdflib with JAVA option for configure (297 bytes, patch)
2020-01-26 11:50 UTC, Tommy P
no flags Details | Diff
patch for print/pdflib with JAVA option for configure.in (320 bytes, patch)
2020-01-26 11:51 UTC, Tommy P
no flags Details | Diff
svn-diff-pdflib-java (2.41 KB, patch)
2020-01-26 22:41 UTC, Walter Schwarzenfeld
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tommy P 2020-01-26 11:49:41 UTC
===> The following configuration options are available for pdflib-7.0.5_5:
     DOCS=off: Build and/or install documentation
     JAVA=on: Build Java bindings
     PERL=on: Build perl bindings
===> Use 'make config' to modify these settings


../../../libtool --silent --mode=link cc -o libpdf_java.la pdflib_java.lo -module -rpath /usr/local/lib \
    -fstack-protector-strong  ../../../libs/pdflib/libs_libpdf.la  -lm
rm -rf com
mkdir com
mkdir com/pdflib
javac -classpath pdflib.jar:.  -source 1.4 PDFlibException.java pdflib.java
warning: [options] bootstrap class path not set in conjunction with -source 1.4
error: Source option 1.4 is no longer supported. Use 6 or later.
gmake[4]: *** [Makefile:68: pdflib.jar] Error 2
gmake[4]: Leaving directory '/wrkdirs/usr/ports/print/pdflib/work/PDFlib-Lite-7.0.5p3/bind/pdflib/java'
gmake[3]: *** [../../config/mksubdirs.inc:17: all] Error 2
gmake[3]: Leaving directory '/wrkdirs/usr/ports/print/pdflib/work/PDFlib-Lite-7.0.5p3/bind/pdflib'
gmake[2]: *** [../config/mksubdirs.inc:17: all] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/print/pdflib/work/PDFlib-Lite-7.0.5p3/bind'
gmake[1]: *** [config/mksubdirs.inc:17: all] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/print/pdflib/work/PDFlib-Lite-7.0.5p3'
*** Error code 1

Stop.
make: stopped in /usr/ports/print/pdflib

====================================================================================================================

# JAVA_VERSION          List of space-separated suitable java versions for the
#                                       port. An optional "+" allows you to specify a range of
#                                       versions. (allowed values: 7[+] 8[+] 11[+] 12[+] 13[+])

from Mk/bsd.java.mk
Comment 1 Tommy P 2020-01-26 11:50:32 UTC
Created attachment 211058 [details]
patch for print/pdflib with JAVA option for configure
Comment 2 Tommy P 2020-01-26 11:51:09 UTC
Created attachment 211059 [details]
patch for print/pdflib with JAVA option for configure.in
Comment 3 Walter Schwarzenfeld freebsd_triage 2020-01-26 22:41:15 UTC
Created attachment 211088 [details]
svn-diff-pdflib-java

Another patch for configure already exists, so I had to change your patch.
Comment 4 Tommy P 2020-01-27 05:29:56 UTC
(In reply to Walter Schwarzenfeld from comment #3)
Thank you.  I forgot to check existing patches.
Comment 5 Alex Dupre freebsd_committer 2020-01-27 07:29:31 UTC
No need to bump portrevision and change configure.in.
Comment 6 commit-hook freebsd_committer 2020-01-27 07:30:21 UTC
A commit references this bug:

Author: ale
Date: Mon Jan 27 07:29:21 UTC 2020
New revision: 524244
URL: https://svnweb.freebsd.org/changeset/ports/524244

Log:
  Fix build when JAVA is enabled.

  PR:		243611
  Submitted by:	Tommy P <tommyhp2@gmail.com>

Changes:
  head/print/pdflib/files/patch-bind_pdflib_perl_Makefile
  head/print/pdflib/files/patch-configure