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

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

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

MacPorts
#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
Reply | Threaded
Open this post in threaded view
|

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

MacPorts
#55550: Current ntop broken (and fails to rebuild) by current rrdtool
---------------------+-----------------
  Reporter:  gthb    |      Owner:
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  ntop    |
---------------------+-----------------
Changes (by gthb):

 * Attachment "main.log" added.

 main.log from the failing build

--
Ticket URL: <https://trac.macports.org/ticket/55550>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

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

MacPorts
In reply to this post by MacPorts
#55550: Current ntop broken (and fails to rebuild) by current rrdtool
---------------------+-----------------
  Reporter:  gthb    |      Owner:
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  ntop    |
---------------------+-----------------

Comment (by mf2k):

 looking at the ntop homepage, I don't see what the latest version of top
 is? Do you know?

--
Ticket URL: <https://trac.macports.org/ticket/55550#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

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

MacPorts
In reply to this post by MacPorts
#55550: Current ntop broken (and fails to rebuild) by current rrdtool
---------------------+-----------------
  Reporter:  gthb    |      Owner:
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  ntop    |
---------------------+-----------------

Comment (by gthb):

 I don't know for sure. But from the homepage it seems like `ntop` is a
 deprecated old codebase and the “modern” replacement is `ntopng` (`ng`
 probably meaning “next generation”).

 Indeed the current `ntop` version in MacPorts is 5.0.1 and it appears that
 5.0 was released in summer 2012. There is no `ntopng` in MacPorts.

--
Ticket URL: <https://trac.macports.org/ticket/55550#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

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

MacPorts
In reply to this post by MacPorts
#55550: Current ntop broken (and fails to rebuild) by current rrdtool
---------------------+-----------------
  Reporter:  gthb    |      Owner:
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  ntop    |
---------------------+-----------------

Comment (by mf2k):

 There is a submission ticket with a version of ntopng from 3 years ago.
 #39667. I think updating that to the latest version and adding to Macports
 is the best solution.

--
Ticket URL: <https://trac.macports.org/ticket/55550#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

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

MacPorts
In reply to this post by MacPorts
#55550: Current ntop broken (and fails to rebuild) by current rrdtool
---------------------+-----------------
  Reporter:  gthb    |      Owner:
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  ntop    |
---------------------+-----------------

Comment (by jpoliv):

 According to this mail thread
  * https://lists.oetiker.ch/pipermail/rrd-
 developers/2016-March/004489.html
 librrd_th has been deprecated as librrd is now thread safe.


 {{{
 <quote>
 On 3/6/2016 2:09:17 AM, Tobi Oetiker <tobi at oetiker.ch [mailto:tobi at
 oetiker.ch]> wrote:
 Hi Paul

 if you are looking at the master branch ... librrd_th is gone since librrd
 is now thread-safe

 cheers
 tobi

 Tobias Oetiker
 tobi at oetiker.ch [mailto:tobi at oetiker.ch]
 062 775 9902
 </quote>
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/55550#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

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

MacPorts
In reply to this post by MacPorts
#55550: Current ntop broken (and fails to rebuild) by current rrdtool
---------------------+--------------------
  Reporter:  gthb    |      Owner:  (none)
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  ntop    |
---------------------+--------------------

Comment (by TheLastLovemark):

 So what is the solution?

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