[MacPorts] #61323: pdftk-java @3.1.1_1: add symlink to pdftk?

MacPorts noreply at macports.org
Thu Oct 15 06:47:59 UTC 2020


#61323: pdftk-java @3.1.1_1: add symlink to pdftk?
---------------------------+--------------------
  Reporter:  PhilippImhof  |      Owner:  (none)
      Type:  enhancement   |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.6.3
Resolution:                |   Keywords:
      Port:  pdftk-java    |
---------------------------+--------------------

Comment (by kencu):

 Replying to [comment:2 PhilippImhof]:
 > I do not see how this could solve the problem.
 I don't understand what you mean.

 >  If {{{pdftk-java}}} is installed and {{{pdftk}}} is not (and cannot be,
 as it does not build),

 pdftk installs on many sytems that MacPorts supports
 <https://packages.macports.org/pdftk/>.

 If you want pdftk-java to install a symlink to pdftk, there cannot already
 be a pdftk binary sitting there or there will be an error generated, and
 that is a bad user experience we hope to avoid.

 > there is no binary called {{{pdftk}}} in {{{/opt/local/bin}}} and so no
 way of invoking {{{pdftk-java}}} without typing the long name. As a
 consequence, all any script calling {{{pdftk}}} must be changed.

 indeed
 >
 > I just did {{{ln -s pdftk-java pdftk}}} in {{{/opt/local/bin}}} and now
 everything is fine. But IMHO it would be good to include that symlink in
 the port directly.

 Sounds plausible if no conflicting pdftk binary is already installed.

 Now, there are other ways you could prevent these two ports from
 colliding...but marking them as conflicting would be the simplest, and
 that's what we usually do.

 It takes 5 seconds...not like it's some huge deal to prevent the tickets
 that would inevitably show up without the conflict marked.

-- 
Ticket URL: <https://trac.macports.org/ticket/61323#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list