Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#8828 closed enhancement (fixed)

UPDATE: net-snmp 5.3.0.1

Reported by: aschenke@… Owned by: opendarwin.org@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc: markd@…
Port:

Description

Updated to build on Darwin 8 and various other Portfile fixes. Specific changes:

  1. Updated version to 5.3.0.1 and updated MD5 checksum.
  2. Removed (broken) darwin variant and server variant.
  3. Removed patch for Makefile.in.
  4. Updated configure.args, including suggestions from README.osX; this allows the package to build and install correctly (at least on 10.4). --with-install-prefix is needed to destroot correctly.

Attachments (1)

patch-Portfile (2.7 KB) - added by aschenke@… 18 years ago.
Portfile patch for net-snmp 5.3.0.1

Download all attachments as: .zip

Change History (9)

Changed 18 years ago by aschenke@…

Attachment: patch-Portfile added

Portfile patch for net-snmp 5.3.0.1

comment:1 Changed 18 years ago by mww@…

Cc: opendarwin.org@… removed
Owner: changed from darwinports-bugs@… to opendarwin.org@…

comment:2 Changed 18 years ago by opendarwin.org@…

Status: newassigned

Upgraded to 5.3.0.1, modified fixes from attached patch applied. I will close this bug in ~1 week if I don't hear back on any other changes.

comment:3 Changed 18 years ago by aschenke@…

In my testing when creating the updated Portfile I discovered:

  1. The single quoted arguments in configure.args, such as --mandir='\${prefix}/share/man', do not expand ${prefix} correctly. In other words, the literal string "${prefix}" is used when building.
  2. --with-install-prefix must be used, or else the files will not be destrooted correctly; they will be installed directly into the DP tree during the destroot stage and not registered with DP.

In addition, the currently committed Portfile indicates a non-existent patch file (patch-agent.mibgroup.host.hr_storage.c). Thus it won't build.

The above issues are in need of correction. Unless you see something wrong with the way I have things set up, I suggest using the Portfile patch I submitted as-is. It also includes some other Mac OS X specific configure args suggested by the net-snmp documentation.

comment:4 Changed 18 years ago by opendarwin.org@…

(In reply to comment #3)

In my testing when creating the updated Portfile I discovered:

  1. The single quoted arguments in configure.args, such as

--mandir='\${prefix}/share/man', do not expand ${prefix} correctly. In other words, the literal string "${prefix}" is used when building.

  1. --with-install-prefix must be used, or else the files will not be destrooted

correctly; they will be installed directly into the DP tree during the destroot stage and not registered with DP.

Hmm, I'll check that again to be sure I get the same results. If not we'll figure out what's different... (time passes) - Urk, yeah, not registering files. sigh, fixing...

In addition, the currently committed Portfile indicates a non-existent patch file (patch-agent.mibgroup.host.hr_storage.c). Thus it won't build.

Whups, I left that in from other work I was doing on net-snmp (to get +server building), thanks for catching that.

The above issues are in need of correction. Unless you see something wrong with the way I have things set up, I suggest using the Portfile patch I submitted as-is. It also includes some other Mac OS X specific configure args suggested by the net-snmp documentation.

I prefer the server to be a variant, though if there's a good reason not to I'd like to hear it. I left off the '--with-ldflags=-flat_namespace' for now, if that's a problem for something we can add that to the server variant (or the base config options).

comment:5 Changed 18 years ago by aschenke@…

(In reply to comment #4)

I did an install of the current Portfile and it seemed to build, install and uninstall OK.

I prefer the server to be a variant, though if there's a good reason

not to I'd like to hear it. I left off the '--with-ldflags=-flat_namespace' for now, if that's a problem for something we can add that to the server variant (or the base config options).

Regarding the server variant: I'm sure you have more experience with net-snmp than I do, so please go with whatever you decide is best. As for --with-ldflags=-flat_namespace, it was suggested in the README.osX file to include this to prevent dyld errors with embedded Perl modules under 10.4.x. I haven't run into this error myself, however.

comment:6 Changed 18 years ago by rhwood@…

severity: normalenhancement

Updates and new ports are enhancements

comment:7 Changed 18 years ago by aschenke@…

Should we go ahead and close this bug now?

comment:8 Changed 18 years ago by markd@…

Cc: markd@… added
Resolution: fixed
Status: assignedclosed

(In reply to comment #7)

Should we go ahead and close this bug now?

Sounds fine. Closed. BTW, v5.3.1 is out now.

Note: See TracTickets for help on using tickets.