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 ?
Git Clone URL: | https://aur.archlinux.org/google-cloud-cli.git (read-only, click to copy) |
---|---|
Package Base: | google-cloud-cli |
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/cli/ |
Keywords: | cloud gcloud gcp google sdk |
Licenses: | Apache-2.0 |
Conflicts: | google-cloud-sdk |
Provides: | google-cloud-sdk |
Replaces: | google-cloud-sdk |
Submitter: | PolarianDev |
Maintainer: | jvybihal |
Last Packager: | jvybihal |
Votes: | 190 |
Popularity: | 0.55 |
First Submitted: | 2023-03-08 09:33 (UTC) |
Last Updated: | 2025-04-16 16:59 (UTC) |
« First ‹ Previous 1 .. 13 14 15 16 17 18 19 20 21 22 23 .. 31 Next › Last »
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 ?
@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.
PLEASE NOTE
This PKGBUILD
is maintained on GitHub. Please use the following repository to submit patches, ask questions, and raise issues:
@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.
@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
@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'
@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):
git rev-parse HEAD
)git diff
in your cloned repomakepkg -s
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...
@allgaeuer.fabian This package has, as of my maintership, never bundled the app-engine-java
component. You should read and follow the instructions in the currently pinned comment.
@sudoforge Regarding your commit e01da1e449882ad8e4fe590b01cd09624b58143a
: the Java environment requires installation of an additional component app-engine-java
. Installing just the JDK or JRE is not sufficient.
Pinned Comments