Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prelude-manager: Use MacPorts libev and net-snmp #22332

Merged
merged 1 commit into from Jan 23, 2024

Conversation

ryandesign
Copy link
Contributor

@ryandesign ryandesign commented Jan 23, 2024

Description

Fixes build failure on recent macOS whose net-snmp-config is broken.

Closes: https://trac.macports.org/ticket/69153

Switch pkgconfig dependency to path:-based to accommodate pkgconf.

Add libtool dependency because prelude-manager links with libltdl.dylib.

Add net-snmp dependency and --enable-snmp configure arg for clarity.

Add libev dependency and --with-libev configure arg to tell it to use MacPorts libev and patch Makefile.am to avoid trying to build the bundled libev which would fail. Add LIBEV_CFLAGS and LIBEV_LIBS environment variables because the configure script expects to find libev via pkg-config but libev doesn't provide a pkg-config file.

Remove --mandir=${prefix}/share/man configure arg; that's the default.

Add --with-libwrap=${prefix} configure arg to suppress an ld warning that otherwise appears due to an improperly written configure script.

Suppress warning about intentional implicit declaration of strchr.

Use destroot.keepdirs to create the turd file in ${destroot}${prefix}/var/spool/prelude-manager rather than doing it manually.

Type(s)
  • bugfix
  • enhancement
  • security fix
Tested on

macOS 12.7.2 21G1974 x86_64
Xcode 14.2 14C18

Verification

Have you

  • followed our Commit Message Guidelines?
  • squashed and minimized your commits?
  • checked that there aren't other open pull requests for the same change?
  • referenced existing tickets on Trac with full URL?
  • checked your Portfile with port lint --nitpick?
  • tried existing tests with sudo port test?
  • tried a full install with sudo port -vst install?
  • tested basic functionality of all binary files?
  • checked that the Portfile's most important variants haven't been broken?

Fixes build failure on recent macOS whose net-snmp-config is broken.

Closes: https://trac.macports.org/ticket/69153

Switch pkgconfig dependency to path:-based to accommodate pkgconf.

Add libtool dependency because prelude-manager links with libltdl.dylib.

Add net-snmp dependency and --enable-snmp configure arg for clarity.

Add libev dependency and --with-libev configure arg to tell it to use
MacPorts libev and patch Makefile.am to avoid trying to build the
bundled libev which would fail. Add LIBEV_CFLAGS and LIBEV_LIBS
environment variables because the configure script expects to find libev
via pkg-config but libev doesn't provide a pkg-config file.

Remove --mandir=${prefix}/share/man configure arg; that's the default.

Add --with-libwrap=${prefix} configure arg to suppress an ld warning
that otherwise appears due to an improperly written configure script.

Suppress warning about intentional implicit declaration of strchr.

Use destroot.keepdirs to create the turd file in ${destroot}${prefix}
/var/spool/prelude-manager rather than doing it manually.

Co-authored-by: Craig Treleaven <ctreleaven@macports.org>
@macportsbot
Copy link

Notifying maintainers:
@ctreleaven for port prelude-manager.

@macportsbot macportsbot added maintainer: open Affects an openmaintainer port by: member Created by a member with commit rights labels Jan 23, 2024
@ctreleaven
Copy link
Member

Thank you Ryan.

@ctreleaven ctreleaven merged commit 2369e08 into macports:master Jan 23, 2024
3 checks passed
@ryandesign ryandesign deleted the prelude branch January 23, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
by: member Created by a member with commit rights maintainer: open Affects an openmaintainer port
3 participants