Package Details: mingw-w64-libsodium 1.0.16-1

Git Clone URL: https://aur.archlinux.org/mingw-w64-libsodium.git (read-only, click to copy)
Package Base: mingw-w64-libsodium
Description: P(ortable|ackageable) NaCl-based crypto library (mingw-w64)
Upstream URL: https://github.com/jedisct1/libsodium
Keywords: libsodium mingw sodium
Licenses: custom:ISC
Submitter: kosaka
Maintainer: Zack_Emmert
Last Packager: Zack_Emmert
Votes: 1
Popularity: 0.000000
First Submitted: 2016-06-18 21:08
Last Updated: 2018-05-19 15:26

Latest Comments

Polochon_street commented on 2020-10-30 18:05

I got the same error, even with 1.0.18, even when using git's "stable" branch.

Apparently it's known https://github.com/jedisct1/libsodium/issues/962, supposedly fixed, but I can't really find the fix.

In any case, I've resorted to use their pre-compiled binaries, but that would be nice to have a fix for that package.

shugaoye commented on 2020-10-25 07:15

I am getting the following error. Any idea about it?

make[3]: Entering directory '/home/src/test/temp/mingw-w64-libsodium/src/libsodium-1.0.16/build-i686-w64-mingw32/src/libsodium'
  CCLD     libsodium.la
/usr/lib/gcc/i686-w64-mingw32/10.2.0/../../../../i686-w64-mingw32/bin/ld: crypto_generichash/blake2b/ref/.libs/libsodium_la-blake2b-ref.o:blake2b-ref.c:(.text+0x4d7): undefined reference to `__memcpy_chk'
/usr/lib/gcc/i686-w64-mingw32/10.2.0/../../../../i686-w64-mingw32/bin/ld: crypto_generichash/blake2b/ref/.libs/libsodium_la-blake2b-ref.o:blake2b-ref.c:(.text+0x645): undefined reference to `__memcpy_chk'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:1779: libsodium.la] Error 1

seo.disparate commented on 2019-09-22 08:34

Made a working PKGBUILD for version 1.0.18, also added minisign verification of source tarball. (For some reason, all http links in the diff are showing with angle brackets in them, some weird markdown thing I'm not sure how to fix.)

diff --git a/PKGBUILD b/PKGBUILD
index [`7f4b230`](https://aur.archlinux.org/cgit/aur.git/commit/?h=mingw-w64-libsodium&id=7f4b230)..a3cdf2f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,20 +7,26 @@

 pkgname=mingw-w64-libsodium
 _pkgname=libsodium
-pkgver=1.0.16
+pkgver=1.0.18
 pkgrel=1
 pkgdesc="P(ortable|ackageable) NaCl-based crypto library (mingw-w64)"
 arch=('any')
 url="<https://github.com/jedisct1/libsodium>"
 license=('custom:ISC')
 depends=('mingw-w64-crt')
-makedepends=('mingw-w64-gcc' 'mingw-w64-configure')
-source=("<https://github.com/jedisct1/>$_pkgname/releases/download/${pkgver}/$_pkgname-${pkgver}.tar.gz")
-sha512sums=('SKIP')
+makedepends=('mingw-w64-gcc' 'mingw-w64-configure' 'minisign')
+source=("<https://github.com/jedisct1/>$_pkgname/releases/download/${pkgver}-RELEASE/$_pkgname-${pkgver}.tar.gz"
+"<https://github.com/jedisct1/>$_pkgname/releases/download/${pkgver}-RELEASE/$_pkgname-${pkgver}.tar.gz.minisig")
+sha512sums=('SKIP' 'SKIP')
 options=(!strip !buildflags staticlibs)

+_minisign_pubkey="RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3"
 _architectures="i686-w64-mingw32 x86_64-w64-mingw32"

+prepare() {
+  minisign -V -P $_minisign_pubkey -m $_pkgname-${pkgver}.tar.gz
+}
+
 build() {
   cd "$_pkgname-$pkgver"

Zack_Emmert commented on 2018-05-19 17:46

Updated to version 1.0.16

eimis commented on 2018-05-18 20:29

1.0.16 PKGBUILD: https://bpaste.net/show/622fd21e1a37