New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/opt/local/sbin/pkg_alternatives: line 623: [: too many arguments #366
Comments
That line is: [ ! -f ${PKG_DBDIR}/${1}*/+ALTERNATIVES ] && \
err "no alternatives defined for the \`${1}' package" That shell code isn't suitable for globs and should really be rewritten. I think the intention is that you should only be specifying a single package name (e.g. FWIW on my macOS host: $ pkg_alternatives status go
pkg_alternatives: the package `go' is not known
$ pkg_alternatives status go121
`bin/go' points to `/opt/pkg/go121/bin/go'
candidate: /opt/pkg/go119/bin/go
candidate: /opt/pkg/go121/bin/go
`bin/gofmt' points to `/opt/pkg/go121/bin/gofmt'
candidate: /opt/pkg/go119/bin/gofmt
candidate: /opt/pkg/go121/bin/gofmt
$ echo /opt/pkg/.pkgdb/go*/+ALTERNATIVES
/opt/pkg/.pkgdb/go119-1.19.12/+ALTERNATIVES /opt/pkg/.pkgdb/go121-1.21.1/+ALTERNATIVES i.e. I'm not getting the same error, so I guess there's an earlier check that is somehow passing for you. |
On the smartos machine, there is a |
Oh ok, yeh those packages are fundamentally incompatible with |
That leads me to this question - there are a few other places, python is the one that comes to mind, where not being able to install one package name and get whatever is deemed current is a headache that leads to hardcoding versions in a bunch of playbooks, and the obvious downstream headache. Is there a better solution? |
Personally I think the best solution is being specific about the versions you want to install. Yes this means you may need to update them every so often, but at least you are then explicit about opting into a new version that has been tested with the rest of your stack, and the versions aren't bumped all that often. The alternative would be for me to provide e.g. |
One of the worst problems I have, which I end up fixing (it seems like) several times per year, is that the python offered on the gz tools platform only includes pip for one version. I never seem to notice in advance that an update to that is coming, and suddenly playbooks are crashing. So maybe the underpinning problem is that I need to figure out what to follow in order to know when to pre-emptively fix playbooks. There are a few other things that I retroactively discover -- I think the reason I have |
Hmm, could you explain the pip issue a bit more? It looks like we don't ship pip in the gz tools set yet, so perhaps if we start doing that it should solve your issue. Please make sure you raise issues for any problems that you hit, we want to be able to fix them! |
Oh, ignore part of that - while we don't explicitly list |
Ok I've added
I think this should help with the issue you had? |
Will definitely help. Thanks! |
[2.1.0] - 2023-10-30 Features & Improvements Added support for Python 3.12 #379 Added CONTRIBUTING.md document #331 Added tests/ directory to sdist artifact #327 Bug fixes Fixed subcommand completions for Fish #359 Removed deprecated -A option from Fish completions #366 Fixed program name discovery in completions script when running as module #231 Fixed ANSI coloring detection in virtual terminal environments (Windows, PyCharm) #104 Fixed terminal size detection #299
# xml2 1.3.6 * Now compatible with libxml2 2.12.0 and later (@KNnut). * Fixed format string issues detected in R-devel. * Remove unused dependencies on glue, withr and lifecycle (@mgirlich). * `print()` is faster for very long `xml_nodeset` inputs (#366, @MichaelChirico). * `xml_attr()`, `xml_attrs()`, `xml_double()`, `xml_integer()`, `xml_length()`, `xml_name()`, `xml_path()`, `xml_text()`, and `xml_type()` no longer use S3 dispatch but instead dispatch in C, leading to considerable performance improvements in many cases (@mgirlich, #400). * `xml_find_int()` analogous to `xml_find_num()` for returning integers matched by an XPath (#365, @MichaelChirico). * `xml_serialize()` now includes the document type so that `xml_unserialize()` works also for HTML documents (#407, @HenrikBengtsson). # xml2 1.3.5 * Small speedup for `xml_find_all()` (@mgirlich, #393). * Fixes for R CMD check problems. # xml2 1.3.4 * Fixes for R CMD check problems. * Windows: update to libxml2 2.10.3 # xml2 1.3.3 * Hadley Wickham is now (again) the maintainer. * xml2 has been re-licensed as MIT (#317). * `xml_find_all.xml_node()` fails more informatively the `xpath` parameter is the wrong type (@MichaelChirico) * `xml_find_all.xml_nodeset()` gains a `flatten` argument to control whether to return a single nodeset or a list of nodesets (#311, @jakejh) * `write_xml()` and `write_html()` now return NULL invisibly, as they did prior to version 1.3.0 (#307) * `XPtr` gets explicit copy constructor and assignment operator definitions, which were two missing components of the [Rule of three](https://en.wikipedia.org/wiki/Rule_of_three_(C%2B%2B_programming)) (@MichaelChirico) * Windows: update to libxml2 2.9.10 and libxslt 1.1.34 and add ucrt libs
v0.17.0 is a new release with a lot of features, bug fixes, and specifically a patch fixing a very annoying Spotify API bug. This release also marks a big milestone for the project: 1k ⭐ 🥳🥳🥳 . Thanks everyone for contributing, using, and starring the project! What's Changed Add custom text input widget with cursor, to use in search page by @micleo2 in #329 chore: update github actions by @LucasFA in #339 reset buffered playback upon handling GetCurrentPlayback request by @aome510 in #341 docs: fixes keymap command name by @massivebird in #342 chore(docs): Remove unneeded explicit link by @LucasFA in #344 Wait for the copy command to exit. by @Fuyukai in #346 build: use cross for cross-compilation, locally and in CD by @LucasFA in #343 feat: Souvlaki 0.7.0 and Linux Dbus volume control support by @LucasFA in #348 extend capabilities for ShowActionsOn* commands by @aome510 in #352 handle title padding with hidden borders by @aome510 in #351 update dependencies, bump lyric_finder to v0.1.5 by @aome510 in #353 Add miscellaneous UI code changes by @aome510 in #354 update issue templates by @aome510 in #366 fix clippy warning by @aome510 in #367 re-create a new session when restarting the integrated client by @aome510 in #370 Don't create streaming connections for non-streaming instances by @Schnouki in #371 Remove winit from compilation on Linux by @LucasFA in #372 Explicit cargo-binstall support by @LucasFA in #377 Add popup for creating new playlist by @aome510 in #379 Make Daemon feature imply streaming feature by @LucasFA in #376 use liked icon's length to configure the column's width by @aome510 in #380 Patch spotify API bugs by @aome510 in #386
Various
pkg_alternatives
commands generate an error. E.g.This seems to be related to there being nothing much in the database directory:
This even after a
rebuild
.Have I managed to wound this machine's alternatives setup somehow?
The text was updated successfully, but these errors were encountered: