Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  gettext source build fails rpm version check

    Posted Mon June 11, 2018 10:57 PM

    Originally posted by: Papajair


    I downloaded the gettext-0.19.8.1-1.src.rpm and attempted to build on AIX 7.1 TL4 SP4.   When I invoke rpmbuild I get the following message:

    # rpm -ba --define 'dotests 0' gettext-0.19.8.1-1.spec
    Please use rpmbuild command to build rpm packages using rpm 4 or higher versions.
     

    The version I have installed is:

    # rpm --version
    RPM version 4.13.0.1
    # rpmbuild --version
    RPM version 4.13.0.1
     

    This version of rpm was installed from the pm.rte.4.13.0.3 file.

    Why is the build failing when I have a version higher than 4 installed?


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 2.  Re: gettext source build fails rpm version check

    Posted Tue June 12, 2018 03:16 AM

    Originally posted by: AyappanP


    Commands have changed in the newer rpm versions.

    As the error message clearly says you need to use "rpmbuild" command to trigger the build.

    rpmbuild -ba --define 'dotests 0' gettext-0.19.8.1-1.spec


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 3.  Re: gettext source build fails rpm version check

    Posted Tue June 12, 2018 12:22 PM

    Originally posted by: Papajair


    @AyappanP 43b0c085-7945-4b4f-8d26-6f7252a212b8, thanks but I displayed the rpmbuild command as I entered it above.   I am not sure what happened at this point as a subsequent attempts to build did not yield the same error.   Most of the build executed but it did abort later on in the document section:

    Processing files: gettext-devel-0.19.8.1-1.ppc
    Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.9RU7ae
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + cd gettext-0.19.8.1
    + DOCDIR=/var/tmp/gettext-0.19.8.1-1.ppc/opt/freeware/doc/gettext-devel-0.19.8.1
    + export DOCDIR
    + /usr/bin/mkdir -p /var/tmp/gettext-0.19.8.1-1.ppc/opt/freeware/doc/gettext-devel-0.19.8.1
    + cp -pr gettext-runtime/man/*.3.html /var/tmp/gettext-0.19.8.1-1.ppc/opt/freeware/doc/gettext-devel-0.19.8.1
    cp: gettext-runtime/man/*.3.html: No such file or directory
    error: Bad exit status from /var/tmp/rpm-tmp.9RU7ae (%doc)
    error: File not found by glob: /opt/freeware/src/packages/BUILD/gettext-0.19.8.1/gettext-runtime/man/*.3.html
    error: File not found: /var/tmp/gettext-0.19.8.1-1.ppc/opt/freeware/doc/gettext-devel-0.19.8.1/ChangeLog
    error: File not found by glob: /opt/freeware/src/packages/BUILD/gettext-0.19.8.1/gettext-runtime/intl-java/javadoc*


    RPM build errors:
        Bad exit status from /var/tmp/rpm-tmp.9RU7ae (%doc)
        File not found by glob: /opt/freeware/src/packages/BUILD/gettext-0.19.8.1/gettext-runtime/man/*.3.html
        File not found: /var/tmp/gettext-0.19.8.1-1.ppc/opt/freeware/doc/gettext-devel-0.19.8.1/ChangeLog
        File not found by glob: /opt/freeware/src/packages/BUILD/gettext-0.19.8.1/gettext-runtime/intl-java/Javadoc*

    This is the source rpm for gettext supplied on the AIX Toolbox for Linux Applications page.

    Why am I receiving this new error?


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 4.  Re: gettext source build fails rpm version check

    Posted Wed June 13, 2018 08:08 AM

    Originally posted by: AyappanP


    Seems to be a bug in the spec file. 

    %files devel

    %defattr(-,root,system,-)
    %doc 32bit/gettext-runtime/man/*.3.html ChangeLog 
    %doc 32bit/gettext-runtime/intl-java/javadoc*

     

    The "32bit" directory is missed out there. 

    By the way, why are you building from the source ? You can directly get the binary rpm from AIX Toolbox site. 


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 5.  Re: gettext source build fails rpm version check

    Posted Wed June 13, 2018 10:36 AM

    Originally posted by: Papajair


    @AyappanP 43b0c085-7945-4b4f-8d26-6f7252a212b8, thanks for the reply.  I am attempting to build gettext due to a build failure I had with gnutls-3.5.14-1.src.rpm as follows:

    I attempted a build of gnutls-3.5.14-1 from the spec file but it failed due to the following error:

      CCLD     libgnutls.la
    grep: can't open /opt/freeware/lib/libintl.la
    /opt/freeware/bin/sed: can't read /opt/freeware/lib/libintl.la: No such file or directory
    libtool:   error: '/opt/freeware/lib/libintl.la' is not a valid libtool archive
    gmake[4]: *** [Makefile:1733: libgnutls.la] Error 1
    gmake[4]: Leaving directory '/opt/freeware/src/packages/BUILD/gnutls-3.5.14/64bit/lib'
    gmake[3]: *** [Makefile:1949: all-recursive] Error 1
    gmake[3]: Leaving directory '/opt/freeware/src/packages/BUILD/gnutls-3.5.14/64bit/lib'
    gmake[2]: *** [Makefile:1636: all] Error 2
    gmake[2]: Leaving directory '/opt/freeware/src/packages/BUILD/gnutls-3.5.14/64bit/lib'
    gmake[1]: *** [Makefile:1463: all-recursive] Error 1
    gmake[1]: Leaving directory '/opt/freeware/src/packages/BUILD/gnutls-3.5.14/64bit'
    gmake: *** [Makefile:1391: all] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.NGkMab (%build)

    The runtime rpm for gettext doesn't supply the libintl.la file.

     

    Could this be added to the runtime rpm for gettext?


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 6.  Re: gettext source build fails rpm version check

    Posted Wed June 13, 2018 11:00 AM

    Originally posted by: AyappanP


    Okay. I think you are building gnutls because of the other forum issue you have raised titled "CUPS web interface not working..." . The team is working on that issue.

    You will encounter issues if you try building the rpms yourself. If you still want to build it yourself, i think you can install gettext-devel rpm package which has this libintl.la file.

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 7.  Re: gettext source build fails rpm version check

    Posted Wed June 13, 2018 11:06 AM

    Originally posted by: Papajair


    @AyappanP 43b0c085-7945-4b4f-8d26-6f7252a212b8, thanks I already installed the gettext-devel package and worked around that problem.


    #AIXOpenSource
    #AIX-Open-Source-Software