From 479784c53ef9f859c5070faad3081ea208ffd5d3 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Fri, 11 Feb 2022 20:59:13 +1100 Subject: [PATCH 1/9] package libxar --- recipes/libxar/LICENSE | 33 +++++++++++++++++++++++++++ recipes/libxar/meta.yaml | 49 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 recipes/libxar/LICENSE create mode 100644 recipes/libxar/meta.yaml diff --git a/recipes/libxar/LICENSE b/recipes/libxar/LICENSE new file mode 100644 index 0000000000000..b8630ba763cad --- /dev/null +++ b/recipes/libxar/LICENSE @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2005-2007 Rob Braun + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of Rob Braun nor the names of his contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ +/* + * 03-Apr-2005 + * DRI: Rob Braun + */ + diff --git a/recipes/libxar/meta.yaml b/recipes/libxar/meta.yaml new file mode 100644 index 0000000000000..d85c2d961787c --- /dev/null +++ b/recipes/libxar/meta.yaml @@ -0,0 +1,49 @@ +{% set version = "1.8" %} + +package: + name: libxar + version: {{ version }} + +source: + # need to check sources for actual version number + # https://github.com/apple-oss-distributions/xar/blob/main/xar/configure.ac#L10-L11 + url: https://github.com/apple-oss-distributions/xar/archive/refs/tags/xar-482.tar.gz + sha256: 03ae7f6201d2586be03681feb06e32a2ddee08fe59c4002759c354c86964f62d + +build: + number: 0 + script: + - cd xar + - ./configure + - make + - make install + skip: true # [win] + +requirements: + build: + - {{ compiler('c') }} + - make +test: + commands: + # shared + - test -f $PREFIX/lib/libxar.so # [linux] + - test -f $PREFIX/lib/libxar.dylib # [osx] + + # absence of static libraries + - test ! -f $PREFIX/lib/libxar.a + + # header + - test -f $PREFIX/include/xar.h # [unix] + +about: + home: https://github.com/apple-oss-distributions/xar + license: BSD-3-Clause + license_file: LICENSE + summary: eXtensible ARchiver + # original project is https://code.google.com/archive/p/xar/, but patched by apple + dev_url: https://github.com/apple-oss-distributions/xar + +extra: + recipe-maintainers: + - h-vetinari + - isuruf From e02aeac98df0d4ab3822e9c8f6148ad9ad57674a Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Fri, 11 Feb 2022 21:34:50 +1100 Subject: [PATCH 2/9] add openssl for linux --- recipes/libxar/meta.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/libxar/meta.yaml b/recipes/libxar/meta.yaml index d85c2d961787c..53c00d7c067a8 100644 --- a/recipes/libxar/meta.yaml +++ b/recipes/libxar/meta.yaml @@ -23,6 +23,10 @@ requirements: build: - {{ compiler('c') }} - make + host: + - openssl # [linux] + run: + - openssl # [linux] test: commands: # shared From 8a63eb1f0948b87dd37ee104e04d560abee597e2 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Fri, 11 Feb 2022 21:36:34 +1100 Subject: [PATCH 3/9] downgrade version due to missing os/availability.h --- recipes/libxar/meta.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes/libxar/meta.yaml b/recipes/libxar/meta.yaml index 53c00d7c067a8..f3e8a85ca348c 100644 --- a/recipes/libxar/meta.yaml +++ b/recipes/libxar/meta.yaml @@ -7,8 +7,9 @@ package: source: # need to check sources for actual version number # https://github.com/apple-oss-distributions/xar/blob/main/xar/configure.ac#L10-L11 - url: https://github.com/apple-oss-distributions/xar/archive/refs/tags/xar-482.tar.gz - sha256: 03ae7f6201d2586be03681feb06e32a2ddee08fe59c4002759c354c86964f62d + # cannot use newest 482 due to missing os/availability.h on older MacOS SDKs + url: https://github.com/apple-oss-distributions/xar/archive/refs/tags/xar-452.tar.gz + sha256: ed6f0df9c296f05f97f8c3eaaaa17c7a189f53ff480de9d2bbea82ca46aabae5 build: number: 0 From 74305b126c96348b293cafb1934ddaf60b837796 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Fri, 11 Feb 2022 21:49:50 +1100 Subject: [PATCH 4/9] add --prefix to configure --- recipes/libxar/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/libxar/meta.yaml b/recipes/libxar/meta.yaml index f3e8a85ca348c..0ab1971d79fc5 100644 --- a/recipes/libxar/meta.yaml +++ b/recipes/libxar/meta.yaml @@ -15,7 +15,7 @@ build: number: 0 script: - cd xar - - ./configure + - ./configure --prefix="$PREFIX" - make - make install skip: true # [win] From a67af57a7476df0f0561a5cb8652e29f03dff21c Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Fri, 11 Feb 2022 21:58:54 +1100 Subject: [PATCH 5/9] use build.sh --- recipes/libxar/build.sh | 8 ++++++++ recipes/libxar/meta.yaml | 5 ----- 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 recipes/libxar/build.sh diff --git a/recipes/libxar/build.sh b/recipes/libxar/build.sh new file mode 100644 index 0000000000000..077123059a984 --- /dev/null +++ b/recipes/libxar/build.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -ex + +cd xar +./configure --prefix="$PREFIX" +make +make install diff --git a/recipes/libxar/meta.yaml b/recipes/libxar/meta.yaml index 0ab1971d79fc5..b2c8894e53a8d 100644 --- a/recipes/libxar/meta.yaml +++ b/recipes/libxar/meta.yaml @@ -13,11 +13,6 @@ source: build: number: 0 - script: - - cd xar - - ./configure --prefix="$PREFIX" - - make - - make install skip: true # [win] requirements: From 28c715a08ec5e8663f4f733c8d2259dc3b900768 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Sat, 19 Feb 2022 10:48:29 +1100 Subject: [PATCH 6/9] try 10.10 --- recipes/libxar/conda_build_config.yaml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 recipes/libxar/conda_build_config.yaml diff --git a/recipes/libxar/conda_build_config.yaml b/recipes/libxar/conda_build_config.yaml new file mode 100644 index 0000000000000..1aa8cc9ea7a5e --- /dev/null +++ b/recipes/libxar/conda_build_config.yaml @@ -0,0 +1,2 @@ +MACOSX_DEPLOYMENT_TARGET: # [osx and x86_64] + - 10.10 # [osx and x86_64] From ea1dc7360637b3b7f34399bf4f4b69340d519bf4 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Sat, 19 Feb 2022 10:56:54 +1100 Subject: [PATCH 7/9] try 10.11 --- recipes/libxar/conda_build_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/libxar/conda_build_config.yaml b/recipes/libxar/conda_build_config.yaml index 1aa8cc9ea7a5e..b490925c37f70 100644 --- a/recipes/libxar/conda_build_config.yaml +++ b/recipes/libxar/conda_build_config.yaml @@ -1,2 +1,2 @@ MACOSX_DEPLOYMENT_TARGET: # [osx and x86_64] - - 10.10 # [osx and x86_64] + - 10.11 # [osx and x86_64] From fd0e2167b9f13a00ccfaac826c8440fa244040c5 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Sat, 19 Feb 2022 11:21:03 +1100 Subject: [PATCH 8/9] Revert "downgrade version due to missing os/availability.h" This reverts commit 8a63eb1f0948b87dd37ee104e04d560abee597e2. --- recipes/libxar/meta.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/recipes/libxar/meta.yaml b/recipes/libxar/meta.yaml index b2c8894e53a8d..e2dfb1bcd311c 100644 --- a/recipes/libxar/meta.yaml +++ b/recipes/libxar/meta.yaml @@ -7,9 +7,8 @@ package: source: # need to check sources for actual version number # https://github.com/apple-oss-distributions/xar/blob/main/xar/configure.ac#L10-L11 - # cannot use newest 482 due to missing os/availability.h on older MacOS SDKs - url: https://github.com/apple-oss-distributions/xar/archive/refs/tags/xar-452.tar.gz - sha256: ed6f0df9c296f05f97f8c3eaaaa17c7a189f53ff480de9d2bbea82ca46aabae5 + url: https://github.com/apple-oss-distributions/xar/archive/refs/tags/xar-482.tar.gz + sha256: 03ae7f6201d2586be03681feb06e32a2ddee08fe59c4002759c354c86964f62d build: number: 0 From 3616efbd4e0140066d6a742b9db94b423e56386b Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Sat, 19 Feb 2022 11:29:21 +1100 Subject: [PATCH 9/9] try 10.12 --- recipes/libxar/conda_build_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/libxar/conda_build_config.yaml b/recipes/libxar/conda_build_config.yaml index b490925c37f70..e0ae4617d7833 100644 --- a/recipes/libxar/conda_build_config.yaml +++ b/recipes/libxar/conda_build_config.yaml @@ -1,2 +1,2 @@ MACOSX_DEPLOYMENT_TARGET: # [osx and x86_64] - - 10.11 # [osx and x86_64] + - 10.12 # [osx and x86_64]