Bug 286712 - security/libgcrypt - simd-common-riscv.h file not found
Summary: security/libgcrypt - simd-common-riscv.h file not found
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: riscv Any
: --- Affects Only Me
Assignee: Cy Schubert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-10 13:15 UTC by rdunkle
Modified: 2025-06-01 10:59 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (cy)


Attachments
Add missing file for riscv build (2.53 KB, patch)
2025-06-01 10:59 UTC, Laurent Chardon
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rdunkle 2025-05-10 13:15:09 UTC
portmaster libgcrypt
cannot build- 
C -o .libs/chacha20-riscv-v.o
./chacha20-riscv-v.c:26:10: 
fatal error: 'simd-common-riscv.h' file not found

--- blake2.lo ---
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I../mpi -I../mpi -I/usr/local/include -O2 -pipe -march=rv64imafdc -mabi=lp64d -pthread -fstack-protector-strong -fno-strict-aliasing -fvisibility=hidden -fno-delete-null-pointer-checks -Wall -MT blake2.lo -MD -MP -MF .deps/blake2.Tpo -c blake2.c -o blake2.o >/dev/null 2>&1
--- chacha20-riscv-v.lo ---
   26 | #include "simd-common-riscv.h"
Comment 1 rdunkle 2025-05-15 16:31:49 UTC
It appears that the distfile is missing this:
-->  cipher/simd-common-riscv.h
I downloaded from:
https://github.com/gpg/libgcrypt/blob/master/cipher/simd-common-riscv.h
build is now successful.
Comment 3 Laurent Chardon 2025-06-01 10:59:15 UTC
Created attachment 260861 [details]
Add missing file for riscv build


A quick patch while waiting for the official one, hoping it will save time to someone. 

This patch is not to be committed!