Ticket #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:
- Updated version to 5.3.0.1 and updated MD5 checksum.
- Removed (broken) darwin variant and server variant.
- Removed patch for Makefile.in.
- 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
Change History
Changed 7 years ago by aschenke@…
- Attachment patch-Portfile added
comment:1 Changed 7 years ago by mww@…
- Cc opendarwin.org@… removed
- Owner changed from darwinports-bugs@… to opendarwin.org@…
comment:2 Changed 7 years ago by opendarwin.org@…
- Status changed from new to assigned
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 7 years ago by aschenke@…
In my testing when creating the updated Portfile I discovered:
- 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.
- --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 7 years ago by opendarwin.org@…
(In reply to comment #3)
In my testing when creating the updated Portfile I discovered:
- 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.
- --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 7 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.


Portfile patch for net-snmp 5.3.0.1