pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: tmux build failure on FreeBSD 9.2

On Tue, 19 Nov 2013 19:03:39 +0900, Emil Skoeldberg <> 


On Tue, Nov 19, 2013 at 10:29:17AM +0900, OBATA Akio wrote:

On Tue, 19 Nov 2013 00:22:30 +0900, Emil Skoeldberg <> 

>The build of tmux (current pkgsrc) on FreeBSD 9.2 fails with a curses
>related error:

Are you using pkgsrc-2013Q3 or HEAD?
It should not be happened in HEAD
(pkgsrc/mk/ rev1.3).

I'm using HEAD, and I do have pkgsrc/mk/ rev1.3.

The only nonstandard thing about my setup is that I'm using clang as
the pkgsrc compiler.

(I discovered not long after posting the very recent thread regarding
tmux on MacOSX, and felt a bit silly, but maybe there is another issue
here after all.).

I see...

1. FreeBSD have libtinfo and libcurses, not libterminfo.
2. detects libtinfo as builtin terminfo.
3. devel/tmux only try to find libterminfo and libcurses as terminfo library.
4. will take care about reverse situaion
   (builtin libterminfo is found, package try to use libtinfo),
   but this case (builtin libtinfo is found package try to use libterminfo)
   is not handled well (with BUILDLINK_TRANSFORM)

Following should resolve the issue, but cannot handle for the case
package will not try to use libterminfo (only libtinfo and/or libcurses).
I don't know such case exists in pkgsrc or not (roy, do you know?)

RCS file: /cvsroot/pkgsrc/mk/,v
retrieving revision 1.4
diff -u -r1.4
---      19 Nov 2013 11:43:19 -0000      1.4
+++      19 Nov 2013 11:44:33 -0000
@@ -74,10 +74,11 @@
 .if empty(TERMINFO_TYPE:Mnone)
 .  for _tcap_ in ${_TERMINFO_TYPES}
 .    if empty(TERMINFO_TYPE:M${_tcap_})
-BUILDLINK_TRANSFORM+=          l:${_tcap_}:${BUILDLINK_LIBNAME.terminfo}
+BUILDLINK_TRANSFORM+=          rm:${_tcap_}
 .    endif
 .  endfor
+BUILDLINK_TRANSFORM+=          l:terminfo:${BUILDLINK_LIBNAME.terminfo}


OBATA Akio /

Home | Main Index | Thread Index | Old Index