Skip to content

Commit

Permalink
Update Spring to support ARM (#51773)
Browse files Browse the repository at this point in the history
* patch build.sh

* bump build number

* Update recipes/spring/build.sh

Drop newlines

* apply review comments

* add run_exports

* add linux-aarch64 build

---------

Co-authored-by: Matthias De Smet <11850640+matthdsm@users.noreply.github.com>
Co-authored-by: Joshua Zhuang <71105179+mencian@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 30, 2024
1 parent 1a8efcf commit 3e97b74
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
23 changes: 23 additions & 0 deletions recipes/spring/Makefile.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/src/libbsc/bsc.h b/src/libbsc/bsc.h
index 25230dc..caca189 100644
--- a/src/libbsc/bsc.h
+++ b/src/libbsc/bsc.h
@@ -48,6 +48,7 @@ preprocessor macro LIBBSC_SORT_TRANSFORM_SUPPORT at compile time.
#ifndef SPRING_LIBBSC_BSC_H_
#define SPRING_LIBBSC_BSC_H_

+#include <cstdint>
#include "params.h"

namespace spring {
diff --git a/src/util.h b/src/util.h
index 30bad68..a72a0b6 100644
--- a/src/util.h
+++ b/src/util.h
@@ -17,6 +17,7 @@ limitations under the License.

#include <fstream>
#include <string>
+#include <cstdint>

namespace spring {
6 changes: 5 additions & 1 deletion recipes/spring/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ export CXXPATH=${PREFIX}/include
export CFLAGS="$CFLAGS -I$PREFIX/include"
export CXXFLAGS="$CFLAGS -I$PREFIX/include"
export LDFLAGS="$LDFLAGS -L$PREFIX/lib"
cmake -Dspring_optimize_for_portability=ON ..
if [ $(arch) == "aarch64" ]; then
cmake ..
else
cmake -Dspring_optimize_for_portability=ON ..
fi
make
cp spring $PREFIX/bin
10 changes: 8 additions & 2 deletions recipes/spring/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ package:
version: {{ version }}

build:
number: 2
number: 3
skip: True # [osx]
run_exports:
- {{ pin_subpackage('spring', max_pin="x") }}

source:
url: https://github.com/shubhamchandak94/Spring/archive/v{{ version }}.tar.gz
Expand All @@ -26,5 +28,9 @@ about:
home: https://github.com/shubhamchandak94/Spring
license: Free for non-commercial use
license_file: license.pdf
summary: Spring is a compression tool for Fastq files
summary: "Spring is a compression tool for Fastq files."
dev_url: https://github.com/shubhamchandak94/Spring

extra:
additional-platforms:
- linux-aarch64

0 comments on commit 3e97b74

Please sign in to comment.