mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
premake: add patch for CA root path (#10300)
This commit is contained in:
32
dev-util/premake/patches/premake5-5.0.0~beta2.patchset
Normal file
32
dev-util/premake/patches/premake5-5.0.0~beta2.patchset
Normal file
@@ -0,0 +1,32 @@
|
||||
From 699262deddebf58905a77f9153b3bc9c372ebd3b Mon Sep 17 00:00:00 2001
|
||||
From: Chris Roberts <cpr420@gmail.com>
|
||||
Date: Thu, 4 Apr 2024 23:03:31 -0600
|
||||
Subject: add Haiku CA certificate path
|
||||
|
||||
|
||||
diff --git a/contrib/curl/premake5.lua b/contrib/curl/premake5.lua
|
||||
index 474f5cf..c06da95 100644
|
||||
--- a/contrib/curl/premake5.lua
|
||||
+++ b/contrib/curl/premake5.lua
|
||||
@@ -27,7 +27,7 @@ project "curl-lib"
|
||||
filter { "system:not windows", "system:not macosx" }
|
||||
defines { "USE_MBEDTLS" }
|
||||
|
||||
- filter { "system:linux or bsd or solaris" }
|
||||
+ filter { "system:linux or bsd or solaris or haiku" }
|
||||
defines { "CURL_HIDDEN_SYMBOLS" }
|
||||
|
||||
-- find the location of the ca bundle
|
||||
@@ -39,7 +39,8 @@ project "curl-lib"
|
||||
"/usr/local/share/certs/ca-root.crt",
|
||||
"/usr/local/share/certs/ca-root-nss.crt",
|
||||
"/etc/certs/ca-certificates.crt",
|
||||
- "/etc/ssl/cert.pem" } do
|
||||
+ "/etc/ssl/cert.pem",
|
||||
+ "/boot/system/data/ssl/CARootCertificates.pem" } do
|
||||
if os.isfile(f) then
|
||||
ca = f
|
||||
break
|
||||
--
|
||||
2.43.2
|
||||
|
||||
@@ -5,11 +5,14 @@ project can support both IDE-addicted Windows coders and Linux command-line junk
|
||||
HOMEPAGE="http://industriousone.com/premake"
|
||||
COPYRIGHT="2003-2022 Jason Perkins and individual contributors"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/premake/premake-core/releases/download/v${portVersion%%~beta*}-${portVersion##*.*.*~}/premake-${portVersion%%~beta*}-${portVersion##*.*.*~}-src.zip"
|
||||
CHECKSUM_SHA256="4c1100f5170ae1c3bd1b4fd9458b3b02ae841aefbfc41514887b80996436dee2"
|
||||
SOURCE_DIR="premake-${portVersion/\~/-}-src"
|
||||
PATCHES="premake-5.0.0-remove-hardcoded-libpath.patch"
|
||||
PATCHES="
|
||||
premake-5.0.0-remove-hardcoded-libpath.patch
|
||||
premake5-$portVersion.patchset
|
||||
"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
@@ -32,6 +35,7 @@ REPLACES="
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
ca_root_certificates
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:getconf
|
||||
|
||||
Reference in New Issue
Block a user