[MacPorts] #34275: pdftk should not depend on gcc42

MacPorts noreply at macports.org
Tue Dec 2 18:24:01 PST 2014


#34275: pdftk should not depend on gcc42
------------------------+--------------------------
  Reporter:  jharmon@…  |      Owner:  ryandesign@…
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.0.4
Resolution:             |   Keywords:
      Port:  pdftk      |
------------------------+--------------------------
Changes (by ryandesign@…):

 * cc: burdges@… (added)


Comment:

 When you ask a question in a ticket, please Cc yourself so that you will
 be notified of the answer.

 pdftk is written in Java so it needs a Java compiler. Xcode does not
 provide one. gcc does. gcc47 appears to build pdftk successfully. gcc48
 and later do not, that is why variants have not been added for those
 versions.

 Right now, pdftk sets `configure.compiler` which changes the C and C++
 compilers as well as the Java compiler, and thus makes the software link
 with the gcc libraries. So technically it should have a build dependency
 on e.g. gcc47 and a library dependency on libgcc. I am not certain why
 setting `configure.compiler` does not cause that to happen.

 It may be possible to have the port build with the default C/C++ compiler
 while switching only the Java compiler, and that this would remove the
 need for the libgcc dependency. This would be preferable and I will try
 it.

-- 
Ticket URL: <https://trac.macports.org/ticket/34275#comment:23>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list