On Sat, Jul 24, 2021 at 03:28:00PM +0200, Jeremie Courreges-Anglas wrote:
> 
> The following patch lets security/botan build on riscv64.
> I wrote a minimal description file, since I couldn't find one in the
> latest 1.11 (.34) release available upstream.  Configure extract:

Botan 1 is end of life.  But I think we still need it for some
ports.  Do whatever is helpful.

OK bluhm@

> --8<--
> [...]
> >>> Running configure in security/botan at 1626992720.48
> ===> security/botan
> ===>  Generating configure for botan-1.10.17p2
> ===>  Configuring for botan-1.10.17p2
> ln -sf /usr/local/bin/python2.7 /usr/ports/pobj/botan-1.10.17/bin/python
> cp /usr/ports/security/botan/files/riscv64.txt 
> /usr/ports/pobj/botan-1.10.17/Botan-1.10.17/src/build-data/arch
>    INFO: Guessing to use compiler gcc (use --cc to set)
>    INFO: Guessing target OS is openbsd (use --os to set)
>    INFO: Canonicalizized --cpu=riscv64 to riscv64/riscv64
>    INFO: Target is gcc-openbsd-riscv64-riscv64
> WARNING: Could not execute g++ for version check
>    INFO: Skipping, by request only - cms cvc
>    INFO: Skipping, incompatible CPU - aes_ni aes_ssse3 asm_x86_32 asm_x86_64 
> idea_sse2 md4_x86_32 md5_x86_32 mp_asm64 mp_x86_32 mp_x86_64 rdrand 
> serpent_x86_32 sha1_sse2 sha1_x86_32 sha1_x86_64 simd_altivec simd_sse2
>    INFO: Skipping, incompatible OS - beos_stats cryptoapi_rng unix_procs 
> win32_crit_section win32_stats
>    INFO: Skipping, incompatible compiler - mp_msvc64 mp_x86_32_msvc
>    INFO: Skipping, loaded only if needed by dependency - aes_isa_eng 
> asm_engine
>    INFO: Using MP module mp_generic
>    INFO: Using SIMD module simd_scalar
>    INFO: ssl: If you are using TLS in your application definitely consider 
> using the version in 1.11 instead
>    INFO: Assuming CPU is little endian
>    INFO: Using symlink to link files into build directory
>    INFO: Botan 1.10.17 build setup is complete
> >>> Running build in security/botan at 1626992728.48
> ===> security/botan
> ===>  Building for botan-1.10.17p2
> [...]
> -->8--
> 
> No REVISION bump needed since botan never built on riscv64 and the
> change shouldn't affect other archs.  ok?
> 
> (I can run the tests if you're interested.)
> 
> 
> Index: Makefile
> ===================================================================
> RCS file: /d/cvs/ports/security/botan/Makefile,v
> retrieving revision 1.32
> diff -u -p -r1.32 Makefile
> --- Makefile  23 Feb 2021 19:39:37 -0000      1.32
> +++ Makefile  22 Jul 2021 22:10:10 -0000
> @@ -64,6 +64,7 @@ PKG_ARGS +=         -Damd64=0
>  
>  pre-configure:
>       ln -sf ${MODPY_BIN} ${WRKDIR}/bin/python
> +     cp ${FILESDIR}/riscv64.txt ${WRKSRC}/src/build-data/arch
>  
>  do-test:
>       cd ${WRKBUILD} && \
> Index: files/riscv64.txt
> ===================================================================
> RCS file: files/riscv64.txt
> diff -N files/riscv64.txt
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ files/riscv64.txt 23 Jul 2021 08:42:35 -0000
> @@ -0,0 +1,3 @@
> +endian little
> +
> +family riscv
> 
> 
> -- 
> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to