From 20d9740a5f933c00a0d45668caaa48bc5b50237f Mon Sep 17 00:00:00 2001 From: Keith James Date: Fri, 22 Jan 2021 12:12:10 +0000 Subject: [PATCH] Add baton 2.1.0 --- red-recipes/baton/2.1.0/build.sh | 13 +++ red-recipes/baton/2.1.0/meta.yaml | 102 +++++++++++++++++++++++ red-recipes/baton/2.1.0/selfassign.patch | 17 ++++ 3 files changed, 132 insertions(+) create mode 100755 red-recipes/baton/2.1.0/build.sh create mode 100644 red-recipes/baton/2.1.0/meta.yaml create mode 100644 red-recipes/baton/2.1.0/selfassign.patch diff --git a/red-recipes/baton/2.1.0/build.sh b/red-recipes/baton/2.1.0/build.sh new file mode 100755 index 00000000..ad5fcf93 --- /dev/null +++ b/red-recipes/baton/2.1.0/build.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +set -ex + +n="$CPU_COUNT" + +LD_LIBRARY_PATH=$PREFIX/lib ./configure --prefix="$PREFIX" \ + CFLAGS="-I$PREFIX/include -I$PREFIX/include/irods" \ + CPPFLAGS="-I$PREFIX/include -I$PREFIX/include/irods" \ + LDFLAGS="-L$PREFIX/lib -L$PREFIX/lib/irods/externals" + +make -j $n +make install prefix="$PREFIX" diff --git a/red-recipes/baton/2.1.0/meta.yaml b/red-recipes/baton/2.1.0/meta.yaml new file mode 100644 index 00000000..0d2cb7f6 --- /dev/null +++ b/red-recipes/baton/2.1.0/meta.yaml @@ -0,0 +1,102 @@ +{% set version = "2.1.0" %} +{% set irods_version = "4.2.7" %} +{% set sha256 = "a3f359f6bb1793a67dac1bbad8bbccf3d7bbbd0f66544cf8e5dbfd26322a1911" %} + +package: + name: baton-pkg + version: "{{ version }}" + +about: + home: https://github.com/wtsi-npg/baton + license: GPL2 + summary: Client programs and API for use with iRODS (Integrated Rule-Oriented Data System). + +build: + number: 1 + +source: + url: https://github.com/wtsi-npg/baton/releases/download/{{ version }}/baton-{{ version }}.tar.gz + fn: baton-{{ version }}.tar.gz + sha256: {{ sha256 }} + + patches: + - selfassign.patch + +requirements: + build: + - {{ compiler("c") }} + - autoconf + - automake + - libtool + - make + - perl + - pkg-config + host: + - irods-dev =={{ irods_version }} + - irods-runtime =={{ irods_version }} + - libjansson-dev + - libssl-dev + +outputs: + - name: baton + version: {{ version }} + requirements: + build: + - {{ compiler("c") }} + - autoconf + - automake + - libtool + - make + - perl + - pkg-config + host: + - irods-dev =={{ irods_version }} + - libjansson-dev + - libssl-dev + run: + - {{ pin_subpackage("libbaton", exact=True) }} + - irods-runtime =={{ irods_version }} + - libjansson + - libssl + files: + - bin/baton-* + test: + commands: + - baton-list --version + + - name: libbaton + version: {{ version }} + requirements: + build: + - {{ compiler("c") }} + - autoconf + - automake + - libtool + - make + - perl + - pkg-config + host: + - irods-dev =={{ irods_version }} + - libjansson-dev + - libssl-dev + run: + - irods-runtime =={{ irods_version }} + - libjansson + - libssl + files: + - lib/libbaton.* + test: + commands: + - test -h ${PREFIX}/lib/libbaton.so + + - name: libbaton-dev + version: {{ version }} + requirements: + run: + - {{ pin_subpackage("libbaton", exact=True) }} + files: + - include/baton + - lib/pkgconfig/baton.pc + test: + commands: + - test -f ${PREFIX}/include/baton/baton.h diff --git a/red-recipes/baton/2.1.0/selfassign.patch b/red-recipes/baton/2.1.0/selfassign.patch new file mode 100644 index 00000000..8c38d6fb --- /dev/null +++ b/red-recipes/baton/2.1.0/selfassign.patch @@ -0,0 +1,17 @@ +diff --git a/src/write.c b/src/write.c +index df58ab6..6ea847c 100644 +--- a/src/write.c ++++ b/src/write.c +@@ -213,11 +213,10 @@ int create_collection(rcComm_t *conn, rodsPath_t *rods_path, int flags, + return error->code; + } + +-int remove_data_object(rcComm_t *conn, rodsPath_t *rods_path, int flags, ++int remove_data_object(rcComm_t *conn, rodsPath_t *rods_path, __attribute__((unused)) int flags, + baton_error_t *error) { + dataObjInp_t obj_rm_in; + int status; +- flags = flags; + + init_baton_error(error); +