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

[patchelf] Update to 0.10 #2793

Merged
merged 1 commit into from
Jul 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions patchelf/plan.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
pkg_name=patchelf
pkg_origin=core
pkg_version=0.9
pkg_version=0.10
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_description="\
A small utility to modify the dynamic linker and RPATH of ELF executables.\
"
pkg_upstream_url="https://nixos.org/patchelf.html"
pkg_license=('gplv3')
pkg_license=('GPL-3.0-or-later')
pkg_source="http://nixos.org/releases/$pkg_name/${pkg_name}-$pkg_version/${pkg_name}-${pkg_version}.tar.gz"
pkg_shasum="f2aa40a6148cb3b0ca807a1bf836b081793e55ec9e5540a5356d800132be7e0a"
pkg_shasum="b2deabce05c34ce98558c0efb965f209de592197b2c88e930298d740ead09019"
pkg_build_deps=(
core/coreutils
core/diffutils
Expand Down
6 changes: 6 additions & 0 deletions patchelf/tests/test.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
TEST_PKG_VERSION="$(echo "${TEST_PKG_IDENT}" | cut -d/ -f3)"

@test "Version matches" {
result="$(hab pkg exec ${TEST_PKG_IDENT} patchelf --version | head -1 | awk '{print $2}')"
[ "$result" = "${TEST_PKG_VERSION}" ]
}
18 changes: 18 additions & 0 deletions patchelf/tests/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh
#/ Usage: test.sh <pkg_ident>
#/
#/ Example: test.sh core/patchelf/0.9/20181108151533
#/

set -euo pipefail

if [[ -z "${1:-}" ]]; then
grep '^#/' < "${0}" | cut -c4-
exit 1
fi

TEST_PKG_IDENT="${1}"
export TEST_PKG_IDENT
hab pkg install core/bats --binlink
hab pkg install "${TEST_PKG_IDENT}"
bats "$(dirname "${0}")/test.bats"