[MacPorts] #55421: unixODBC @2.3.2: Fix paths in nntp.driver.template and tds.driver.template

MacPorts noreply at macports.org
Mon Nov 27 11:41:35 UTC 2017


#55421: unixODBC @2.3.2: Fix paths in nntp.driver.template and tds.driver.template
------------------------+----------------------
 Reporter:  ryandesign  |      Owner:  simon@…
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  unixODBC
------------------------+----------------------
 The paths in the installed files nntp.driver.template and
 tds.driver.template contain the unreplaced placeholder `_DP_PREFIX`:

 {{{
 $ grep /lib/ /opt/local/share/unixODBC/*
 /opt/local/share/unixODBC/nntp.driver.template:Driver                   =
 _DP_PREFIX/lib/libnn.so
 /opt/local/share/unixODBC/nntp.driver.template:Setup                    =
 _DP_PREFIX/lib/libodbcnnS.so
 /opt/local/share/unixODBC/postgresql.driver.template:Driver
 = /opt/local/lib/libodbcpsql.so
 /opt/local/share/unixODBC/postgresql.driver.template:Setup
 = /opt/local/lib/libodbcpsqlS.so
 /opt/local/share/unixODBC/tds.driver.template:Driver                    =
 _DP_PREFIX/lib/libtdsodbc.so
 /opt/local/share/unixODBC/tds.driver.template:Setup                     =
 _DP_PREFIX/lib/libtdsS.so
 }}}

 The paths in the file postgresql.driver.template properly contain the
 actual prefix, `/opt/local`.

 Looks like this got screwed up in r11771, 12.5 years ago. You never
 noticed this problem?

 The current version of MacPorts gives us a hint at installation time that
 something is amiss:

 {{{
 Warning: reinplace s|__PREFIX__|/opt/local|g didn't change anything in
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_unixODBC/unixODBC/work/destroot/opt/local/share/unixODBC/nntp.driver.template
 Warning: reinplace s|__PREFIX__|/opt/local|g didn't change anything in
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_unixODBC/unixODBC/work/destroot/opt/local/share/unixODBC/tds.driver.template
 }}}

 The fix is to change the placeholder in the nntp.driver.template and
 tds.driver.template files from `_DP_PREFIX` to `__PREFIX__` to match
 postgresql.driver.template.

 The port's revision will need to be increased when this is done, since the
 change affects installed files.

--
Ticket URL: <https://trac.macports.org/ticket/55421>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list