Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Rings:1-MinimalX
net-snmp
net-snmp-5.7.3-net-snmp-config-headercheck.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File net-snmp-5.7.3-net-snmp-config-headercheck.patch of Package net-snmp
Index: net-snmp-5.7.2/net-snmp-config.in =================================================================== --- net-snmp-5.7.2.orig/net-snmp-config.in +++ net-snmp-5.7.2/net-snmp-config.in @@ -41,6 +41,14 @@ count() echo $# } +check_devel_files() +{ + if [ ! -e "${NSC_INCDIR}/net-snmp/net-snmp-config.h" ] ; then + echo "Can not find \"${NSC_INCDIR}/net-snmp/net-snmp-config.h\". The net-snmp development files seems to be missing. Exiting" >&2 + # exit 2 + fi +} + prefix=@prefix@ exec_prefix=@exec_prefix@ includedir=@includedir@ @@ -138,9 +146,11 @@ else ;; #################################################### compile --base-cflags) + check_devel_files echo @CFLAGS@ @CPPFLAGS@ -I${NSC_INCLUDEDIR} ;; --cflags|--cf*) + check_devel_files echo @CFLAGS@ @DEVFLAGS@ @CPPFLAGS@ -I. -I${NSC_INCLUDEDIR} ;; --srcdir) @@ -151,6 +161,7 @@ else echo $NSC_LIBDIR ;; --ldflags|--ld*) + check_devel_files echo $NSC_LDFLAGS ;; --build-lib-dirs) @@ -188,29 +199,37 @@ else #################################################### client lib --libs) # use this one == --netsnmp-libs + --external-libs + check_devel_files echo $NSC_LDFLAGS $NSC_LIBDIR $NSC_SNMPLIBS $NSC_LIBS ;; --netsnmp-libs) + check_devel_files echo $NSC_LIBDIR $NSC_BASE_SNMP_LIBS ;; --external-libs) + check_devel_files echo $NSC_LDFLAGS $NSC_LNETSNMPLIBS $NSC_LIBS @PERLLDOPTS_FOR_APPS@ ;; #################################################### agent lib --base-agent-libs) + check_devel_files echo $NSC_BASE_AGENT_LIBS ;; --base-subagent-libs) + check_devel_files echo $NSC_BASE_SUBAGENT_LIBS ;; --agent-libs) # use this one == --netsnmp-agent-libs + --external-libs + check_devel_files echo $NSC_LDFLAGS $NSC_LIBDIR $NSC_AGENTLIBS $NSC_LIBS ;; --netsnmp-agent-libs) + check_devel_files echo $NSC_LIBDIR $NSC_BASE_AGENT_LIBS ;; --external-agent-libs) + check_devel_files echo $NSC_LDFLAGS $NSC_LMIBLIBS $NSC_LAGENTLIBS $NSC_LNETSNMPLIBS $NSC_LIBS ;; #################################################### @@ -236,6 +255,7 @@ else #################################################### --compile-subagent) + check_devel_files shift shifted=1 while test "x$done" = "x" -a "x$1" != "x" ; do
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor