]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Bug 3835 - NTP_HARD_*FLAGS not used by libevent tearoff.
authorDave Hart <hart@ntp.org>
Fri, 16 Jun 2023 05:13:03 +0000 (05:13 +0000)
committerDave Hart <hart@ntp.org>
Fri, 16 Jun 2023 05:13:03 +0000 (05:13 +0000)
cvo.sh:
  Fix on newer Linux with /etc/os-release
ntp_libevent.m4:
  Newer libevent supports LIBEVENT_*FLAGS.
  Disable building samples for the bundled libevent.
configure.ac:
  One piece missing in LIBEVENT_*FLAGS support

bk: 648bef5fPmcmIFwcbzTD9M59WDOtmw

ChangeLog
sntp/libevent/configure.ac
sntp/m4/ntp_libevent.m4
sntp/scripts/cvo.sh

index 93cdab8b94eb430d9e1cf091711f64b15317250a..d77a2ee981fca8071379198834cfbeb36cf666ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+---
+* [Bug 3835] NTP_HARD_*FLAGS not used by libevent tearoff.
+
 ---
 (4.2.8p17) 2023/06/06 Released by Harlan Stenn <stenn@ntp.org>
 
index d00e063a1474dd2343af413acce532c78a7e602f..f84c237df70adab21fa526bfbe3f2710582f0559 100644 (file)
@@ -989,6 +989,11 @@ AC_SUBST([LIBEVENT_GC_SECTIONS])
 
 AM_CONDITIONAL([INSTALL_LIBEVENT], [test "$enable_libevent_install" = "yes"])
 
+dnl Aloow addtional flags from a containing package such as NTP
+AC_SUBST([LIBEVENT_CFLAGS])
+AC_SUBST([LIBEVENT_CPPFLAGS])
+AC_SUBST([LIBEVENT_LDFLAGS])
+
 # Doxygen support
 DX_HTML_FEATURE(ON)
 DX_MAN_FEATURE(OFF)
index 14b614b465a339a01436f1248293ad55d6215737..8e7d65b5c29ef5fada1dc77f0d26b84314af62b2 100644 (file)
@@ -181,14 +181,15 @@ case "$ntp_use_local_libevent" in
     dnl User-supplied contradictory choices should prevail thanks to
     dnl "last wins".
     ac_configure_args=" --disable-openssl${ac_configure_args}"
+    ac_configure_args=" --disable-samples${ac_configure_args}"
     ac_configure_args=" --disable-shared${ac_configure_args}"
     ac_configure_args=" --disable-libevent-regress${ac_configure_args}"
     ac_configure_args=" --disable-libevent-install${ac_configure_args}"
     ac_configure_args=" --enable-silent-rules${ac_configure_args}"
     ac_configure_args=" --enable-function-sections${ac_configure_args}"
-    ac_configure_args=" LEP_CFLAGS='${NTP_HARD_CFLAGS}'${ac_configure_args}"
-    ac_configure_args=" LEP_CPPFLAGS='${NTP_HARD_CPPFLAGS}'${ac_configure_args}"
-    ac_configure_args=" LEP_LDFLAGS='${NTP_HARD_LDFLAGS}'${ac_configure_args}"
+    ac_configure_args=" LIBEVENT_CFLAGS='${NTP_HARD_CFLAGS}'${ac_configure_args}"
+    ac_configure_args=" LIBEVENT_CPPFLAGS='${NTP_HARD_CPPFLAGS}'${ac_configure_args}"
+    ac_configure_args=" LIBEVENT_LDFLAGS='${NTP_HARD_LDFLAGS}'${ac_configure_args}"
     AC_CONFIG_SUBDIRS([libevent])
     ;;
  *)
index ecd80922301f466a6e1b2bcedb23c1f4ac2e82a5..77a161172499b811bf0fdfe9bdb8192b34d8f3a6 100755 (executable)
@@ -26,7 +26,13 @@ case "$#" in
     CVO_OS=$4
     case "$cvo_KERN" in
      linux)                    # Braindamage.  We want OS, not kernel info
-       if lsb_release > /dev/null 2>&1
+       if test -f /etc/os-release
+       then
+           . /etc/os-release
+           ID=`echo $ID | tr '-' '_'`
+           CVO_OS="${ID}${VERSION_ID}"
+           CVO_KOSVER=`uname -r`
+       elif lsb_release > /dev/null 2>&1
        then
            CVO_OS=`lsb_release --id --short | tr '[:upper:]' '[:lower:]'`
            CVO_OS="$CVO_OS`lsb_release --release --short`"