Package Details: google-cloud-sdk 222.0.0-1

Git Clone URL: https://aur.archlinux.org/google-cloud-sdk.git (read-only)
Package Base: google-cloud-sdk
Description: A set of command-line tools for the Google Cloud Platform. Includes gcloud (with beta and alpha commands), gsutil, and bq.
Upstream URL: https://cloud.google.com/sdk/
Keywords: cloud gcloud gcp google sdk
Licenses: Apache
Submitter: barnybug
Maintainer: sudoforge
Last Packager: sudoforge
Votes: 104
Popularity: 2.155031
First Submitted: 2014-06-03 08:10
Last Updated: 2018-10-23 20:48

Dependencies (2)

Required by (5)

Sources (2)

Pinned Comments

sudoforge commented on 2018-09-10 15:11

To report issues or request features, please use:

https://github.com/sudoforge/pkgbuilds/issues

sudoforge commented on 2018-08-21 22:09

IMPORTANT NOTE!

Commit e01da1e449882ad8e4fe590b01cd09624b58143a removes the appengine components from this package. These components, along with all of the others, will be made available as independent packages in the future.

If you need any appengine components for your day to day workflow, you have two options:

  • Clone the repository, add in the additional components to the _additional_components list; or
  • Set "disable_updater": false in /opt/google-cloud-sdk/lib/googlecloudsdk/core/config.json and manage components using gcloud components <command>. This is probably the sanest way to go about diverging from the released package until I publish the components as separate packages.

Be sure to install any dependencies for the additional components that you may need.

Latest Comments

1 2 3 4 5 6 ... Next › Last »

esbdb commented on 2018-10-30 06:56

How do I actually update installed components? I'm still running kubectl 1.7.2. Even when update gcloud, gcloud components update never gets run.

sudoforge commented on 2018-10-20 15:36

@mathieu.clabaut:

You can follow the very straightforward instructions in the pinned comment to add additional components. No additional components will be added to this PKGBUILD at any time now or in the future.

mathieu.clabaut commented on 2018-10-20 12:23

First, I must thank you for your useful package.

I'd like to ask if it Wouldn't be possible to keep the app engine component in this package until the other package is available ?

sudoforge commented on 2018-09-14 15:14

@tuxsavvy Upon reading the output you posted, that would seem to be an error from the bootstrap script itself - or rather, that yaml cannot be imported from ruamel. Something definitely got borked with your environment, as that's a bundled SDK dependency included in the tarball that this PKGBUILD downloads from Google.

sudoforge commented on 2018-09-10 15:11

To report issues or request features, please use:

https://github.com/sudoforge/pkgbuilds/issues

sudoforge commented on 2018-09-10 15:10

@tuxsavvy

Apart from git diff output as that returns nothing I figured you want me to compare the previous major commit

No, the intent was to make sure you didn't have a dirty working tree (changes from HEAD). I don't need to see the difference between two commits if you've not diverged from origin like you say...

You should try deleting the repository from disk and re-cloning it, and building from that. I don't use aurman, and don't know what it's trying to do under the hood, but I can tell you with absolute certainty that python-ruamel-yaml is not a build dependency.

tuxsavvy commented on 2018-09-10 09:29

@sudoforge Thanks for replying. Apart from git diff output as that returns nothing I figured you want me to compare the previous major commit. Below are requested output.

$ git rev-parse HEAD
929c850f3397f91040c3e23b78d3165d2a6cc3be
$ git diff 929c850f3397f91040c3e23b78d3165d2a6cc3be d7688acc171002029ee9ac1ccd6fa41ca104aee6
diff --git a/.SRCINFO b/.SRCINFO
index 922e193..92bc9e4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,18 @@
 pkgbase = google-cloud-sdk
        pkgdesc = A set of command-line tools for the Google Cloud Platform. Includes gcloud (with beta and alpha commands), gsutil, and bq.
-       pkgver = 214.0.0
+       pkgver = 213.0.0
        pkgrel = 1
        url = https://cloud.google.com/sdk/
        arch = x86_64
        license = Apache
        depends = python2
        optdepends = python2-crcmod: [gsutil] verify the integrity of GCS object contents
+       conflicts = google-cloud-sdk-minimal
        options = !strip
        options = staticlibs
-       source = https://dl.google.com/dl/cloudsdk/release/downloads/for_packagers/linux/google-cloud-sdk_214.0.0.orig.tar.gz
+       source = https://dl.google.com/dl/cloudsdk/release/downloads/for_packagers/linux/google-cloud-sdk_213.0.0.orig.tar.gz
        source = google-cloud-sdk.sh
-       sha256sums = f7c2720792aa8f819d553746d5ecdcd5df4a317129908e55d9da9d6bf3839379
+       sha256sums = 604d13879812bfc79879d845714211f36611d38740e6621c27f390736b43b648
        sha256sums = 36ac88de630e49ea4b067b1f5f229142e4cf97561b98b3bd3d8115a356946692

 pkgname = google-cloud-sdk
diff --git a/PKGBUILD b/PKGBUILD
index c543826..1a0e78c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,12 +6,13 @@
 # Contributor: Justin Dray <justin@dray.be>

 pkgname="google-cloud-sdk"
-pkgver=214.0.0
+pkgver=213.0.0
 pkgrel=1
 pkgdesc="A set of command-line tools for the Google Cloud Platform. Includes gcloud (with beta and alpha commands), gsutil, and bq."
 url="https://cloud.google.com/sdk/"
 license=("Apache")
 arch=('x86_64')
