Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nss: conan v2 support #19262

Draft
wants to merge 37 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
3f7cbc6
conan v2 support
SpaceIm Feb 20, 2023
49da227
nss: minor fixes for v2 support
SpaceIm Feb 20, 2023
91efa25
nss: further minor fixes
valgur Aug 17, 2023
abdf9c9
nss: bump deps
valgur Nov 1, 2023
df0db13
nss: tidy
valgur Nov 2, 2023
f9e98c9
nss: disable MSVC
valgur Nov 2, 2023
5f3ef9d
nss: bump sqlite3
valgur Nov 26, 2023
01776f9
nss: drop cross_building(self) check from sqlite3
valgur Nov 27, 2023
9528a93
nss: set package_type to static-library, do not set shared for deps
valgur Nov 27, 2023
3675da7
nss: bump sqlite3
valgur Mar 23, 2024
d654257
nss: drop old versions
valgur Mar 23, 2024
7df3418
nss: add v3.99
valgur Mar 25, 2024
9b5c543
nss: set shared=True for deps where necessary
valgur Mar 26, 2024
cd4cbf5
nss: allow MSVC builds
valgur Mar 26, 2024
b0ff870
nss: use a generator for make args
valgur Mar 26, 2024
770600e
nss: switch to gyp-based build, rework components
valgur Mar 26, 2024
cd96096
nss: inject dependencies
valgur Mar 26, 2024
26f1c9c
nss: downgrade sqlite3 for cpython
valgur Mar 26, 2024
424b704
nss: adjust LD_LIBRARY_PATH for build
valgur Mar 27, 2024
b0506a1
nss: do not hide shlibsign errors
valgur Mar 27, 2024
55ce5e9
nss: keep only the latest version, bump deps
valgur May 27, 2024
64c86d0
nss: pin gyp-next
valgur May 27, 2024
10113a1
Merge remote-tracking branch 'refs/remotes/upstream/master' into nss-…
valgur Jul 15, 2024
16a0981
nss: downgrade sqlite3
valgur Jul 15, 2024
c99dfbc
Merge remote-tracking branch 'upstream/master' into nss-conan-v2
valgur Aug 18, 2024
32bd3c5
nss: bump to v3.103
valgur Aug 18, 2024
b7c20e4
nss: bump tool deps
valgur Aug 18, 2024
db7e679
nss: tweak pip install
valgur Aug 18, 2024
a074668
nss: make sure shlibsign's .so dependencies are found via VirtualRunEnv
valgur Aug 18, 2024
34f65d7
Merge remote-tracking branch 'upstream/master' into nss-conan-v2
valgur Sep 9, 2024
0ac5895
nss: bump to v3.104
valgur Sep 9, 2024
36b7733
nss: fix Python paths on MSYS2
valgur Sep 9, 2024
9320139
nss: fix MSVC build
valgur Sep 9, 2024
527aca5
nss: skip vswhere for now, bump cpython
valgur Oct 10, 2024
9a906e4
nss: add a fix for shlibsign.py
valgur Oct 10, 2024
b102d4e
nss: use vswhere from system
valgur Oct 10, 2024
779c901
nss: revert cpython changes
valgur Oct 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 3 additions & 39 deletions recipes/nss/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,4 @@
sources:
"3.93":
url: "https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_93_RTM/src/nss-3.93.tar.gz"
sha256: "15f54bb72048eb105f8c0e936a04b899e74c3db9a19bbc1e00acee2af9476a8a"
"3.92":
url: "https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_92_RTM/src/nss-3.92.tar.gz"
sha256: "3db192d6e882039af02ae7eaf3217ed114bb7ad83414c646772ab8021e24a254"
"3.91":
url: "https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_91_RTM/src/nss-3.91.tar.gz"
sha256: "84bd46376df17118c55f6d73d30fd93a0af21296c66e7690471547e5898fc4b3"
"3.89":
url: "https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_89_RTM/src/nss-3.89.tar.gz"
sha256: "55c37a3f4da010d0574fb8b39264cb1e7b4ce9e6c2954c1c7ecf9f41ee00bed5"
"3.88.1":
url: "https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_88_1_RTM/src/nss-3.88.1.tar.gz"
sha256: "27d243edf87d1cf1bb9c861f03d387e0e9230ce5017f4308c941f558b54b3496"
"3.87":
url: "https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_87_RTM/src/nss-3.87.tar.gz"
sha256: "68a1894496d3d158babc75f8a5dda3f55b7c1560573936e3b101a10fa4ac152d"
"3.86":
url: "https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_86_RTM/src/nss-3.86.tar.gz"
sha256: "3f385fc686476bbba811035fa6821b542475d55747b18c20c221d4d66573b975"
"3.85":
url: "https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_85_RTM/src/nss-3.85.tar.gz"
sha256: "afd9d64510b1154debbd6cab3571e9ff64a3373898e03483e4c85cdada13d297"
"3.84":
url: "https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_84_RTM/src/nss-3.84.tar.gz"
sha256: "9a387ffe350ff14f001d943f96cc0c064891551d71e1a97a5ddbffe7f1207a25"
"3.83":
url: "https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_83_RTM/src/nss-3.83.tar.gz"
sha256: "ab23ea67f964090b8b73c80a674082571c36e5f4eba92057ac648c9c1def0128"
"3.77":
url: "https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_77_RTM/src/nss-3.77.tar.gz"
sha256: "825edf5a2fd35b788a23ff80face591f82919ae3ad2b8f77d424a450d618dedd"
"3.76.1":
url: "https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_76_1_RTM/src/nss-3.76.1.tar.gz"
sha256: "e13104c374e2e1d7890d8f6bc18d0f18eb886ed4dbad4144d1c482f2983d232a"
"3.72":
url: "https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_72_RTM/src/nss-3.72.tar.gz"
sha256: "6ea60a9ff113e493ea2ab25f41ea75a9fbd10af7903f26f703dac8680732d02e"
"3.104":
url: "https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_104_RTM/src/nss-3.104.tar.gz"
sha256: "e2763223622d1e76b98a43030873856f248af0a41b03b2fa2ca06a91bc50ac8e"
338 changes: 172 additions & 166 deletions recipes/nss/all/conanfile.py

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions recipes/nss/all/test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
cmake_minimum_required(VERSION 3.1)
cmake_minimum_required(VERSION 3.15)
project(test_package C)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup(TARGETS)
find_package(nss REQUIRED CONFIG)

