ZOSOpenTools / meta

Meta repository to tie together the various underlying z/OS Open Source tools repositories here
https://zosopentools.github.io/meta/
Apache License 2.0
37 stars 25 forks source link

Issue with upgrading libiconv and zlib #614

Open gngrossi opened 7 months ago

gngrossi commented 7 months ago

After upgrading meta from v0.8.0 to v0.8.1, I tried to upgrade other available packages.

bash-5.2$ zopen list --upgradeable Package Installed Available Latest Tag libiconv 1.17.20231115_151102 1.17 master.20231115_100536 zlib heads.v1.3.20231122_215452 1.3 develop.20231123_025537

bash-5.2$ zopen upgrade libiconv

bash-5.2$ zopen upgrade zlib

IgorTodorovskiIBM commented 7 months ago

I believe this is happening because we have two release lines for libiconv and zlib. A DEV and STABLE release line. It should default to STABLE though.

IgorTodorovskiIBM commented 7 months ago

Looks like we're not checking the tag in zopen-query as we do in install: https://github.com/ZOSOpenTools/meta/blob/main/bin/zopen-install#L206

DevonianTeuchter commented 6 months ago

Note the "--upgradeable" parameter is undocumented (as in not in --help output) and not for general usage at this time as it has issues in it's current form [it sort of works in some scenarios]

gngrossi commented 6 months ago

For now, what is the command to list installed packages available for upgrade? thanks

peter-sylvester commented 5 months ago

I'd like to share a little miniscript that I use to upgrade. The reason for removing old versions is space. Of course, from time to time a zopen list to find 'Not installed' stuff.

for p in zopen list --upgradeable --no-header --no-version|xargs;do echo " $p ";zopen upgrade -y $p;zopen clean -u $p;zopen clean -c;done

IgorTodorovskiIBM commented 5 months ago

I'd like to share a little miniscript that I use to upgrade. The reason for removing old versions is space. Of course, from time to time a zopen list to find 'Not installed' stuff.

for p in zopen list --upgradeable --no-header --no-version|xargs;do echo " $p ";zopen upgrade -y $p;zopen clean -u $p;zopen clean -c;done

Thanks, btw you can use ``` for formatting code (https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#fenced-code-blocks)

peter-sylvester commented 5 months ago

Ouups, my simple copy/paste ruined the example. The highlighted command is enclosed in backquotes. Or, I kind of have a rather negative opinion of (aka often hate) these smart editors. :-) The fix is left as an exercise to the benevolent readers.

gngrossi commented 4 months ago

I was able to upgrade zlib but can't upgrade libiconv or am I running the latest? thanks

bash-5.2$ zopen upgrade zlib

--

bash-5.2$ zopen list --upgradeable Package Installed Available Latest Tag libiconv 1.17.20240124_171511 1.17 master.20240124_171233

bash-5.2$ zopen upgrade libiconv

gngrossi commented 2 months ago

How do I get libiconv upgraded/installed? Any important updates? thanks

bash-5.2$ zopen list --upgradeable Package Installed Available Latest Tag libiconv 1.17.20240124_171511 1.17 master.20240404_133917

bash-5.2$ zopen install libiconv

gngrossi commented 1 month ago

Tried to remove/install to get the latest.

09:24:59 RC=(0) [SYSA] bash-5.2$ zopen remove libiconv Removing package: libiconv

09:26:02 RC=(0) [SYSA] bash-5.2$ zopen install libiconv

09:26:42 RC=(0) [SYSA] bash-5.2$ which iconv /hewitt/zopentools/zopen_repo/usr/local/bin/iconv

09:27:07 RC=(0) [SYSA] bash-5.2$ iconv --version iconv (GNU libiconv 1.17) Copyright (C) 2000-2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Bruno Haible.

09:27:33 RC=(0) [SYSA] bash-5.2$ zopen list --upgradeable Package Installed Available Latest Tag libiconv 1.17.20240124_171511 1.17 master.20240404_133917 09:28:12 RC=(0) [SYSA] bash-5.2$

gngrossi commented 3 weeks ago

How does libiconv get upgraded?

bash-5.2$ zopen list --upgradeable Package Installed Available Latest Tag libiconv 1.17.20240124_171511 1.17 master.20240611_220856

bash-5.2$ zopen upgrade libiconv

gngrossi commented 2 days ago

image