Package Details: origin-client 4.6.r20201212.02c1100-1

Git Clone URL: https://aur.archlinux.org/origin-client.git (read-only, click to copy)
Package Base: origin-client
Description: Openshift client
Upstream URL: https://github.com/openshift/oc
Licenses: Apache
Submitter: jhenson
Maintainer: VannTen (thePanz)
Last Packager: thePanz
Votes: 3
Popularity: 0.000069
First Submitted: 2019-01-12 18:28
Last Updated: 2020-12-30 10:35

Latest Comments

thePanz commented on 2020-12-30 10:28

@rmf: working on a stable solution at the moment, as the openshift repository is not using tags for the latest releases.

The current solution is fetching (via the Github APIs) the commit's date to properly build the package version. Another option would be to create a -git package (thus requiring GIT in the build process). If you have hints or suggestions, please share them :)

Please note that v4.7 and v4.8 are "for future releases" (https://github.com/openshift/oc/issues/180), that's why this package is addressing the 4.6 version

rmf commented on 2020-12-27 15:41

@thePanz can you update the PKGBUILD? shahum is incorrect at the moment.

christoph.gysin commented on 2020-12-13 21:02

==> Validating source files with sha256sums...
    release-4.6.zip ... FAILED

Svenstaro commented on 2020-12-09 11:22

Feel free to take the package.

VannTen commented on 2020-12-09 11:03

git should be in builddep, otherwise the package fail to build in a clean chroot

thePanz commented on 2020-12-04 17:41

Please notice that this is quite outdated, as the OC client has been moved to a different repo: https://github.com/openshift/oc

I have a working PKGBUILD configuration for the impatient ones:

pkgname=openshift-origin-client
pkgdesc="Openshift Origin client (OC)"
pkgver=4.8
pkgrel=1
arch=('x86_64')
url="https://github.com/openshift/oc"
license=('Apache')
makedepends=('go-pie')
source=("https://github.com/openshift/oc/archive/release-${pkgver}.zip")
sha256sums=('d72f1ebabd36b930bef4fe66443f4dd8dc2465e9cf517fbba3a40abb591f2614')

build() {
  cd "oc-release-${pkgver}"
  unset GOPATH
  export SOURCE_GIT_TAG="${pkgversion}-release"
  make oc
}

package() {
  cd "oc-release-${pkgver}"
  install -Dm755 oc -t "$pkgdir/usr/bin"
  # install -Dm644 docs/man/man1/* -t "$pkgdir/usr/share/man/man1"

  "$pkgdir/usr/bin/oc" completion bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/oc"
  "$pkgdir/usr/bin/oc" completion zsh | sed 's/kubectl/oc/g' | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_oc"
}

malbeth commented on 2020-09-23 12:25

Package install fails because GPG key 0E2CFB1B72F087ACF089B41E3D16906B4F1C5CB3 (Clayton Coleman ccoleman@redhat.com) cannot be downloaded...

I managed to find that key on https://pgp.key-server.io/pks/lookup?op=get&fingerprint=on&search=0x3D16906B4F1C5CB3 and install it manually with sudo pacman-key --add Downloads/gpgkey.asc

jhenson commented on 2019-04-13 21:43

@insequent, thanks for the report. I've always built it in a clean chroot so I never noticed that. I just did some tests and just unsetting GOPATH seems to fix it. I've pushed an updated PKGBUILD.

insequent commented on 2019-04-13 16:34

I had some issues with "hack/generate-docs.sh", as it was trying to follow my default $GOPATH to look for src. I was able to work around this by adding the following to PKGBUILD (keep in mind, I'm no expert at this):

prepare() {
  mkdir -p "${srcdir}/github.com/openshift/"
  ln -rTsf origin "${srcdir}/github.com/openshift/origin"
}

build() {
  export GOPATH=${startdir}
  cd "${srcdir}/origin"
  make WHAT=cmd/oc
  hack/generate-docs.sh
}