+conflicts=("google-cloud-sdk-minimal")
 depends=('python2')
 optdepends=('python2-crcmod: [gsutil] verify the integrity of GCS object contents')
 options=('!strip' 'staticlibs')
@@ -21,7 +22,7 @@ source=(
   "google-cloud-sdk.sh"
 )
 sha256sums=(
-  'f7c2720792aa8f819d553746d5ecdcd5df4a317129908e55d9da9d6bf3839379'
+  '604d13879812bfc79879d845714211f36611d38740e6621c27f390736b43b648'
   '36ac88de630e49ea4b067b1f5f229142e4cf97561b98b3bd3d8115a356946692'
 )

@@ -93,13 +94,13 @@ package() {

   msg2 "Creating symlinks for applications"
   mkdir -p "${pkgdir}/usr/bin"
-  for i in "${pkgdir}/opt/${pkgname}/bin"/*; do
-    ln -st "${pkgdir}/usr/bin/" "${i#${pkgdir}}"
-  done
+  find "${pkgdir}/opt/${pkgname}/bin" -maxdepth 1 -type f -printf \
+    "/opt/${pkgname}/bin/%f\n" | xargs ln -st "${pkgdir}/usr/bin"
   rm -f "${pkgdir}"/usr/bin/{bq,dev_appserver.py*,endpointscfg.py*,java_dev_appserver.sh}

   msg2 "Fixing file permissions"
   chmod -x "${pkgdir}"/usr/share/man/man1/*
-  find "${pkgdir}/opt/${pkgname}" -name "*.html" -o -name "*.json" -exec chmod -x {} \;
-  find "${pkgdir}/opt/${pkgname}" -name "*_test.py" -exec chmod +x {} \;
+  find "${pkgdir}/opt/${pkgname}" -name "*.html" -print0 | xargs -0 chmod -x
+  find "${pkgdir}/opt/${pkgname}" -name "*.json" -print0 | xargs -0 chmod -x
+  find "${pkgdir}/opt/${pkgname}" -name "*_test.py" -print0 | xargs -0 chmod +x
 }
$ makepkg -sf
==> Making package: google-cloud-sdk 214.0.0-1 (Tue 04 Sep 2018 19:52:51 AEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found google-cloud-sdk_214.0.0.orig.tar.gz
  -> Found google-cloud-sdk.sh
==> Validating source files with sha256sums...
    google-cloud-sdk_214.0.0.orig.tar.gz ... Passed
    google-cloud-sdk.sh ... Passed
==> Extracting sources...
  -> Extracting google-cloud-sdk_214.0.0.orig.tar.gz with bsdtar
==> Starting prepare()...
  -> Checking for newer upstream release
  -> This AUR release: 214.0.0
  -> Latest upstream release: 214.0.0
==> Entering fakeroot environment...
==> Starting package()...
  -> Copying core SDK components
  -> Running bootstrapping script and adding additional components
Traceback (most recent call last):
  File "/home/user/.cache/aurman/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 12, in <module>
    import bootstrapping
  File "/home/user/.cache/aurman/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 46, in <module>
    from googlecloudsdk.core.updater import update_manager
  File "/home/user/.cache/aurman/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 35, in <module>
    from googlecloudsdk.core import yaml
  File "/home/user/.cache/aurman/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/yaml.py", line 32, in <module>
    from ruamel import yaml
ImportError: cannot import name yaml
==> ERROR: A failure occurred in package().
    Aborting...

Do note that the last output was me forcing makepkg within aurman directory. This is not using any AUR helper/wrapper to compile it.

Thanks in advance

allgaeuer.fabian commented on 2018-09-04 07:12

@sudoforge Yes, the package has never bundled the app-engine-java component (I always installed the component by modifying the PKGBUILD file). I just wanted to highlight that installing a JDK or JRE is (and never was) sufficient to use the Java environment. This was a bug in the old package because it simply listed as an optional dependency:

'java-environment: for Java version of App Engine'

sudoforge commented on 2018-08-31 16:28

@tuxsavvy python2-ruamel-yaml is a (bundled) dependency of the SDK, and is not required for building. I'm not sure why you're experiencing that error.

Please upload the following to ptpbw.pw (or a similar pastebin service):

  • The current commit that your cloned repo is at (git rev-parse HEAD)
  • The output of git diff in your cloned repo
  • The output of makepkg -s

tuxsavvy commented on 2018-08-31 10:15

I believe python2-ruamel-yaml might be required because it would fail to complete otherwise. Here is my build log without the dependency:

==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found google-cloud-sdk_214.0.0.orig.tar.gz
  -> Found google-cloud-sdk.sh
==> Validating source files with sha256sums...
    google-cloud-sdk_214.0.0.orig.tar.gz ... Passed
    google-cloud-sdk.sh ... Passed
==> Extracting sources...
  -> Extracting google-cloud-sdk_214.0.0.orig.tar.gz with bsdtar
==> Starting prepare()...
  -> Checking for newer upstream release
  -> This AUR release: 214.0.0
  -> Latest upstream release: 214.0.0
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
  -> Copying core SDK components
  -> Running bootstrapping script and adding additional components
Traceback (most recent call last):
  File "/home/user/.cache/aurman/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 12, in <module>
    import bootstrapping
  File "/home/user/.cache/aurman/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 46, in <module>
    from googlecloudsdk.core.updater import update_manager
  File "/home/user/.cache/aurman/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 35, in <module>
    from googlecloudsdk.core import yaml
  File "/home/user/.cache/aurman/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/yaml.py", line 32, in <module>
    from ruamel import yaml
ImportError: cannot import name yaml
==> ERROR: A failure occurred in package().
    Aborting...