]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
source3/wscript: Remove extra config WITH_PROMETHEUS_EXPORTER
authorAnoop C S <anoopcs@samba.org>
Thu, 8 May 2025 07:50:08 +0000 (13:20 +0530)
committerAnoop C S <anoopcs@samba.org>
Fri, 9 May 2025 12:04:16 +0000 (12:04 +0000)
Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Fri May  9 12:04:16 UTC 2025 on atb-devel-224

docs-xml/wscript_build
source3/selftest/tests.py
source3/wscript

index 35b22762c9819d1a1b4ac8cd3eb97ffa7b7cff76..42833a964c02892089cdc6a8444d60964ee19b03 100644 (file)
@@ -202,7 +202,7 @@ if ('XSLTPROC_MANPAGES' in bld.env and bld.env['XSLTPROC_MANPAGES']):
     if conf.env.build_winexe == True:
         bld.SAMBAMANPAGES(winexe_manpages)
 
-    if bld.CONFIG_SET('WITH_PROMETHEUS_EXPORTER'):
+    if bld.CONFIG_SET('HAVE_EVHTTP_NEW') and bld.CONFIG_SET('WITH_PROFILE'):
         bld.SAMBAMANPAGES(prometheus_manpages)
 
     if bld.CONFIG_SET('ENABLE_SELFTEST'):
index bf7e699c912f66225d883f3d73327e1e116ea50e..ce176450a871553a8b7bd3dcb1cea390c8c81786 100755 (executable)
@@ -951,7 +951,7 @@ plantestsuite("samba3.blackbox.smbclient_old_dir", "fileserver_smb1",
                             "script/tests/test_old_dirlisting.sh"),
                timelimit, smbclient3])
 
-with_prometheus_exporter = ("WITH_PROMETHEUS_EXPORTER" in config_hash)
+with_prometheus_exporter = ("HAVE_EVHTTP_NEW" and "WITH_PROFILE" in config_hash)
 
 for env in ["fileserver:local"]:
     plantestsuite("samba3.blackbox.net_usershare", env, [os.path.join(samba3srcdir, "script/tests/test_net_usershare.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', smbclient3])
index 493cef1db2379f83a350845f336de0db187a4b42..9d7fc0130416ea9840a063bbfe1ad1a587afef21 100644 (file)
@@ -214,7 +214,6 @@ long ret = splice(0,0,1,0,400,SPLICE_F_MOVE);
         Logs.info("Checking for libevent existence")
         if conf.CHECK_HEADERS('event2/http.h') and conf.CHECK_LIB('event', shlib=True):
             conf.CHECK_FUNCS_IN('evhttp_new', 'event')
-        conf.DEFINE('WITH_PROMETHEUS_EXPORTER', 1)
         if not conf.CONFIG_SET('HAVE_EVHTTP_NEW'):
             conf.fatal("libevent support not found. "
                        "Try installing libevent-dev or libevent-devel. "