/usr/sbin/updtvpkg does have export LANG=C but only when en_US is set.
I think it can simply export LANG=C irrespective of users LANG set.
We will check and see if there was any reason to verify only en_US and modify the script accordingly.
Original Message:
Sent: Mon September 23, 2024 08:45 AM
From: Vincent Febvre
Subject: rpm.rte installation fails to create AIX-rpm package (updtvpkg error)
This is a respectable opinion, but AIX is still a multilingual OS.
Besides, this is a case of the rpm.rte post-install script failing to handle the output of the rpm executable that has just been installed !
This is definitely a bug.
------------------------------
Vincent Febvre
Original Message:
Sent: Mon September 23, 2024 04:30 AM
From: C- -T
Subject: rpm.rte installation fails to create AIX-rpm package (updtvpkg error)
seems more related setting aix language to francais, which is weird in itself...unix systems should speak english.
------------------------------
I regret starting this entire conversation
Original Message:
Sent: Thu September 19, 2024 10:31 AM
From: Vincent Febvre
Subject: rpm.rte installation fails to create AIX-rpm package (updtvpkg error)
Hello,
This must have already been reported before and fixed, but I could not find any mention of this issue.
Basically, the rpm.rte post-install scripts fails to create the AIX-rpm package (but reports an overall sucess) when the locale is not set to English or C.
# env | grep LANGLANG=fr_FR# rpm -qa# /usr/sbin/updtvpkg/usr/sbin/updtvpkg: line 113: release = le paquet AIX-rpm n'est pas installé + 1 : arithmetic syntax error# rpm -qa# LANG=C /usr/sbin/updtvpkgPlease wait...# rpm -qaAIX-rpm-7.3.2.2-1.ppc#
The problem here being a string comparison between error messages in different languages.
#If for some reason AIX-rpm installation failed then current_release#will be set to the error message. This will avoid displaying the error message#if updtvpkg is run manually later.if [[ "$current_release" == "package AIX-rpm is not installed" ]]then current_release=0fi(( release = $current_release + 1 ))
I have seen this with rpm.rte 4.15.1.1011 (on AIX 7.2.5.8) and 4.18.1.2002 (on AIX 7.3.2.2).
No such problem when rpm.rte is installed from the "install dnf" script as it sets LANG=C.
Kind Regards,
Vincent
------------------------------
Vincent Febvre
------------------------------
#AIXOpenSource