[MacPorts] #52214: net-snmp is not compatible with perl-5.24
#52214: net-snmp is not compatible with perl-5.24 ------------------------+-------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: net-snmp ------------------------+-------------------------- net-snmp is the only port that I have that is still dependent on perl-5.22. I made a change to the port to get it to support 5.24 optoinally: {{{ Index: Portfile =================================================================== --- Portfile (revision 152509) +++ Portfile (working copy) @@ -6,7 +6,7 @@ name net-snmp version 5.7.3 -revision 5 +revision 6 categories net license BSD platforms darwin @@ -27,10 +27,12 @@ checksums rmd160 c5cf54d5723ee417e07f1f9fa3936aef505104a2 \ sha256 12ef89613c7707dc96d13335f153c1921efc9d61d3708ef09f3fc4a7014fb4f0 -perl5.branches 5.22 +perl5.require_variant yes +perl5.conflict_variants yes +perl5.branches 5.22 5.24 +perl5.create_variants ${perl5.branches} depends_lib port:bzip2 \ - port:perl${perl5.major} \ port:zlib post-extract { }}} but that fails due to a conflict between net-snmp and perl-5.24. This will need to be resolved before we make 5.24 default. {{{ In file included from snmp_perl.c:9: In file included from ../include/net-snmp/net-snmp-includes.h:71: In file included from ../include/net-snmp/utilities.h:42: ../include/net-snmp/library/int64.h:8:30: error: typedef redefinition with different types ('struct counter64' vs 'unsigned long') typedef struct counter64 U64; ^ /opt/local/lib/perl5/5.24/darwin-thread-multi-2level/CORE/handy.h:179:17: note: previous definition is here typedef U64TYPE U64; ^ 1 error generated. make[1]: *** [snmp_perl.lo] Error 1 }}} Upstream report: https://sourceforge.net/p/net-snmp/bugs/2712/ Fixed by: https://sourceforge.net/p/net- snmp/code/ci/4e793461e96a2b4fd81142ab312d074d5c8841fa -- Ticket URL: <https://trac.macports.org/ticket/52214> MacPorts <https://www.macports.org/> Ports system for macOS
#52214: net-snmp is not compatible with perl-5.24 -------------------------+-------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: net-snmp | -------------------------+-------------------------- Changes (by larryv@…): * cc: mojca@…, devans@… (added) -- Ticket URL: <https://trac.macports.org/ticket/52214#comment:1> MacPorts <https://www.macports.org/> Ports system for macOS
#52214: net-snmp is not compatible with perl-5.24 -------------------------+-------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: net-snmp | -------------------------+-------------------------- Comment (by jeremyhu@…): That SF bug only covers one of the failures. I'm looking into the other still. -- Ticket URL: <https://trac.macports.org/ticket/52214#comment:2> MacPorts <https://www.macports.org/> Ports system for macOS
#52214: net-snmp is not compatible with perl-5.24 -------------------------+-------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: net-snmp | -------------------------+-------------------------- Comment (by jeremyhu@…): FreeBSD has a patch for the other issue. That is mentioned in the upstream report, but they haven't folded it into the upstream git repo yet for some reason. The attached patch gets net-snmp to install with perl-5.24. I haven't given it much of a beating yet. -- Ticket URL: <https://trac.macports.org/ticket/52214#comment:3> MacPorts <https://www.macports.org/> Ports system for macOS
#52214: net-snmp is not compatible with perl-5.24 -------------------------+-------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: Port: net-snmp | -------------------------+-------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Thanks for that patch, Jeremy. Committed in r154090 and r154109 without adding variants. -- Ticket URL: <https://trac.macports.org/ticket/52214#comment:4> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
participants (1)
-
MacPorts