Hi Hakim,
You can check this with command "cat ~/.rpmmacros"
I think you are having a different "_build_name_fmt" in your .rpmmacros file than the default one which is causing this issue.
%_build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
Instead of the default one.
# rpm --showrc | grep _build_name_fmt
-13: _build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{OS}.%%{ARCH}.rpm
------------------------------
SANGAMESH
------------------------------
Original Message:
Sent: Thu June 16, 2022 06:31 AM
From: Hakim BOUDJEMIL
Subject: Insallation unzip AIX7.2
Hi Sangamesh,
Thank for all
root@bu8z] /
# rpm --showrc | grep topdir
-13: _builddir %{_topdir}/BUILD
-13: _rpmdir %{_topdir}/RPMS
-13: _sourcedir %{_topdir}/SOURCES
-13: _specdir %{_topdir}/SPECS
-13: _srcrpmdir %{_topdir}/SRPMS
-13: _topdir %{_usrsrc}/creation_rpm
[root@bu8z] /
For Do you have .rpmmacros file in your users home path where _topdir is set to "/packages/aix/creation_rpm/" ?
I didn't not really understand your request and how I can answer it.
Hope to read you
Thank
Regards,
Hakim
------------------------------
HBO
Original Message:
Sent: Tue June 14, 2022 11:25 AM
From: SANGAMESH MALLAYYA
Subject: Insallation unzip AIX7.2
Hi Hakim,
Can you check what is the output of "rpm --showrc | grep topdir" ?
By default the _topdir macro is set as " _topdir %{_usrsrc}/packages" where usrsrc is /opt/freeware/src.
Do you have .rpmmacros file in your users home path where _topdir is set to "/packages/aix/creation_rpm/" ?
------------------------------
SANGAMESH
Original Message:
Sent: Tue June 14, 2022 09:51 AM
From: Hakim BOUDJEMIL
Subject: Insallation unzip AIX7.2
Hello Sanket,
Thank you very much for your help.
I don't urderstand what do you mean about differently than default AIX path ( what is this default path in AIX) /opt/freeware/packages ?? And probably this directory structure does not exist on your system.
The version of rpm is
# lslpp -l|grep rpm.rte
rpm.rte 4.15.1.3 COMMITTED RPM Package Manager
rpm.rte 4.15.1.3 COMMITTED RPM Package Manager
# rpm -q AIX-rpm --provides
package AIX-rpm is not installed
Concretely, what should I modify to have AIX-rpm installed please ?
Thanks a lot for your availability
HBO
------------------------------
Hakim BOUDJEMIL
Original Message:
Sent: Mon June 13, 2022 06:28 AM
From: SANKET RATHI
Subject: Insallation unzip AIX7.2
You are not able to create virtual rpm package that provides AIX libraries and files.
updtvpkg command is used to build virtual rpm package AIX-rpm.
In your case updtvpkg command is failing because looks like you have set rpm dirs path (/packages/aix/creation_rpm/) differently than default AIX.
And probably this directory structure does not exist on your system.
------------------------------
SANKET RATHI
Original Message:
Sent: Thu June 09, 2022 06:15 AM
From: Hakim BOUDJEMIL
Subject: Insallation unzip AIX7.2
Hello,
I need your help to fix this issue when we want to install unzip in AIX 7.2.
oslevel : 7200-02-02-1806
# rpm -i --test unzip-6.0-3.aix6.1.ppc.rpm
error: Failed dependencies:
/bin/sh is needed by unzip-6.0-3.ppc
libc.a(shr.o) is needed by unzip-6.0-3.ppc
But
# ls -l /bin/sh
-r-xr-xr-x 5 bin bin 313906 Nov 28 2017 /bin/sh
We updated rpm.rte from 4.13.0.2 to 4.15.1.3
Installation Summary
--------------------
Name Level Part Event Result
-------------------------------------------------------------------------------
rpm.rte 4.15.1.3 USR APPLY SUCCESS
rpm.rte 4.15.1.3 ROOT APPLY SUCCESS
After that, we have done
# rpm -qa
[root@bu8z] /source/unzip
# /usr/sbin/updtvpkg
Please wait...error: open of /packages/aix/creation_rpm/RPMS/ppc/AIX-rpm-7.2.2.15-1.aix7.2.ppc.rpm failed: No such file or directory
warning: line 8: It's not recommended to have unversioned Obsoletes: Obsoletes: SysProvides
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Mq2aea
+ umask 022
+ cd /packages/aix/creation_rpm/BUILD
+ RPM_EC=0
+ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Mu2aeb
+ umask 022
+ cd /packages/aix/creation_rpm/BUILD
+ RPM_EC=0
+ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Mu2aec
+ umask 022
+ cd /packages/aix/creation_rpm/BUILD
+ RPM_EC=0
+ jobs -p
+ exit 0
Processing files: AIX-rpm-7.2.2.15-1.ppc
Wrote: /packages/aix/creation_rpm/SRPMS/AIX-rpm-7.2.2.15-1.src.rpm
Wrote: /packages/aix/creation_rpm/RPMS/ppc/AIX-rpm-7.2.2.15-1.ppc.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.M32aed
+ umask 022
+ cd /packages/aix/creation_rpm/BUILD
+ RPM_EC=0
+ jobs -p
+ exit 0
[root@bu8z] /source/unzip
# rpm -qa
[root@bu8z] /source/unzip
#
We have also done updtvpkg debug with sh -x /usr/sbin/updtvpkg in attachment
Can you please help us ?
Thanks in advance
Regards
HBO