add_executable(${PROJECT_NAME} test_package.c)
target_link_libraries(${PROJECT_NAME} CONAN_PKG::nss)

target_link_libraries(${PROJECT_NAME} PRIVATE nss::nss)
20 changes: 14 additions & 6 deletions recipes/nss/all/test_package/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
from conans import ConanFile, CMake, tools
from conan import ConanFile
from conan.tools.build import can_run
from conan.tools.cmake import CMake, cmake_layout
import os


class TestPackageConan(ConanFile):
settings = "os", "arch", "compiler", "build_type"
generators = "cmake", "cmake_find_package"
generators = "CMakeToolchain", "CMakeDeps", "VirtualRunEnv"
test_type = "explicit"

def layout(self):
cmake_layout(self)

def requirements(self):
self.requires(self.tested_reference_str)

def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()


def test(self):
if not tools.cross_building(self):
bin_path = os.path.join("bin", "test_package")
self.run(bin_path, run_environment=True)
if can_run(self):
bin_path = os.path.join(self.cpp.build.bindir, "test_package")
self.run(bin_path, env="conanrun")
9 changes: 5 additions & 4 deletions recipes/nss/all/test_package/test_package.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#include "nss.h"
#include "nssutil.h"
#include "smime.h"
#include "ssl.h"
#include <nss.h>
#include <nssutil.h>
#include <smime.h>
#include <ssl.h>

#include <stdio.h>

int main() {
Expand Down
8 changes: 8 additions & 0 deletions recipes/nss/all/test_v1_package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.15)
project(test_package)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup(TARGETS)

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../test_package
${CMAKE_CURRENT_BINARY_DIR}/test_package)
17 changes: 17 additions & 0 deletions recipes/nss/all/test_v1_package/conanfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from conans import ConanFile, CMake, tools
import os


class TestPackageConan(ConanFile):
settings = "os", "arch", "compiler", "build_type"
generators = "cmake", "cmake_find_package_multi"

def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()

def test(self):
if not tools.cross_building(self):
bin_path = os.path.join("bin", "test_package")
self.run(bin_path, run_environment=True)
26 changes: 1 addition & 25 deletions recipes/nss/config.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
versions:
"3.93":
folder: all
"3.92":
folder: all
"3.91":
folder: all
"3.89":
folder: all
"3.88.1":
folder: all
"3.87":
folder: all
"3.86":
folder: all
"3.85":
folder: all
"3.84":
folder: all
"3.83":
folder: all
"3.77":
folder: all
"3.76.1":
folder: all
"3.72":
"3.104":
folder: all
Loading