Carlos García B.
Thu March 18, 2021 01:24 PM
Carlos García B.
Tue March 23, 2021 04:19 AM
SANKET RATHI
Tue March 23, 2021 07:04 AM
While upgrading from a previous AIX-rpm package to a newer version (4.15.1.1 from a 4.13.*, but I think the newer 4.15.1.2 has the same issue), I replaced the previous rte with the new one, but I lost the "zgrep" utility in the process (which I use a lot).
Checking it with other machine with the previous packages (and a working zgrep), I noticed that none of the rpm that I had installed provided the zgrep utility that was available under /opt/freeware (I know that gzip does include it, but I didn't have that rpm installed). It was included with AIX-rpm.rte itself (and it was reported in lslpp -f rpm.rte as part of the content in the 4.13.* version).
In the new rte package, there is no zgrep, only "zegrep" (checked with lslpp), but zegrep consists on a call to zgrep with the "-E" parameter. So out of the box, the new AIX-rpm.rte includes zegrep which uses a call to zgrep which is not included and does not work.
I think that zgrep utility should be included again (under the new path /usr/opt/rpm/bin/) or at least any dependencies to zgrep itself within the files in the AIX-rpm.rte package should be removed to avoid broken "binaries".
------------------------------
Carlos G.B.
------------------------------
After installing gzip package which included the zgrep command, I stumbled upon another failure to report a dependency: gzip.rpm includes its own zgrep "binary", but it needs the grep.rpm package. It does not mark that package as a dependency, but zgrep is using /opt/freeware/bin/grep internally (instead of the native AIX package), so it should be marking that package as a dependency in the install process (or use the native grep instead of the specific toolbox binary).
------------------------------
Carlos G.B.
------------------------------
Original Message
Original Message:
Sent: Thu March 18, 2021 01:23 PM
From: Carlos García B.
Subject: zgrep in AIX-rpm missing in latest versions
While upgrading from a previous AIX-rpm package to a newer version (4.15.1.1 from a 4.13.*, but I think the newer 4.15.1.2 has the same issue), I replaced the previous rte with the new one, but I lost the "zgrep" utility in the process (which I use a lot).
Checking it with other machine with the previous packages (and a working zgrep), I noticed that none of the rpm that I had installed provided the zgrep utility that was available under /opt/freeware (I know that gzip does include it, but I didn't have that rpm installed). It was included with AIX-rpm.rte itself (and it was reported in lslpp -f rpm.rte as part of the content in the 4.13.* version).
In the new rte package, there is no zgrep, only "zegrep" (checked with lslpp), but zegrep consists on a call to zgrep with the "-E" parameter. So out of the box, the new AIX-rpm.rte includes zegrep which uses a call to zgrep which is not included and does not work.
I think that zgrep utility should be included again (under the new path /usr/opt/rpm/bin/) or at least any dependencies to zgrep itself within the files in the AIX-rpm.rte package should be removed to avoid broken "binaries".
------------------------------
Carlos G.B.
------------------------------
Thank you Carlos for reporting the issue. Yes zgrep does not work with AIX grep and it has to use open source grep.
This is the reason zgrep is removed from rpm.rte also because it wad dependent on open source grep which is not available on AIX by default.
We will look if the dependency of grep to be added into gzip.
------------------------------
SANKET RATHI
------------------------------
Original Message
Original Message:
Sent: Tue March 23, 2021 04:19 AM
From: Carlos García B.
Subject: zgrep in AIX-rpm missing in latest versions
After installing gzip package which included the zgrep command, I stumbled upon another failure to report a dependency: gzip.rpm includes its own zgrep "binary", but it needs the grep.rpm package. It does not mark that package as a dependency, but zgrep is using /opt/freeware/bin/grep internally (instead of the native AIX package), so it should be marking that package as a dependency in the install process (or use the native grep instead of the specific toolbox binary).
------------------------------
Carlos G.B.
Original Message:
Sent: Thu March 18, 2021 01:23 PM
From: Carlos García B.
Subject: zgrep in AIX-rpm missing in latest versions
While upgrading from a previous AIX-rpm package to a newer version (4.15.1.1 from a 4.13.*, but I think the newer 4.15.1.2 has the same issue), I replaced the previous rte with the new one, but I lost the "zgrep" utility in the process (which I use a lot).
Checking it with other machine with the previous packages (and a working zgrep), I noticed that none of the rpm that I had installed provided the zgrep utility that was available under /opt/freeware (I know that gzip does include it, but I didn't have that rpm installed). It was included with AIX-rpm.rte itself (and it was reported in lslpp -f rpm.rte as part of the content in the 4.13.* version).
In the new rte package, there is no zgrep, only "zegrep" (checked with lslpp), but zegrep consists on a call to zgrep with the "-E" parameter. So out of the box, the new AIX-rpm.rte includes zegrep which uses a call to zgrep which is not included and does not work.
I think that zgrep utility should be included again (under the new path /usr/opt/rpm/bin/) or at least any dependencies to zgrep itself within the files in the AIX-rpm.rte package should be removed to avoid broken "binaries".
------------------------------
Carlos G.B.
------------------------------