sudoforge / pkgbuilds Goto Github PK
View Code? Open in Web Editor NEWPKGBUILDs for the AUR.
License: The Unlicense
PKGBUILDs for the AUR.
License: The Unlicense
When trying to update the google-cloud-sdk
package I'm getting the following error:
:: (1/1) Parsing SRCINFO: google-cloud-sdk
==> Making package: google-cloud-sdk 378.0.0-1 (vie 25 mar 2022 11:47:10)
==> Retrieving sources...
-> Found google-cloud-sdk_378.0.0.orig.tar.gz
-> Found google-cloud-sdk.sh
-> Found 0001-set-python2-for-dev-appserver-py.patch
-> Found 0002-set-python2-for-endpointscfg-py.patch
-> Found 0003-add-compdef-to-zsh-completion.patch
-> Found 0004-collections-abc.patch
==> Validating source files with sha256sums...
google-cloud-sdk_378.0.0.orig.tar.gz ... FAILED
google-cloud-sdk.sh ... Passed
0001-set-python2-for-dev-appserver-py.patch ... Passed
0002-set-python2-for-endpointscfg-py.patch ... Passed
0003-add-compdef-to-zsh-completion.patch ... Passed
0004-collections-abc.patch ... Passed
==> ERROR: One or more files did not pass the validity check!
-> error downloading sources: google-cloud-sdk
context: exit status 1
==> Making package: google-cloud-sdk 378.0.0-1 (vie 25 mar 2022 11:47:12)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found google-cloud-sdk_378.0.0.orig.tar.gz
-> Found google-cloud-sdk.sh
-> Found 0001-set-python2-for-dev-appserver-py.patch
-> Found 0002-set-python2-for-endpointscfg-py.patch
-> Found 0003-add-compdef-to-zsh-completion.patch
-> Found 0004-collections-abc.patch
==> Validating source files with sha256sums...
google-cloud-sdk_378.0.0.orig.tar.gz ... FAILED
google-cloud-sdk.sh ... Passed
0001-set-python2-for-dev-appserver-py.patch ... Passed
0002-set-python2-for-endpointscfg-py.patch ... Passed
0003-add-compdef-to-zsh-completion.patch ... Passed
0004-collections-abc.patch ... Passed
==> ERROR: One or more files did not pass the validity check!
-> error making: google-cloud-sdk
Add arm64 support for bazelisk and bazelisk-bin. The bazelisk github repo provides arm64 releases.
On Archlinux.
I googled and tried several offered "solutions" without success,
e.g. google/grr#704
sudo python2 -m easy_install --upgrade pyOpenSSL==16.2.0
also without the ==16.2.0
easy_install
because sudo pip2 uninstall pyopenssl
leads to the same problem.
Here is the traceback
Traceback (most recent call last):
File "/home/roland/.local/var/cache/yay/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 12, in <module>
import bootstrapping
File "/home/roland/.local/var/cache/yay/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 44, in <module>
from googlecloudsdk.core.credentials import store as c_store
File "/home/roland/.local/var/cache/yay/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/credentials/store.py", line 36, in <modu
le>
from googlecloudsdk.core.credentials import creds
File "/home/roland/.local/var/cache/yay/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/credentials/creds.py", line 30, in <modu
le>
from googlecloudsdk.core.credentials import devshell as c_devshell
File "/home/roland/.local/var/cache/yay/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/credentials/devshell.py", line 30, in <m
odule>
from oauth2client import client
File "/home/roland/.local/var/cache/yay/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/third_party/oauth2client/client.py", line 52, in <module>
from oauth2client import crypt
File "/home/roland/.local/var/cache/yay/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/third_party/oauth2client/crypt.py", line 41, in <module>
from oauth2client import _openssl_crypt
File "/home/roland/.local/var/cache/yay/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/third_party/oauth2client/_openssl_crypt.py", line 16, in <mo
dule>
from OpenSSL import crypto
File "/usr/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "/usr/lib/python2.7/site-packages/OpenSSL/SSL.py", line 105, in <module>
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
==> ERROR: A failure occurred in package().
Aborting...
Originally reported by AUR user chibby0ne
(comment):
I've read the pinned comment from
@sudoforge
, and the comments from@oskar
and@esbdb
, but these assume that kubectl is installed.I've just installed this package which is now in version 270.0.0-3, and it looks like it doesn't bring kubectl anymore but it still shows up as installed in the output of gcloud components list:
Your current Cloud SDK version is: 270.0.0 The latest available version is: 270.0.0 +------------------------------------------------------------------------------------------------------------+ | Components | +---------------+------------------------------------------------------+--------------------------+----------+ | Status | Name | ID | Size | +---------------+------------------------------------------------------+--------------------------+----------+ | Not Installed | App Engine Go Extensions | app-engine-go | 4.9 MiB | | Not Installed | Cloud Bigtable Command Line Tool | cbt | 7.5 MiB | | Not Installed | Cloud Bigtable Emulator | bigtable | 6.6 MiB | | Not Installed | Cloud Datalab Command Line Tool | datalab | < 1 MiB | | Not Installed | Cloud Datastore Emulator | cloud-datastore-emulator | 18.4 MiB | | Not Installed | Cloud Firestore Emulator | cloud-firestore-emulator | 40.0 MiB | | Not Installed | Cloud Pub/Sub Emulator | pubsub-emulator | 34.9 MiB | | Not Installed | Cloud SQL Proxy | cloud_sql_proxy | 3.8 MiB | | Not Installed | Emulator Reverse Proxy | emulator-reverse-proxy | 14.5 MiB | | Not Installed | Google Cloud Build Local Builder | cloud-build-local | 6.0 MiB | | Not Installed | Google Container Registry's Docker credential helper | docker-credential-gcr | 1.8 MiB | | Not Installed | Skaffold | skaffold | 22.1 MiB | | Not Installed | gcloud app Java Extensions | app-engine-java | 85.9 MiB | | Not Installed | gcloud app PHP Extensions | app-engine-php | | | Not Installed | gcloud app Python Extensions | app-engine-python | 6.0 MiB | | Not Installed | gcloud app Python Extensions (Extra Libraries) | app-engine-python-extras | 27.1 MiB | | Installed | BigQuery Command Line Tool | bq | < 1 MiB | | Installed | Cloud SDK Core Libraries | core | 12.3 MiB | | Installed | Cloud Storage Command Line Tool | gsutil | 3.6 MiB | | Installed | gcloud Alpha Commands | alpha | < 1 MiB | | Installed | gcloud Beta Commands | beta | < 1 MiB | | Installed | kubectl | kubectl | < 1 MiB | +---------------+------------------------------------------------------+--------------------------+----------+ To install or remove components at your current SDK version [270.0.0], run: $ gcloud components install COMPONENT_ID $ gcloud components remove COMPONENT_ID To update your SDK installation to the latest version [270.0.0], run: $ gcloud components update
The packages firebase-tools and google-sdk are out of date. There are pull requests but they are also out of date.
I was considering creating pull requests but will you be merging them?
Hm, so, I've thought about this a bit and I'm not sure that running go test
here is useful to us at all. We only download releases, which are already tested upstream (more extensively), so using the check()
function here simply adds fragility and maintenance overhead to this package without much benefit.
If you'd like to contribute to this package, feel free to remove the check()
function altogether (providing the context provided in this comment) and I'll happily merge that in. I'll give you a few days to tackle this before doing it myself (upon the next terragrunt
release).
Originally posted by @sudoforge in #35 (comment)
Does this still require python2 given the PKGBUILD I would say no, but while running it I get
/opt/google-cloud-sdk/bin/gcloud: line 182: /usr/bin/python2: No such file or directory
I get this error when trying to build google-cloud-sdk
:
==> Starting prepare()...
failed to apply patch: 0004-collections-abc.patch
==> ERROR: A failure occurred in prepare().
Aborting...
Please consider adding something along the lines of this to the Go PKGBUILDs:
diff --git a/terragrunt/PKGBUILD b/terragrunt/PKGBUILD
index a859eef..44d719a 100644
--- a/terragrunt/PKGBUILD
+++ b/terragrunt/PKGBUILD
@@ -20,6 +20,8 @@ sha256sums=('83b5795b8567449046bd1d9d69e4a43ea0e985762fc6198e469744eb6f29adda')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
+ export GOPATH="${srcdir}/go"
+
go build \
-ldflags "-X github.com/gruntwork-io/terragrunt.VERSION=${pkgver}" \
-o "${pkgname}-${pkgver}" \
@@ -36,6 +38,8 @@ package() {
install -D -m 0755 \
"${srcdir}/${pkgname}-${pkgver}/${pkgname}-${pkgver}" \
"${pkgdir}/usr/bin/${pkgname}"
+
+ go clean -r -cache -testcache -modcache
}
# vim:set ts=2 sw=2 et:
In order to
~/go/
folder around after build, andyay
to clean up automatically after building.Similar to #6 but no need to install an aur version of python-ruamel-yaml
Traceback (most recent call last):
File "/home/me/.cache/pikaur/build/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 12, in <module>
import bootstrapping
File "/home/me/.cache/pikaur/build/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/me/.cache/pikaur/build/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 36, in <module>
from googlecloudsdk.core import yaml
File "/home/me/.cache/pikaur/build/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/yaml.py", line 31, in <module>
from googlecloudsdk.core import yaml_location_value
File "/home/me/.cache/pikaur/build/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/yaml_location_value.py", line 39, in <module>
from ruamel import yaml
ImportError: cannot import name 'yaml' from 'ruamel' (unknown location)
This is completely unrelated but is the Fedy project not maintained anymore?
It would be nice to include shell completions with the packages. See the Bazel community package for an example. I understand this isn't ideal as Bazelisk could technically be any version of Bazel but at least it's something. There is an open issue (bazelbuild/bazelisk#29) which discusses this briefly. I see you've taken a look at this before 😄 .
The
PKGBUILD
could be refactored to remove this block altogether, and the package would still work as expected. This is something that should happen, but hasn't been a priority as it won't actually change the package in any meaningful way.
Originally posted by @sudoforge in #18 (comment)
We should clean up the block that creates some symlinks in /usr/bin
(or, conversely, remove the need for /opt/google-cloud-sdk/bin
to be in PATH
). This creates a divide in the "real" path to executables, as is confusing to new users (see #18).
On arch linux, when I attempt to "makepkg -si" the google-cloud-sdk package, I get:
==> Making package: google-cloud-sdk 285.0.1-1 (Sat 21 Mar 2020 03:54:54 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading google-cloud-sdk_285.0.1.orig.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 56.6M 100 56.6M 0 0 13.9M 0 0:00:04 0:00:04 --:--:-- 13.9M
-> Found google-cloud-sdk.sh
-> Found 0001-fix-console-io-syntax-warning.patch
-> Found 0002-set-python2-for-dev-appserver-py.patch
-> Found 0003-set-python2-for-endpointscfg-py.patch
==> Validating source files with sha256sums...
google-cloud-sdk_285.0.1.orig.tar.gz ... Passed
google-cloud-sdk.sh ... Passed
0001-fix-console-io-syntax-warning.patch ... Passed
0002-set-python2-for-dev-appserver-py.patch ... Passed
0003-set-python2-for-endpointscfg-py.patch ... Passed
==> Extracting sources...
-> Extracting google-cloud-sdk_285.0.1.orig.tar.gz with bsdtar
==> Starting prepare()...
failed to apply patch: 0004-fix-ipaddress-syntaxwarning.patch
==> ERROR: A failure occurred in prepare().
Aborting...
There is no 0004-fix-ipaddress-syntaxwarning.patch file in the google-cloud-sdk directory. I must be doing something wrong but I don't know where to start. I've successfully made this package in the past, but I've started to have this issue in the last couple of weeks.
Any suggestions? Thank you for reading!
I'm trying to install google-cloud-sdk_367.0.0
but build failed due to "failed to apply patch: 0004-collections-abc.patch"
[eric@eric-laptop-manjaro ~]$ yay -S firebase-tools
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1] firebase-tools-9.20.0-1
1 firebase-tools (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> a
:: Deleting (1/1): /home/eric/.cache/yay/firebase-tools
:: Downloaded PKGBUILD (1/1): firebase-tools
1 firebase-tools (Installed) (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
:: (1/1) Parsing SRCINFO: firebase-tools
==> ERROR: PKGBUILD contains CRLF characters and cannot be sourced.
error downloading sources: firebase-tools
In commit 4457483 you removed the # Python 3.3 and above.
comments from the .patch by simply editing the file - this, unfortunately, breaks it as the hunk sizes are now wrong.
You'd need to either revert the comments back in the patch so the hunk sizes are correct, or regenerate the patch.
I was working with Google Cloud SDK and i will begin to use BigQuery.
the bq
cli command is removed from the AUR PKGBUILD. many *.py programs are removed ... but why bq
?
I'm updating from bauh and this is the output:
wget https://aur.archlinux.org/cgit/aur.git/snapshot/google-cloud-sdk.tar.gz
--2020-01-13 09:07:24-- https://aur.archlinux.org/cgit/aur.git/snapshot/google-cloud-sdk.tar.gz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving aur.archlinux.org (aur.archlinux.org)... 5.9.250.164, 2a01:4f8:160:3033::2
Connecting to aur.archlinux.org (aur.archlinux.org)|5.9.250.164|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: 'google-cloud-sdk.tar.gz'
0K . 35.9M=0s
2020-01-13 09:07:25 (35.9 MB/s) - 'google-cloud-sdk.tar.gz' saved [1862]
tar xvzf google-cloud-sdk.tar.gz
google-cloud-sdk/
google-cloud-sdk/.SRCINFO
google-cloud-sdk/PKGBUILD
google-cloud-sdk/google-cloud-sdk.sh
Using custom makepkg.conf -> /home/ruben/.config/bauh/arch/makepkg.conf
makepkg -ALcf --check --noarchive --nobuild --noprepare --config=/home/ruben/.config/bauh/arch/makepkg.conf
==> Making package: google-cloud-sdk 275.0.0-1 (Mon Jan 13 09:07:25 2020)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading google-cloud-sdk_275.0.0.orig.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
70 31.2M 70 22.0M 0 0 30.1M 0 0:00:01 --:--:-- 0:00:01 30.1M
100 31.2M 100 31.2M 0 0 37.7M 0 --:--:-- --:--:-- --:--:-- 37.6M
-> Found google-cloud-sdk.sh
==> Validating source files with sha256sums...
google-cloud-sdk_275.0.0.orig.tar.gz ... Passed
google-cloud-sdk.sh ... Passed
==> Extracting sources...
-> Extracting google-cloud-sdk_275.0.0.orig.tar.gz with bsdtar
bsdtar: Failed to set default locale
==> Sources are ready.
Using custom makepkg.conf -> /home/ruben/.config/bauh/arch/makepkg.conf
makepkg -ALcsmf --config=/home/ruben/.config/bauh/arch/makepkg.conf
==> Making package: google-cloud-sdk 275.0.0-1 (Mon Jan 13 09:07:28 2020)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found google-cloud-sdk_275.0.0.orig.tar.gz
-> Found google-cloud-sdk.sh
==> Validating source files with sha256sums...
google-cloud-sdk_275.0.0.orig.tar.gz ... Passed
google-cloud-sdk.sh ... Passed
==> Extracting sources...
-> Extracting google-cloud-sdk_275.0.0.orig.tar.gz with bsdtar
bsdtar: Failed to set default locale
==> Entering fakeroot environment...
==> Starting package()...
Copying core SDK components
Running bootstrapping script
Traceback (most recent call last):
File "/tmp/bauh/aur/build_1578902844/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/util/files.py", line 1227, in _FileOpener
return io.open(path, mode, encoding=encoding)
PermissionError: [Errno 13] Permission denied: '/root/.config/gcloud/active_config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/bauh/aur/build_1578902844/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/configurations/named_configs.py", line 485, in _ActiveConfigNameFromFile
config_name = file_utils.ReadFileContents(path)
File "/tmp/bauh/aur/build_1578902844/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/util/files.py", line 1060, in ReadFileContents
with FileReader(path) as f:
File "/tmp/bauh/aur/build_1578902844/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/util/files.py", line 1163, in FileReader
return _FileOpener(path, 'rt', 'read', encoding='utf8')
File "/tmp/bauh/aur/build_1578902844/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/util/files.py", line 1234, in _FileOpener
raise exc_type('Unable to {0} file [{1}]: {2}'.format(verb, path, e))
googlecloudsdk.core.util.files.Error: Unable to read file [/root/.config/gcloud/active_config]: [Errno 13] Permission denied: '/root/.config/gcloud/active_config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/bauh/aur/build_1578902844/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 12, in <module>
import bootstrapping
File "/tmp/bauh/aur/build_1578902844/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 40, in <module>
from googlecloudsdk.core import execution_utils
File "/tmp/bauh/aur/build_1578902844/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/execution_utils.py", line 34, in <module>
from googlecloudsdk.core import log
File "/tmp/bauh/aur/build_1578902844/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/log.py", line 817, in <module>
_log_manager = _LogManager()
File "/tmp/bauh/aur/build_1578902844/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/log.py", line 559, in __init__
self.Reset(sys.stdout, sys.stderr)
File "/tmp/bauh/aur/build_1578902844/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/log.py", line 572, in Reset
std_console_formatter = _ConsoleFormatter(stderr)
File "/tmp/bauh/aur/build_1578902844/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/log.py", line 362, in __init__
use_color = not properties.VALUES.core.disable_color.GetBool(validate=False)
File "/tmp/bauh/aur/build_1578902844/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/properties.py", line 2122, in GetBool
named_configs.ActivePropertiesFile.Load(),
File "/tmp/bauh/aur/build_1578902844/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/configurations/named_configs.py", line 396, in Load
[config.Paths().installation_properties_path, ActiveConfig(
File "/tmp/bauh/aur/build_1578902844/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/configurations/named_configs.py", line 436, in ActiveConfig
config_name = _EffectiveActiveConfigName()
File "/tmp/bauh/aur/build_1578902844/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/configurations/named_configs.py", line 461, in _EffectiveActiveConfigName
config_name = _ActiveConfigNameFromFile()
File "/tmp/bauh/aur/build_1578902844/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/configurations/named_configs.py", line 497, in _ActiveConfigNameFromFile
raise NamedConfigFileAccessError(
googlecloudsdk.core.configurations.named_configs.NamedConfigFileAccessError: Active configuration name could not be read from: [/root/.config/gcloud/active_config]. Ensure you have sufficient read permissions on required active configuration in [/root/.config/gcloud/configurations].
Unable to read file [/root/.config/gcloud/active_config]: [Errno 13] Permission denied: '/root/.config/gcloud/active_config'
==> ERROR: A failure occurred in package().
Aborting...
Could not find generated .tar.xz file. Aborting...
rm -rf /tmp/bauh/aur/build_1578902844
I checked:
bsdtar --version
bsdtar 3.4.0 - libarchive 3.4.0 zlib/1.2.11 liblzma/5.2.4 bz2lib/1.0.8 liblz4/1.9.2 libzstd/1.4.3
Also:
type bsdtar
bsdtar está asociado (/usr/bin/bsdtar)
And extract manually:
bsdtar -x -f google-cloud-sdk_275.0.0.orig.tar.gz -> Works OK:
/tmp/google-cloud-sdk$ ls -la
total 492
drwxr-xr-x 10 ruben ruben 440 ene 3 16:52 .
drwxrwxrwt 30 root root 1000 ene 13 09:41 ..
drwxr-xr-x 3 ruben ruben 220 ene 3 16:52 bin
-rw-r--r-- 1 ruben ruben 2711 ene 3 16:50 completion.bash.inc
-rw-r--r-- 1 ruben ruben 2083 ene 3 16:50 completion.zsh.inc
drwxr-xr-x 3 ruben ruben 60 ene 3 16:50 data
drwxr-xr-x 3 ruben ruben 60 ene 3 16:52 deb
drwxr-xr-x 3 ruben ruben 60 ene 3 16:52 help
drwxr-xr-x 3 ruben ruben 620 ene 3 16:52 .install
-rwxr-xr-x 1 ruben ruben 7025 ene 3 16:50 install.bat
-rwxr-xr-x 1 ruben ruben 6455 ene 3 16:50 install.sh
drwxr-xr-x 6 ruben ruben 140 ene 3 16:50 lib
-rw-r--r-- 1 ruben ruben 980 ene 3 16:50 LICENSE
-rw-r--r-- 1 ruben ruben 377 ene 3 16:50 path.bash.inc
-rw-r--r-- 1 ruben ruben 1210 ene 3 16:50 path.fish.inc
-rw-r--r-- 1 ruben ruben 31 ene 3 16:50 path.zsh.inc
drwxr-xr-x 5 ruben ruben 100 ene 3 16:52 platform
-rw-r--r-- 1 ruben ruben 39 ene 3 16:52 properties
-rw-r--r-- 1 ruben ruben 673 ene 3 16:50 README
-rw-r--r-- 1 ruben ruben 446563 ene 3 16:50 RELEASE_NOTES
drwxr-xr-x 3 ruben ruben 60 ene 3 16:52 rpm
-rw-r--r-- 1 ruben ruben 8 ene 3 16:52 VERSION
Also, I don't know why I have this error:
googlecloudsdk.core.util.files.Error: Unable to read file [/root/.config/gcloud/active_config]: [Errno 13] Permission denied: '/root/.config/gcloud/active_config'
The official Bazelisk installation suggests that both bazel
and bazelisk
should be in the path. It would be nice to keep the behaviour consistent.
I'm trying to build buildozer
in an clean chroot.
I've got no idea why it's failing - maybe it's the chroot setup? Any thoughts?
==> Extracting sources...
-> Extracting buildozer-3.3.0.tar.gz with bsdtar
==> Starting build()...
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
ERROR: /build/.cache/bazel/_bazel_builduser/c143ba48f39edbef3590154ceb0d46ec/external/build_bazel_rules_nodejs/internal/node/node.bzl:89:45: invalid escape sequence: \/. You can enable unknown escape sequences by passing the flag --incompatible_restrict_string_escapes=false
ERROR: /build/.cache/bazel/_bazel_builduser/c143ba48f39edbef3590154ceb0d46ec/external/build_bazel_rules_nodejs/internal/node/node.bzl:89:64: invalid escape sequence: \.. You can enable unknown escape sequences by passing the flag --incompatible_restrict_string_escapes=false
ERROR: error loading package '': in /build/.cache/bazel/_bazel_builduser/c143ba48f39edbef3590154ceb0d46ec/external/build_bazel_rules_nodejs/index.bzl: Extension 'internal/node/node.bzl' has errors
INFO: Elapsed time: 8.743s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Build failed, check /var/lib/aurbuild/x86_64/ixil/build
The package is failing to find the bin, I have the same problem in my clean-chroot (using the aur-build tools).
The symlinks to the bazel outputs are:
bazel-bin -> /home/ixil/.cache/bazel/_bazel_ixil/ba49057621d38c7b92c85bf47f82b92c/execroot/com_github_bazelbuild_buildtools/bazel-out/k8-fastbuild/bin
Whereas the actual bin is at:
$cd ~/.cache/bazel; fd -x buildozer-linux;
./_bazel_ixil/ba49057621d38c7b92c85bf47f82b92c/execroot/com_github_bazelbuild_buildtools/bazel-out/k8-fastbuild-ST-05b09dfdd2e5/bin/buildozer/buildozer-linux_amd64
makepkg -s
==> Starting build()...
Starting local Bazel server and connecting to it...
WARNING: ignoring _JAVA_OPTIONS in environment.
INFO: Analyzed target //buildozer:buildozer-linux (105 packages loaded, 8159 targets configured).
INFO: Found 1 target...
Target //buildozer:buildozer-linux up-to-date:
bazel-out/k8-fastbuild-ST-05b09dfdd2e5/bin/buildozer/buildozer-linux_amd64
INFO: Elapsed time: 53.302s, Critical Path: 21.34s
INFO: 567 processes: 24 internal, 543 linux-sandbox.
INFO: Build completed successfully, 567 total actions
==> Entering fakeroot environment...
==> Starting package()...
install: cannot stat './bazel-bin/buildozer/buildozer-linux_amd64': No such file or directory
==> ERROR: A failure occurred in package().
Aborting...
Originally posted by @ixil in #45 (comment)
% gcloud beta sql connect … --user=postgres
Starting Cloud SQL Proxy: [/opt/google-cloud-sdk/bin/cloud_sql_proxy -instances …=tcp:9470 -credential_file …/adc.json]]
ERROR: gcloud crashed (FileNotFoundError): [Errno 2] No such file or directory: '/opt/google-cloud-sdk/bin/cloud_sql_proxy'
If you would like to report this issue, please run the following command:
gcloud feedback
To check gcloud for common problems, please run the following command:
gcloud info --run-diagnostics
I've seen that it is missing from gcloud components
and have read what to do to manually install this component in https://aur.archlinux.org/packages/google-cloud-sdk#pinned-659642, but wondered if it would be feasible to opt-depend on e.g. cloud-sql-proxy-bin, which provides the cloud_sql_proxy
binary, and/or patch google-cloud-sdk to not require it from /opt/google-cloud-sdk/bin/cloud_sql_proxy
, but use it via $PATH
!?
$ sudo pamac install google-cloud-sdk
[…]
File "/var/cache/private/pamac/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/configurations/named_configs.py", line 549, in _ActiveConfigNameFromFile
raise NamedConfigFileAccessError(
googlecloudsdk.core.configurations.named_configs.NamedConfigFileAccessError: Active configuration name could not be read from: [/root/.config/gcloud/active_config]. Ensure you have sufficient read permissions on required active configuration in [/root/.config/gcloud/configurations].
Unable to read file [/root/.config/gcloud/active_config]: [Errno 13] Permission denied: '/root/.config/gcloud/active_config'
==> ERROR: A failure occurred in package().
Aborting...
Finished with result: exit-code
Main processes terminated with: code=exited/status=4
I tried various combinations of sudo
, bash -c
, su
, and environment variables. The result was the same failure in each case.
Running makepkg
as a regular user and using sudo
for the install afterwards works.
But it is a bit more trouble. It means GUI package managers with update reminders or CLI tools with blanket update
commands and such don't work, and also in turn means losing some automatic caching of build files.
==> Starting package()...
find: The current directory is included in the PATH environment variable, which is unsafe in combination with find's -execdir action. Please remove the current directory from your $PATH (ie remove ".", double colon or colon at the beginning or end)
==> ERROR: A failure occurred in package().
Aborting...
It would perhaps be better to explicitly pass the appropriate patch filenames to the
patch
command, at the cost of maintenance ergonomics -- it would avoid issues like this, but ensuring that the build environment is clean isn't really the job of thePKGBUILD
. I'm going to close this for now, but feel free to comment if the issue persists for you.
Originally posted by @sudoforge in #16 (comment)
By explicitly applying only the patches which are present in the source
array, we can bypass the issue a user encountered in #16 altogether.
==> Starting package()...
Copying core SDK components
Running bootstrapping script
/home/arch/google-cloud-sdk/PKGBUILD: line 38: python2: command not found
==> ERROR: A failure occurred in package().
Aborting...
It's been nearly 2 months since the last google-cloud-sdk update. Is it still maintained? Any help needed?
Not really an issue, but FYI if you add the 'armv7h' to the arch it works out of the box (at least on arch arm in my Raspberry Pi 4)
In case someone else have the doubt if it works, it does
Edit: talking about google-cloud-sdk pkgbuild
gcloud
needs python2
to work. The dependency shouldn't be optional.
Steps to reproduce:
$ yay -Q google-cloud-sdk
google-cloud-sdk 354.0.0-1
$ yay -Rs python2
$ python2
bash: python2: command not found
$ gcloud
/opt/google-cloud-sdk/bin/gcloud: line 194: /usr/bin/python2: No such file or directory
I get the following error in package():
-> Running bootstrapping script and adding additional components
Traceback (most recent call last):
File "/home/linus/.cache/yay/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 12, in <module>
import bootstrapping
File "/home/linus/.cache/yay/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/linus/.cache/yay/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/linus/.cache/yay/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/yaml.py", line 29, in <module>
from googlecloudsdk.core import yaml_location_value
File "/home/linus/.cache/yay/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/yaml_location_value.py", line 39, in <module>
from ruamel import yaml
I fixed it by installing aur/python2-ruamel-yaml from AUR. Maybe this should be added to the makedepends or depends of the PKGBUILD. Unfortunately python2-ruamel-yaml has been marked out-of-date for a while.
captain commented on 2021-02-08 18:15
I think there is an error in PKGBUILD line 22:mkdir -p "${pkgdir}/opt/google-cloud-sdk/platform/google_appengine"
I think it should be:
mkdir -p "${pkgdir}/opt/google-cloud-sdk/platform"
Right now this results in the creation of
${pkgdir}/opt/google-cloud-sdk/platform/google_appengine/google_appengine
when line 35 is run:cp -R \ "${srcdir}/google-cloud-sdk/platform/google_appengine" \ "${pkgdir}/opt/google-cloud-sdk/platform/google_appengine"
From https://aur.archlinux.org/packages/google-cloud-sdk-app-engine-python/#comment-790646
cc @shvelo
this package was upgraded here to 1.11.0
with 499dc29. Not sure when that is expected to reflect in the aur, https://aur.archlinux.org/packages/bazelisk, but it still shows 1.10.1
Package is out of date, latest version is 226.
All that needs changed is the pkgver and sha256sum
Full error was
/opt/google-cloud-sdk/platform/bundledpythonunix/bin/python3: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
Previously installed version 371 on an arch laptop running python 3.10 as well as arch via wsl2 with python 3.10 installed
I think it would be good to use export CLOUDSDK_PYTHON=/usr/bin/python
(instead of just python
) in /etc/profile.d/google-cloud-sdk.sh
, so that it would not use the Python binary from $PATH
(e.g. an activated virtualenv).
(It is relevant with e.g. gcloud beta compute ssh …
, which might suggest to install NumPy, which might be missing in the virtualenv.)
So no matter what I do, I cannot upgrade to 2.5.0.r0.gf224e2f
, I have tried using aurutils
, deleting the cache/build dirs, downloading the PKGBUILD
and using makepkg
, it keeps building wee-slack-git-2.6.0.r0.g4aac4bf-1
and tells me my version is up to date, asking me if I should reinstall.
Running latest updated Arch linux, how do I troubleshoot this?
The PKGBUILD
file contains a variable called _additional_components
, which a user can append any components, that should be installed in the bootstrap process.
However, this does not work currently, because the "disable_updater"
setting in opt/google-cloud-sdk/lib/googlecloudsdk/core/config.json
prevents it. The setting seems to apply for the bootstrap process, too.
I suggest setting it to true
just for the call of …/bootstrapping/install.py
and setting it back afterwards.
I'm getting the error
/opt/google-cloud-sdk/lib/third_party/ipaddress/__init__.py:1106: SyntaxWarning: str object is not callable; perhaps you missed a comma?
raise TypeError("%s and %s are not of the same version" (a, b))
whenever I issue any gcloud command.
Could you package app-engine-python
and app-engine-python-extras
? Would be great 😄
Traceback (most recent call last):
File "/home/rahil/.cache/yay/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 12, in <module>
import bootstrapping
File "/home/rahil/.cache/yay/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/rahil/.cache/yay/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 39, in <module>
from googlecloudsdk.core.console import progress_tracker
File "/home/rahil/.cache/yay/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/console/progress_tracker.py", line 651, in <module>
class _BaseStagedProgressTracker(collections.Mapping):
AttributeError: module 'collections' has no attribute 'Mapping'
==> ERROR: A failure occurred in package().
Aborting...
-> error making: google-cloud-sdk
What worked for me was downgrading to python 9 first then installing google-cloud-sdk.
Since only a couple of utilities in the SDK still require Python 2, the users not using them shouldn't be required to install it.
Repro steps:
paru -S google-cloud-sdk
gcloud auth login
Expected:
gcloud auth login
command would run without errorActual
/opt/google-cloud-sdk/platform/bundledpythonunix/bin/python3: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
Notes:
sudo pacman -S libxcrypt-compat
$ makepkg -sir .
==> Making package: google-cloud-sdk 264.0.0-1 (Wed 25 Sep 2019 02:32:46 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading google-cloud-sdk_264.0.0.orig.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 29.9M 100 29.9M 0 0 41.3M 0 --:--:-- --:--:-- --:--:-- 41.2M
-> Found google-cloud-sdk.sh
==> Validating source files with sha256sums...
google-cloud-sdk_264.0.0.orig.tar.gz ... Passed
google-cloud-sdk.sh ... Passed
==> Extracting sources...
-> Extracting google-cloud-sdk_264.0.0.orig.tar.gz with bsdtar
==> Starting prepare()...
-> Checking for newer upstream release
-> This AUR release: 264.0.0
-> Latest upstream release: 264.0.0
-> Everything up to date :)
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
-> Copying core SDK components
-> Running bootstrapping script
Traceback (most recent call last):
File "/var/cache/makepkg/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 12, in <module>
import bootstrapping
File "/var/cache/makepkg/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 "/var/cache/makepkg/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 39, in <module>
from googlecloudsdk.core.resource import resource_printer
File "/var/cache/makepkg/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/resource/resource_printer.py", line 42, in <module>
from googlecloudsdk.core.resource import config_printer
File "/var/cache/makepkg/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/resource/config_printer.py", line 25, in <module>
from googlecloudsdk.core.resource import resource_printer_base
File "/var/cache/makepkg/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/resource/resource_printer_base.py", line 46, in <module>
from googlecloudsdk.core.resource import resource_projector
File "/var/cache/makepkg/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/resource/resource_projector.py", line 69, in <module>
from google.protobuf import json_format as protobuf_encoding
ImportError: cannot import name json_format
==> ERROR: A failure occurred in package().
Aborting...
I get the following error when trying to install google-cloud-sdk
from AUR today:
% sudo aura -A google-cloud-sdk
aura >>= Determining dependencies...
aura >>= AUR Packages:
google-cloud-sdk
aura >>= Continue? [Y/n]
aura >>= Building google-cloud-sdk...
aura >>= Building failed. Would you like to see the error? [Y/n] y
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 76.4M 100 76.4M 0 0 18.4M 0 0:00:04 0:00:04 --:--:-- 18.9M
google-cloud-sdk_295.0.0.orig.tar.gz ... Passed
google-cloud-sdk.sh ... Passed
0001-set-python2-for-dev-appserver-py.patch ... Passed
0002-set-python2-for-endpointscfg-py.patch ... Passed
0003-add-compdef-to-zsh-completion.patch ... Passed
Traceback (most recent call last):
File "/tmp/google-cloud-sdk-1563092363463208678/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/util/files.py", line 1227, in _FileOpener
return io.open(path, mode, encoding=encoding)
PermissionError: [Errno 13] Permission denied: '/root/.config/gcloud/active_config'
Is there anything I need to do on my end to fix this, or is there a problem in the package?
The build for the google-cloud--sdk
in version 368.0.0
currently fails, because the 0004-collections-abc.patch
cannot be applied.
failed to apply patch: 0004-collections-abc.patch
It seems Google has fixed parts of the issue upstream, however other parts of the patch still seem to be required.
I tried removing the patch from the build and the following error occurred:
ERROR: gcloud crashed (CommandLoadFailure): Problem loading gcloud.functions.list: module 'collections' has no attribute 'Mapping'.
Using kubectl against GKE, I get this message:
W0523 11:31:21.399966 60779 gcp.go:120] WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead.
To learn more, consult https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
Is it possible to bundle this component with the google-cloud-sdk
package?
Or, alternatively, create a separate package to install the component separately?
Current version:
$ pacman -Q google-cloud-sdk
google-cloud-sdk 386.0.0-1
$ gcloud -v
Google Cloud SDK 386.0.0
alpha 2022.05.13
beta 2022.05.13
bq 2.0.74
bundled-python3-unix 3.9.12
core 2022.05.13
gsutil 5.10
As of version 2.9 of weechat, it can load scripts from /usr/share/weechat/python
, see weechat/weechat#1461. Additionally, as of version 2.7.0 of wee-slack, weemoji.json
can be loaded from /usr/share/weechat
, see wee-slack/wee-slack@14ea3ef.
I therefore suggest installing to these locations instead of /usr/lib
. That would allow users to load the script directly, without creating any symlink (except for autoloading), and you can remove those post installation instructions.
A user has requested that the PATH
manipulation done for google-cloud-sdk
is refactored such that the path for the package executables is appended to PATH
rather than prepended.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.