mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
mozilla.org/nss (#2751)
* mozilla.org/nss * sed * sed * cc env * gcc * gcc * platforms * neon * openssl * llvm * NSS_DISABLE_ARM32_NEON & NSS_DISABLE_CRYPTO_VSX * ver * llvm * platforms * hmm * tea.xyz/gx/cc * wip * -march=native maybe * some fixes * what's up with this build system? * ... * .... * ..... * build without darwin aarch64 --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
733e59634f
commit
b07e2b57fe
3 changed files with 153 additions and 4 deletions
|
@ -11,10 +11,15 @@ build:
|
||||||
dependencies:
|
dependencies:
|
||||||
tea.xyz/gx/cc: c99
|
tea.xyz/gx/cc: c99
|
||||||
tea.xyz/gx/make: '*'
|
tea.xyz/gx/make: '*'
|
||||||
script: |
|
script:
|
||||||
./nspr/configure $ARGS
|
- ./nspr/configure $ARGS
|
||||||
make --jobs {{ hw.concurrency }}
|
- make --jobs {{ hw.concurrency }}
|
||||||
make --jobs {{ hw.concurrency }} install
|
- make --jobs {{ hw.concurrency }} install
|
||||||
|
- run: |
|
||||||
|
mv nspr/* .
|
||||||
|
rmdir nspr
|
||||||
|
ln -s . nspr
|
||||||
|
working-directory: ${{prefix}}/include
|
||||||
env:
|
env:
|
||||||
ARGS:
|
ARGS:
|
||||||
- --prefix="{{prefix}}"
|
- --prefix="{{prefix}}"
|
||||||
|
|
143
projects/mozilla.org/nss/package.yml
Normal file
143
projects/mozilla.org/nss/package.yml
Normal file
|
@ -0,0 +1,143 @@
|
||||||
|
distributable:
|
||||||
|
url: https://ftp.mozilla.org/pub/security/nss/releases/NSS_{{version.major}}_{{version.minor}}_RTM/src/nss-{{version.marketing}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
versions:
|
||||||
|
#url: https://ftp.mozilla.org/pub/security/nss/releases/
|
||||||
|
#match: /NSS_\d+_\d+_RTM/
|
||||||
|
#strip:
|
||||||
|
# - /^NSS_/
|
||||||
|
# - /_RTM/
|
||||||
|
- 3.92
|
||||||
|
platforms:
|
||||||
|
- linux
|
||||||
|
- darwin/x86-64
|
||||||
|
# - darwin/aarch64
|
||||||
|
# FIXME error: "Compiler option is invalid"
|
||||||
|
dependencies:
|
||||||
|
mozilla.org/nspr: '*'
|
||||||
|
sqlite.org: '*'
|
||||||
|
zlib.net: '*'
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
linux:
|
||||||
|
gnu.org/gcc: '*'
|
||||||
|
gnu.org/make: '*'
|
||||||
|
script:
|
||||||
|
- run: |
|
||||||
|
sed -i.bak 's|-install_name @executable_path|-install_name {{prefix}}/lib|g' coreconf/Darwin.mk
|
||||||
|
rm coreconf/Darwin.mk.bak
|
||||||
|
sed -i.bak 's|@executable_path|{{prefix}}/lib|g' lib/freebl/config.mk
|
||||||
|
rm lib/freebl/config.mk.bak
|
||||||
|
make all $ARGS
|
||||||
|
working-directory: nss
|
||||||
|
- run: |
|
||||||
|
mkdir -p bin lib/pkgconfig include/dbm include/nss
|
||||||
|
cat <<< "$PC_FILE" > lib/pkgconfig/nss.pc
|
||||||
|
working-directory: "{{prefix}}"
|
||||||
|
- cat <<< "$CONFIG_FILE" > ./dist/nss-config
|
||||||
|
- install ./dist/nss-config {{prefix}}/bin/
|
||||||
|
- install ./dist/$(uname)*/bin/* {{prefix}}/bin/
|
||||||
|
- install ./dist/$(uname)*/lib/* {{prefix}}/lib/
|
||||||
|
- install ./dist/public/dbm/* {{prefix}}/include/dbm/
|
||||||
|
- install ./dist/public/nss/* {{prefix}}/include/nss/
|
||||||
|
env:
|
||||||
|
linux:
|
||||||
|
CC: "{{deps.gnu.org/gcc.prefix}}/bin/gcc"
|
||||||
|
ARGS:
|
||||||
|
- BUILD_OPT=1
|
||||||
|
- NSS_ALLOW_SSLKEYLOGFILE=1
|
||||||
|
- NSS_DISABLE_GTESTS=1
|
||||||
|
- NSS_USE_SYSTEM_SQLITE=1
|
||||||
|
- NSPR_INCLUDE_DIR={{deps.mozilla.org/nspr.prefix}}/include/nspr
|
||||||
|
- NSPR_LIB_DIR={{deps.mozilla.org/nspr.prefix}}/lib
|
||||||
|
- USE_64=1
|
||||||
|
CONFIG_FILE: |
|
||||||
|
#!/bin/sh
|
||||||
|
for opt; do :; done
|
||||||
|
case "\$opt" in
|
||||||
|
--version) opt="--modversion";;
|
||||||
|
--cflags|--libs) ;;
|
||||||
|
*) exit 1;;
|
||||||
|
esac
|
||||||
|
pkg-config "\$opt" nss
|
||||||
|
PC_FILE: |
|
||||||
|
prefix=\${pcfiledir}/../..
|
||||||
|
exec_prefix=\${prefix}
|
||||||
|
libdir=\${exec_prefix}/lib
|
||||||
|
includedir=\${prefix}/include/nss
|
||||||
|
|
||||||
|
Name: NSS
|
||||||
|
Description: Mozilla Network Security Services
|
||||||
|
Version: {{version}}
|
||||||
|
Requires: nspr >= 4.12
|
||||||
|
Libs: -L\${libdir} -lnss3 -lnssutil3 -lsmime3 -lssl3
|
||||||
|
Cflags: -I\${includedir}
|
||||||
|
provides:
|
||||||
|
- bin/addbuiltin
|
||||||
|
- bin/certutil
|
||||||
|
- bin/crmftest
|
||||||
|
- bin/ecperf
|
||||||
|
- bin/listsuites
|
||||||
|
- bin/multinit
|
||||||
|
- bin/ocspresp
|
||||||
|
- bin/p7verify
|
||||||
|
- bin/pk12util
|
||||||
|
- bin/remtest
|
||||||
|
- bin/secmodtest
|
||||||
|
- bin/ssltap
|
||||||
|
- bin/vfychain
|
||||||
|
- bin/atob
|
||||||
|
- bin/chktest
|
||||||
|
- bin/dbtest
|
||||||
|
- bin/encodeinttest
|
||||||
|
- bin/nonspr10
|
||||||
|
- bin/oidcalc
|
||||||
|
- bin/pk11ectest
|
||||||
|
- bin/pk1sign
|
||||||
|
- bin/rsaperf
|
||||||
|
- bin/selfserv
|
||||||
|
- bin/strsclnt
|
||||||
|
- bin/vfyserv
|
||||||
|
- bin/baddbdir
|
||||||
|
- bin/cmsutil
|
||||||
|
- bin/derdump
|
||||||
|
- bin/fbectest
|
||||||
|
- bin/makepqg
|
||||||
|
- bin/nss-config
|
||||||
|
- bin/p7content
|
||||||
|
- bin/pk11gcmtest
|
||||||
|
- bin/pkix-errcodes
|
||||||
|
- bin/rsapoptst
|
||||||
|
- bin/shlibsign
|
||||||
|
- bin/symkeyutil
|
||||||
|
- bin/bltest
|
||||||
|
- bin/conflict
|
||||||
|
- bin/dertimetest
|
||||||
|
- bin/fipstest
|
||||||
|
- bin/mangle
|
||||||
|
- bin/nss-policy-check
|
||||||
|
- bin/p7env
|
||||||
|
- bin/pk11importtest
|
||||||
|
- bin/pp
|
||||||
|
- bin/sdbthreadtst
|
||||||
|
- bin/signtool
|
||||||
|
- bin/tstclnt
|
||||||
|
- bin/btoa
|
||||||
|
- bin/crlutil
|
||||||
|
- bin/digest
|
||||||
|
- bin/httpserv
|
||||||
|
- bin/modutil
|
||||||
|
- bin/ocspclnt
|
||||||
|
- bin/p7sign
|
||||||
|
- bin/pk11mode
|
||||||
|
- bin/pwdecrypt
|
||||||
|
- bin/sdrtest
|
||||||
|
- bin/signver
|
||||||
|
- bin/validation
|
||||||
|
test:
|
||||||
|
dependencies:
|
||||||
|
freedesktop.org/pkg-config: '*'
|
||||||
|
script:
|
||||||
|
- pkg-config --modversion nss | grep {{version}}
|
||||||
|
- certutil -N -d ./ -f passwd
|
||||||
|
- certutil -L -d ./ | grep "Certificate Nickname"
|
1
projects/mozilla.org/nss/passwd
Normal file
1
projects/mozilla.org/nss/passwd
Normal file
|
@ -0,0 +1 @@
|
||||||
|
It's a secret to everyone.
|
Loading…
Reference in a new issue