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.  tmux with ncurses

    Posted Thu December 10, 2020 01:33 PM

    Would it be possible to build tmux with ncurses instead of AIX curses.  I was trying to use the recently released tmux-3.1b-1.aix6.1.ppc.rpm with a locally installed version of byobu, but the colors were not working like the version of tmux that I had compiled using ncurses6.

    Also when I try to build tmux-3.1b-1.src.rpm on AIX 7200-04-02-2016 with rpm.rte 4.15.1.1 it ends with this error:

    + echo Patch #0 (tmux-3.1b-aix.patch):
    Patch #0 (tmux-3.1b-aix.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p0 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/tmux-3.1b-aix.patch
    patching file ./server-client.c
    Hunk #1 FAILED at 334.
    1 out of 1 hunk FAILED -- saving rejects to file ./server-client.c.rej
    patching file ./err.c
    patching file ./tty.c
    Hunk #1 succeeded at 779 (offset 49 lines).
    Hunk #2 succeeded at 794 (offset 49 lines).
    Hunk #3 succeeded at 945 (offset 49 lines).
    error: Bad exit status from /var/tmp/rpm-tmp.i7Vaea (%prep)


    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.i7Vaea (%prep)



    ------------------------------
    Edward Davignon
    ------------------------------

    #AIXOpenSource


  • 2.  RE: tmux with ncurses

    Posted Fri December 11, 2020 01:57 AM
    Thanks for reporting it.
    Yes, we will build tmux with ncurses and update Toolbox. 
    Regarding the patch failure, I guess the fuzz level has to be increased. 
    You can redefine the fuzz level by setting the below in the top of the spec file.
    %define _default_patch_fuzz 2

    We will fix this also in the next update.

    ------------------------------
    Ayappan P
    ------------------------------