components/sudo/Makefile
changeset 4837 5c4d5a9885cc
parent 4339 6501cf9c29f9
child 4943 1d2d4cba41b1
equal deleted inserted replaced
4836:2963a732ee80 4837:5c4d5a9885cc
    70 
    70 
    71 COMPONENT_INSTALL_TARGETS = install
    71 COMPONENT_INSTALL_TARGETS = install
    72 COMPONENT_INSTALL_ARGS += bindir=$(USRBINDIR)
    72 COMPONENT_INSTALL_ARGS += bindir=$(USRBINDIR)
    73 COMPONENT_INSTALL_ARGS += sbindir=$(USRSBINDIR)
    73 COMPONENT_INSTALL_ARGS += sbindir=$(USRSBINDIR)
    74 
    74 
    75 # Since linking with libmd.so (which provides sha2 capability on
    75 # Make sure that sudo is NOT built with its internal sha2 implementation
    76 # Solaris) is optional, we have a check here to make sure that the
       
    77 # configure script found it correctly.
       
    78 # http://www.sudo.ws/bugs/show_bug.cgi?id=641
    76 # http://www.sudo.ws/bugs/show_bug.cgi?id=641
    79 # Make sure that sudo is NOT built with its internal sha2 implementation
       
    80 # ... but is linked with libmd instead
       
    81 COMPONENT_TEST_ENV_CMD =
    77 COMPONENT_TEST_ENV_CMD =
    82 COMPONENT_TEST_CMD = \
    78 COMPONENT_TEST_CMD = \
    83 	if [[ -n $$( elfdump -s "$(VISUDO)" | grep SHA256Init | grep -v UNDEF ) ]]; then \
    79 	if [[ -n $$( elfdump -s "$(VISUDO)" | grep SHA256Init | grep -v UNDEF ) ]]; then \
    84 		echo "SHA256Init is not an undefined symbol in $(VISUDO)"; \
    80 		echo "SHA256Init is not an undefined symbol in $(VISUDO)"; \
    85 		exit 1; \
    81 		exit 1; \
    86 	fi; \
    82 	fi; \
    87 	if [[ -z $$( elfdump -d "$(VISUDO)" | grep 'NEEDED .* libmd.so' ) ]]; then \
    83 	$(GMAKE)
    88 		echo "$(VISUDO) is not linked against libmd.so"; \
    84 
    89 		exit 1; \
    85 # Tests may output some compilation lines, so just pull out the relevant test
    90 	fi
    86 # output lines for the test results comparison
    91 COMPONENT_TEST_TARGETS =
    87 COMPONENT_TEST_TRANSFORMS += '-e "/^sudo_conf\|^sudo_parseln\|^check_addr\|^check_base64\|^check_fill\|^iolog_path\|^check_symbols\|^sudoers\|^testsudoers\|^visudo\|^check_ttyname/!d"'
       
    88 COMPONENT_TEST_TRANSFORMS += '-e "s/\(\/dev\/pts\/\)[0-9][0-9]*/\1\#/"'
    92 
    89 
    93 # Enable aslr for this component
    90 # Enable aslr for this component
    94 ASLR_MODE = $(ASLR_ENABLE)
    91 ASLR_MODE = $(ASLR_ENABLE)
    95 
    92 
    96 # common targets
    93 # common targets