Please login or register. December 10, 2018, 01:38:31 AM

Author Topic: gettext-0.19.8.1-1.aix6.1.ppc.rpm issue?  (Read 261 times)

0 Members and 1 Guest are viewing this topic.

Teej

  • Jr. Member
  • **
  • Posts: 9
  • Karma: +1/-0
gettext-0.19.8.1-1.aix6.1.ppc.rpm issue?
« on: October 02, 2018, 11:46:35 AM »
There was a weird issue with installation of gettext that can be reproduced.  I did the following:

Code: [Select]
$ sudo rpm -Uvh gettext-0.19.8.1-1.aix6.1.ppc.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:gettext-0.19.8.1-1               ################################# [ 50%]
Cleaning up / removing...
   2:gettext-0.17-8                   ################################# [100%]
Could not load program /usr/opt/freeware/bin/rpm:
        Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
        Member libintl.so.8 is not found in archive
rpm_share: 0645-007 ATTENTION: get_rpm_inst_root_list() returned an unexpected result.
rpm_share: 0645-007 ATTENTION: update_inst_root() returned an unexpected result.
$

After this point, RPM will not behave, throwing the same error for the libintl.a file.  I also see the following:

Code: [Select]
[/opt/freeware/lib] $ ls -al *intl*
-rwxr-xr-x    1 root     system       374612 Dec 20 2010  libintl.a
-rwxr-xr-x    1 root     system       374612 Dec 20 2010  libintl.a.savgettext

Only way to resolve is to find a separate server, and do the following:

Code: [Select]
$ rpm2cpio gettext-0.19.8.1-1.aix6.1.ppc.rpm | cpio -dimuv
And dig out the libintl.a for 32 bit, back up the existing libintl.a, and park the file from gettext RPM to this directory (/opt/freeware/lib), and RPM is back to working order.

Is this a known behavior, and can it be addressed by updating the RPM accordingly?  Thanks.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
Re: gettext-0.19.8.1-1.aix6.1.ppc.rpm issue?
« Reply #1 on: October 02, 2018, 06:58:52 PM »
Please show me:
lslpp -L | grep aixtools

and

rpm -qa

See below: I do not use RPM packaging. Only have what "rpm.rte" includes.

Code: [Select]
buildbot@x064:[/home/buildbot]oslevel -s
7100-03-09-1717
buildbot@x064:[/home/buildbot]rpm -qa
AIX-rpm-7.1.4.0-1
buildbot@x064:[/home/buildbot]lslpp -L | grep aixtools | grep rte
  aixtools.attcp.rte         0.6.8.0    C     F    aixtools attcp 22-Feb-2018
  aixtools.buildaix.rte      2.1.2.0    C     F    aixtools buildaix 01-May-2018
  aixtools.curl.rte         7.61.0.0    C     F    aixtools curl 22-Jul-2018
  aixtools.expat.rte         2.2.5.0    C     F    aixtools expat 12-Nov-2017
  aixtools.git.rte          2.18.0.0    C     F    aixtools git 02-Aug-2018
  aixtools.gnu.gettext.rte  0.19.8.1    C     F    built 21-Aug-2016 1821 UTC
  aixtools.gnu.libiconv.rte
  aixtools.openbsd.openssh.rte
  aixtools.python3.rte       3.7.0.1    C     F    python3 25-Jul-2018
  aixtools.zlib.rte         1.2.11.1    C     F    aixtools zlib 02-Feb-2017
  static.libffi.rte          3.2.1.0    C     F    aixtools libffi 08-Jan-2018

Teej

  • Jr. Member
  • **
  • Posts: 9
  • Karma: +1/-0
Re: gettext-0.19.8.1-1.aix6.1.ppc.rpm issue?
« Reply #2 on: October 02, 2018, 07:18:15 PM »
No results for first command, second command list quite a few results.

Code: [Select]
$ sudo lslpp -L | grep aixtools
Password:
$ sudo rpm -qa
TWeagent-8.6.0.1-0.ppc
conserver-8.1.7-2.ppc
gnutls-2.12.20-1.ppc
libgcrypt-1.5.0-1.ppc
libgpg-error-1.10-3.ppc
libiconv-1.14-2.ppc
libtasn1-3.3-1.ppc
lzo-2.06-2.ppc
nettle-2.7-2.ppc
p11-kit-0.14-2.ppc
pkg-config-0.25-3.ppc
rsync-3.0.6-1.ppc
teagent-realtime-0.9-1.ppc
wget-1.9.1-1.ppc
libffi-3.2.1-1.ppc
libgcc-6.3.0-1.ppc
mpfr-3.1.2-3.ppc
gcc-cpp-6.3.0-1.ppc
libstdc++-devel-6.3.0-1.ppc
gcc-gfortran-6.3.0-1.ppc
bzip2-1.0.6-2.ppc
expat-2.2.4-1.ppc
glib2-2.56.1-2.ppc
ncurses-6.1-1.ppc
libgomp-6.3.0-1.ppc
xz-libs-5.2.3-1.ppc
zlib-1.2.11-1.ppc
lua-5.3.4-1.ppc
openldap-2.4.45-3.ppc
httpd-2.4.34-1.ppc
sqlite-3.23.0-1.ppc
readline-7.0-5.ppc
intltool-0.51.0-2.noarch
python-2.7.15-1.ppc
python-setuptools-0.9.8-2.noarch
python-pip-10.0.1-1.noarch
python-backports_abc-0.5-1.noarch
python-pyasn1-0.2.3-1.noarch
python-dateutil-2.6.0-1.noarch
python-xml-0.8.4-1.ppc
krb5-libs-1.16.1-2.ppc
python-passlib-1.7.1-1.noarch
curl-7.9.3-2.ppc
expect-5.42.1-3.ppc
gnutls-devel-2.12.20-1.ppc
libgcrypt-devel-1.5.0-1.ppc
libgpg-error-devel-1.10-3.ppc
libssh2-1.4.3-2.ppc
libtasn1-devel-3.3-1.ppc
lzo-devel-2.06-2.ppc
openCIMOM-0.8-1.noarch
openssl-1.0.1f-1.ppc
pci.df1000fa-1-191A5.noarch
tcl-8.4.7-3.ppc
tk-8.4.7-3.ppc
AIX-rpm-7.1.4.1-11.ppc
libffi-devel-3.2.1-1.ppc
gcc-6.3.0-1.ppc
libmpc-1.0.3-1.ppc
libstdc++-6.3.0-1.ppc
gcc-c++-6.3.0-1.ppc
bash-4.4-3.ppc
db-6.2.32-1.ppc
gdbm-1.12-1.ppc
gmp-6.1.2-1.ppc
info-6.3-1.ppc
libunistring-0.9.9-1.ppc
zlib-devel-1.2.11-1.ppc
libxml2-2.9.5-1.ppc
cyrus-sasl-2.1.26-3.ppc
pcre-8.33-1.ppc
mod_ssl-2.4.34-1.ppc
sqlite-doc-3.23.0-1.ppc
gettext-0.19.8.1-1.ppc
perl-5.28.0-1.ppc
python-docs-2.7.15-1.ppc
libxml2-python-2.9.5-1.ppc
python-babel-0.9.6-1.noarch
python-six-1.10.0-1.noarch
python-cryptography-1.8.1-1.noarch
python-decorator-4.1.2-1.noarch
python-pycrypto-2.6.1-1.ppc
krb5-pkinit-openssl-1.16.1-2.ppc
$

Edit:  Adding oslevel:

Code: [Select]
$ oslevel -s
7100-05-01-1731

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
Re: gettext-0.19.8.1-1.aix6.1.ppc.rpm issue?
« Reply #3 on: October 02, 2018, 07:24:17 PM »
This is what my packages look like:

Code: [Select]
root@x070:[/]oslevel -s
7100-04-05-1720
root@x070:[/]rpm -qa
AIX-rpm-7.1.4.0-1
root@x070:[/]lslpp -L | grep aixtools
  aixtools.gnu.bash.adt     4.4.19.0    C     F    gnu bash ADT files
  aixtools.gnu.bash.man.en_US
  aixtools.gnu.bash.rte     4.4.19.0    C     F    gnu bash 07-Feb-2018
  aixtools.gnu.bash.share   4.4.19.0    C     F    gnu bash universal files
root@x070:[/]ls -l /data/httpd/tools/*python.2.7.15*
-rw-r--r--    1 root     1954       51914752 May 11 15:52 /data/httpd/tools/aixtools.python.2.7.15.0.I
root@x070:[/]installp -d /data/httpd/tools/aixtools.python.2.7.15.0.I -aY all
+-----------------------------------------------------------------------------+
                    Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...

SUCCESSES
---------
  Filesets listed in this section passed pre-installation verification
  and will be installed.

  Selected Filesets
  -----------------
  aixtools.python.adt 2.7.15.0                # python ADT files
  aixtools.python.man.en_US 2.7.15.0          # python man pages
  aixtools.python.rte 2.7.15.0                # python 11-May-2018

  << End of Success Section >>

+-----------------------------------------------------------------------------+
                   BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
    3  Selected to be installed, of which:
        3  Passed pre-installation verification
  ----
    3  Total to be installed

+-----------------------------------------------------------------------------+
                         Installing Software...
+-----------------------------------------------------------------------------+

installp:  APPLYING software for:
        aixtools.python.rte 2.7.15.0
        aixtools.python.man.en_US 2.7.15.0
        aixtools.python.adt 2.7.15.0

Restoring files, please wait.
3071 files restored.
+------- ensurepip: embedded install of pip and setuptools -------------------+
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Successfully installed pip-9.0.3 setuptools-39.0.1
Finished processing all filesets.  (Total time:  1 mins 13 secs).

+-----------------------------------------------------------------------------+
                                Summaries:
+-----------------------------------------------------------------------------+

Installation Summary
--------------------
Name                        Level           Part        Event       Result
-------------------------------------------------------------------------------
aixtools.python.rte         2.7.15.0        USR         APPLY       SUCCESS
aixtools.python.man.en_US   2.7.15.0        USR         APPLY       SUCCESS
aixtools.python.adt         2.7.15.0        USR         APPLY       SUCCESS
root@x070:[/]type pip
pip is /opt/bin/pip
root@x070:[/]pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
pip (9.0.3)
setuptools (39.0.1)
You are using pip version 9.0.3, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
root@x070:[/]

Code: [Select]
root@x070:[/]pip install --upgrade pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl (1.3MB)
    100% |################################| 1.3MB 269kB/s
Installing collected packages: pip
  Found existing installation: pip 9.0.3
    Uninstalling pip-9.0.3:
      Successfully uninstalled pip-9.0.3
Successfully installed pip-18.0

For what it is worth, I dislike 7100-TL5. They finally upgraded libz, but they also added readline-6.0 and my short experience is that that breaks things.

So, if you would like to try my Python2 packaging see: http://www.aixtools.net/index.php/python2

p.s. If you use my packaging add (better prefix) PATH with /opt/bin, e.g.

Code: [Select]
root@x070:[/]grep PATH /etc/environment
# If /usr/ucb is at the beginning of the PATH the BSD version of commands will
PATH=/opt/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java6/jre/bin:/usr/java6/bin
LOCPATH=/usr/lib/nls/loc
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/%l.%c/%N:/usr/lib/nls/msg/%l.%c/%N.cat

And, probably, remove PATH from any .profile you have (I just remove ~/.profile normally)