[Bug 227431] net/google-cloud-sdk: Does not delete all files on uninstall/upgrade causing 'unexpected keyword argument 'release_notes_url'' error
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Apr 10 21:27:25 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227431
Bug ID: 227431
Summary: net/google-cloud-sdk: Does not delete all files on
uninstall/upgrade causing 'unexpected keyword argument
'release_notes_url'' error
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: swills at FreeBSD.org
Reporter: samorders at gmail.com
Assignee: swills at FreeBSD.org
Flags: maintainer-feedback?(swills at FreeBSD.org)
It seems that the google-cloud-sdk port does not delete all files when
uninstalled which can cause upgraded versions to not work. At least that is my
experience when I upgraded from 183 to 194, I could not get 194 to work and
subsequent upgrades to 195 and 196 would not work either. However, after
deleting /usr/local/google-cloud-sdk and reinstalling it works fine.
----------------------
test:/tmp # gsutil
Traceback (most recent call last):
File "/usr/local/bin/../google-cloud-sdk/bin/bootstrapping/gsutil.py", line
12, in <module>
import bootstrapping
File "/usr/local/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line
15, in <module>
from googlecloudsdk.core import config
File "/usr/local/google-cloud-sdk/lib/googlecloudsdk/core/config.py", line
387, in <module>
File "/usr/local/google-cloud-sdk/lib/googlecloudsdk/core/config.py", line
314, in Load
def logs_dir(self):
TypeError: __init__() got an unexpected keyword argument 'release_notes_url'
test:/tmp # pkg delete -y google-cloud-sdk
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages
in the universe):
Installed packages to be REMOVED:
google-cloud-sdk-196.0.0
Number of packages to be removed: 1
The operation will free 84 MiB.
[1/1] Deinstalling google-cloud-sdk-196.0.0...
[1/1] Deleting files for google-cloud-sdk-196.0.0: 100%
test:/tmp # pkg install -y google-cloud-sdk
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
google-cloud-sdk: 196.0.0
Number of packages to be installed: 1
The process will require 84 MiB more space.
[1/1] Installing google-cloud-sdk-196.0.0...
[1/1] Extracting google-cloud-sdk-196.0.0: 100%
test:/tmp # gsutil
Traceback (most recent call last):
File "/usr/local/bin/../google-cloud-sdk/bin/bootstrapping/gsutil.py", line
12, in <module>
import bootstrapping
File "/usr/local/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line
15, in <module>
from googlecloudsdk.core import config
File "/usr/local/google-cloud-sdk/lib/googlecloudsdk/core/config.py", line
387, in <module>
File "/usr/local/google-cloud-sdk/lib/googlecloudsdk/core/config.py", line
314, in Load
def logs_dir(self):
TypeError: __init__() got an unexpected keyword argument 'release_notes_url'
test:/tmp # pkg delete -y google-cloud-sdk
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages
in the universe):
Installed packages to be REMOVED:
google-cloud-sdk-196.0.0
Number of packages to be removed: 1
The operation will free 84 MiB.
[1/1] Deinstalling google-cloud-sdk-196.0.0...
[1/1] Deleting files for google-cloud-sdk-196.0.0: 100%
test:/tmp # ls -al /usr/local/google-cloud-sdk/
total 20
drwxr-xr-x 5 root wheel 1024 Apr 10 21:12 .
drwxr-xr-x 15 root wheel 512 Oct 31 16:43 ..
drwxr-xr-x 3 root wheel 512 Apr 10 21:12 bin
drwxr-xr-x 4 root wheel 512 Apr 10 21:12 lib
drwxr-xr-x 3 root wheel 512 Apr 10 21:12 platform
test:/tmp # rm -r /usr/local/google-cloud-sdk
test:/tmp # pkg install -y google-cloud-sdk
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
google-cloud-sdk: 196.0.0
Number of packages to be installed: 1
The process will require 84 MiB more space.
[1/1] Installing google-cloud-sdk-196.0.0...
[1/1] Extracting google-cloud-sdk-196.0.0: 100%
test:/tmp # gsutil
Updates are available for some Cloud SDK components. To install them,
please run:
$ gcloud components update
Usage: gsutil [-D] [-DD] [-h header]... [-m] [-o] [-q] [command [opts...]
args...]
Available commands:
acl Get, set, or change bucket and/or object ACLs
cat Concatenate object content to stdout
compose Concatenate a sequence of objects into a new composite
object.
config Obtain credentials and create configuration file
cors Get or set a CORS JSON document for one or more buckets
cp Copy files and objects
defacl Get, set, or change default ACL on buckets
defstorageclass Get or set the default storage class on buckets
du Display object size usage
hash Calculate file hashes
help Get help about commands and topics
iam Get, set, or change bucket and/or object IAM permissions.
kms Configure Cloud KMS encryption
label Get, set, or change the label configuration of a bucket.
lifecycle Get or set lifecycle configuration for a bucket
logging Configure or retrieve logging on buckets
ls List providers, buckets, or objects
mb Make buckets
mv Move/rename objects and/or subdirectories
notification Configure object change notification
perfdiag Run performance diagnostic
rb Remove buckets
requesterpays Enable or disable requester pays for one or more buckets
rewrite Rewrite objects
rm Remove objects
rsync Synchronize content of two buckets/directories
setmeta Set metadata on already uploaded objects
signurl Create a signed url
stat Display object status
test Run gsutil unit/integration tests (for developers)
update Update to the latest gsutil release
version Print version info about gsutil
versioning Enable or suspend versioning for one or more buckets
web Set a main page and/or error page for one or more buckets
Additional help topics:
acls Working With Access Control Lists
anon Accessing Public Data Without Credentials
apis Cloud Storage APIs
crc32c CRC32C and Installing crcmod
creds Credential Types Supporting Various Use Cases
dev Contributing Code to gsutil
test:/tmp #
----------------------
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list