Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-1210

OpenSSL: funtoo overlay request

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None

      Currently Funtoo uses Gentoo's OpenSSL ebuilds. One thing about those ebuilds does not sit right with me. If we take the most recent version (1.0.1g), and look at lines 111-120:

      	# See if our toolchain supports __uint128_t.  If so, it's 64bit
      	# friendly and can use the nicely optimized code paths. #460790
      	local ec_nistp_64_gcc_128
      	# Disable it for now though #469976
      	#if ! use bindist ; then
      	#	echo "__uint128_t i;" > "${T}"/128.c
      	#	if ${CC} ${CFLAGS} -c "${T}"/128.c -o /dev/null >&/dev/null ; then
      	#		ec_nistp_64_gcc_128="enable-ec_nistp_64_gcc_128"
      	#	fi
      	#fi
      
      

      This choice has been made due to Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=469976

      I think the rationale for this is astounding and want to suggest Funtoo to do it differently. Suggested alternative:

      	# See if our toolchain supports __uint128_t.  If so, it's 64bit
      	# friendly and can use the nicely optimized code paths. #460790
      	local ec_nistp_64_gcc_128
      	if ! use bindist ; then
      		echo "__uint128_t i;" > "${T}"/128.c
      		if ${CC} ${CFLAGS} -c "${T}"/128.c -o /dev/null >&/dev/null ; then
      			ec_nistp_64_gcc_128="enable-ec_nistp_64_gcc_128"
      		fi
      	fi
      
      

            dantrell dantrell [X] (Inactive)
            ancipital Mark
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: