Skip to content

Commit

Permalink
perl-alien-build & perl-alien-libxml2 & perl-xml-libxml: add aarch64 …
Browse files Browse the repository at this point in the history
…build (#53028)

* perl-alien-build & perl-alien-libxml2 & perl-xml-libxml: add aarch64/arm64 builds

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Remove the recipes from the blacklist

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Add `zlib` as a `host` dependency for perl-alien-libxml2

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Update to latest versions

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* go back to v0.17. The new one has more missing dependencies

* Export UTF-8 LC_ALL for the tests

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Bump the build number

* Do not run `make test`. Several tests do not pass for various reasons

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Do not build osx-arm64 for now. There are more missing deps

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

---------

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g authored Jan 3, 2025
1 parent aa45f03 commit 84837c3
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 17 deletions.
3 changes: 0 additions & 3 deletions build-fail-blacklist
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ recipes/wtforms-components
recipes/xmlbuilder

# the following packages have open PRs labeled with "Move to conda-forge"
recipes/perl-alien-build
recipes/perl-alien-libxml2
recipes/perl-date-manip
recipes/perl-datetime-timezone
recipes/perl-devel-checklib
Expand All @@ -118,7 +116,6 @@ recipes/perl-sereal-decoder
recipes/perl-sereal-encoder
recipes/perl-term-progressbar
recipes/perl-uri
recipes/perl-xml-libxml
recipes/scoop
recipes/wheezy.template

Expand Down
13 changes: 8 additions & 5 deletions recipes/perl-alien-build/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
{% set name = "perl-alien-build" %}
{% set version = "2.53" %}
{% set sha256 = "fcc4391eb099b5e8c87b526fa6ebaf0b5eccee66f63653f786026120a42a0f5c" %}
{% set version = "2.84" %}
{% set sha256 = "8e891fd3acbac39dd8fdc01376b9abff931e625be41e0910ca30ad59363b4477" %}

package:
name: {{ name }}
version: {{ version }}

source:
url: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Build-2.53.tar.gz
url: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Build-{{ version }}.tar.gz
sha256: {{ sha256 }}

build:
number: 0
run_exports:
weak:
- {{ name }} ={{ version }}
- {{ pin_subpackage(name, max_pin='x') }}

requirements:
build:
Expand Down Expand Up @@ -110,3 +109,7 @@ about:
home: https://metacpan.org/pod/Alien::Build
license: perl_5
summary: 'Build external dependencies for use in CPAN'

extra:
additional-platforms:
- linux-aarch64
12 changes: 8 additions & 4 deletions recipes/perl-alien-libxml2/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ package:
version: {{ version }}

source:
url: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Libxml2-0.17.tar.gz
url: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Libxml2-{{ version }}.tar.gz
sha256: {{ sha256 }}

build:
number: 0
number: 1
run_exports:
weak:
- {{ name }} ={{ version }}
- {{ pin_subpackage(name, max_pin='x.x') }}

requirements:
build:
Expand All @@ -24,6 +23,7 @@ requirements:
host:
- perl
- perl-alien-build
- zlib
run:
- perl

Expand All @@ -35,3 +35,7 @@ about:
home: https://metacpan.org/pod/Alien::Libxml2
license: perl_5
summary: 'Install the C libxml2 library on your system'

extra:
additional-platforms:
- linux-aarch64
3 changes: 2 additions & 1 deletion recipes/perl-xml-libxml/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ elif [ -f Makefile.PL ]; then
# Make sure this goes in site
perl Makefile.PL INSTALLDIRS=site LDFLAGS="$LDFLAGS" LIBS="-L${PREFIX}/lib -lxml2 -lz -llzma -liconv -licui18n -licuuc -licudata -lm -ldl" INC="-I$PREFIX/include/libxml2 -I$PREFIX/include"
make
make test
# Several tests are broken. See https://stackoverflow.com/a/78965715/497381 for explanation
# make test
make install
else
echo 'Unable to find Build.PL or Makefile.PL. You need to modify build.sh.'
Expand Down
17 changes: 13 additions & 4 deletions recipes/perl-xml-libxml/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{% set name = "perl-xml-libxml" %}
{% set version = "2.0210" %}

package:
name: perl-xml-libxml
version: "2.0207"
name: {{ name }}
version: {{ version }}

source:
url: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0207.tar.gz
sha256: 903436c9859875bef5593243aae85ced329ad0fb4b57bbf45975e32547c50c15
url: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-{{ version }}.tar.gz
sha256: a29bf3f00ab9c9ee04218154e0afc8f799bf23674eb99c1a9ed4de1f4059a48d

build:
number: 0
run_exports:
- {{ pin_subpackage(name, max_pin='x') }}

requirements:
build:
Expand Down Expand Up @@ -53,3 +58,7 @@ about:
home: https://bitbucket.org/shlomif/perl-xml-libxml
license: Perl
summary: 'Interface to Gnome libxml2 xml parsing and DOM library'

extra:
additional-platforms:
- linux-aarch64

0 comments on commit 84837c3

Please sign in to comment.