[MacPorts] #55550: Current ntop broken (and fails to rebuild) by current rrdtool

MacPorts noreply at macports.org
Tue Dec 19 14:27:30 UTC 2017


#55550: Current ntop broken (and fails to rebuild) by current rrdtool
--------------------+------------------
 Reporter:  gthb    |      Owner:
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  ntop
--------------------+------------------
 Port rev-upgrade is reporting ntop as broken and failing to rebuild it,
 because ntop references a lib that's no longer present in the current
 `rrdtool`.

 {{{
 $ sudo port -v rev-upgrade
 --->  Scanning binaries for linking errors
 Could not open /opt/local/lib/librrd_th.4.dylib: Error opening or reading
 file (referenced from /opt/local/bin/ntop)
 --->  Found 4 broken files, matching files to ports
 --->  Found 1 broken port, determining rebuild order
 You can always run 'port rev-upgrade' again to fix errors.
 The following ports will be rebuilt: ntop @5.0.1
 Continue? [Y/n]:
 --->  Computing dependencies for ntop
 --->  Cleaning ntop
 --->  Scanning binaries for linking errors
 --->  Found 4 broken files, matching files to ports
 --->  Found 1 broken port, determining rebuild order
 --->  Rebuilding in order
      ntop @5.0.1
 --->  Computing dependencies for ntop
 --->  Fetching distfiles for ntop
 --->  Verifying checksums for ntop
 --->  Extracting ntop
 --->  Applying patches to ntop
 --->  Configuring ntop
 Error: Failed to configure ntop, consult
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ntop/ntop/work/ntop-5.0.1/config.log
 Error: Failed to configure ntop: configure failure: command execution
 failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ntop/ntop/main.log
 for details.
 Error: rev-upgrade failed: Error rebuilding ntop
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 }}}

 {{{
 $ port log ntop
 [...]
 checking for RRD home... yes
 checking for main in -lrrd_th... no
 configure: error: Unable to find RRD at /opt/local: please use --with-rrd-
 home=DIR
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ntop/ntop/work/ntop-5.0.1"
 &&
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ntop/ntop/work/ntop-5.0.1/autogen.sh
 --prefix=/opt/local --with-rrd-home=/opt/local --without-ssl
 Exit code: 1
 Error: Failed to configure ntop, consult
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ntop/ntop/work/ntop-5.0.1/config.log
 Error: Failed to configure ntop: configure failure: command execution
 failed
 DEBUG: Error code: NONE
 DEBUG: Backtrace: configure failure: command execution failed
 DEBUG:     while executing
 DEBUG: "$procedure $targetname"
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ntop/ntop/main.log
 for details.
 }}}

 {{{
 $ port installed rrdtool
 The following ports are currently installed:
   rrdtool @1.5.5_1
   rrdtool @1.7.0_0 (active)
 }}}

 Indeed the current `rrdtool` doesn't contain that lib:

 {{{
 $ port contents rrdtool | grep _th
 }}}

 ... outputs nothing.

 Now if I activate the older version:

 {{{
 $ sudo port activate rrdtool @1.5.5_1
 --->  Computing dependencies for rrdtool
 --->  Deactivating rrdtool @1.7.0_0
 --->  Cleaning rrdtool
 --->  Activating rrdtool @1.5.5_1
 --->  Cleaning rrdtool
 }}}

 then I do have that lib:

 {{{
 $ port contents rrdtool | grep _th
   /opt/local/lib/librrd_th.4.dylib
   /opt/local/lib/librrd_th.a
   /opt/local/lib/librrd_th.dylib
 }}}

 and the rev-upgrade no longer finds ntop broken:

 {{{
 sudo port -v rev-upgrade
 --->  Scanning binaries for linking errors
 --->  No broken files found.
 }}}

 So current MacPorts version of `ntop` is not compatible with current
 MacPorts version of `rrdtool`. Probably should explicitly depend on an
 older version, or be updated itself. (Or maybe the current rrdtool is just
 broken by not having that library; I don't know.)

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


More information about the macports-tickets mailing list