Bug 155909 - [PATCH] sysutils/tmux: fix tmux.conf location, support libevent2
Summary: [PATCH] sysutils/tmux: fix tmux.conf location, support libevent2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Wen Heping
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-24 10:20 UTC by Martin Matuska
Modified: 2011-05-25 01:31 UTC (History)
1 user (show)

See Also:


Attachments
tmux-1.4_5.patch (2.55 KB, patch)
2011-03-24 10:20 UTC, Martin Matuska
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Matuska freebsd_committer freebsd_triage 2011-03-24 10:20:00 UTC
- tmux.conf should be read from ${PREFIX}/etc/tmux.conf
- add support for linking against libevent2 (static and dynamic)

Port maintainer (wen@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-03-24 10:20:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wen

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Mark Felder freebsd_committer freebsd_triage 2011-03-24 14:29:05 UTC
This isn't building for me. It built libevent2 but then ended up erroring  
like this:


===>  Configuring for tmux-1.4_5
Configured for FreeBSD
===>  Building for tmux-1.4_5
cc -iquote.   -O2 -pipe -I/usr/local/include/event2/compat  
-fno-strict-aliasing  -DBUILD="\"1.4\"" -c attributes.c -o attributes.o
In file included from tmux.h:30,
                  from attributes.c:23:
/usr/local/include/event2/compat/event.h:165:33: error:  
event2/event-config.h: No such file or directory
In file included from /usr/local/include/event2/compat/event.h:178,
                  from tmux.h:30,
                  from attributes.c:23:
/usr/local/include/event2/compat/evutil.h:29:25: error: event2/util.h: No  
such file or directory
In file included from tmux.h:30,
                  from attributes.c:23:
/usr/local/include/event2/compat/event.h:191:33: error:  
event2/event_struct.h: No such file or directory
/usr/local/include/event2/compat/event.h:192:26: error: event2/event.h: No  
such file or directory
/usr/local/include/event2/compat/event.h:193:33: error:  
event2/event_compat.h: No such file or directory
/usr/local/include/event2/compat/event.h:194:27: error: event2/buffer.h:  
No such file or directory
/usr/local/include/event2/compat/event.h:195:34: error:  
event2/buffer_compat.h: No such file or directory
/usr/local/include/event2/compat/event.h:196:32: error:  
event2/bufferevent.h: No such file or directory
/usr/local/include/event2/compat/event.h:197:39: error:  
event2/bufferevent_struct.h: No such file or directory
/usr/local/include/event2/compat/event.h:198:39: error:  
event2/bufferevent_compat.h: No such file or directory
/usr/local/include/event2/compat/event.h:199:24: error: event2/tag.h: No  
such file or directory
/usr/local/include/event2/compat/event.h:200:31: error:  
event2/tag_compat.h: No such file or directory
In file included from attributes.c:23:
tmux.h:830: error: field 'name_timer' has incomplete type
tmux.h:1032: error: field 'key_timer' has incomplete type
tmux.h:1093: error: field 'event' has incomplete type
tmux.h:1117: error: field 'repeat_timer' has incomplete type
tmux.h:1139: error: field 'identify_timer' has incomplete type
tmux.h:1142: error: field 'message_timer' has incomplete type
*** Error code 1

Stop in /usr/ports/sysutils/tmux/work/tmux-1.4.
*** Error code 1

Stop in /usr/ports/sysutils/tmux.
*** Error code 1

Stop in /usr/ports/sysutils/tmux.

===>>> make failed for sysutils/tmux
===>>> Aborting update

===>>> Installation of devel/libevent2 (libevent2-2.0.10_1) complete


===>>> You can restart from the point of failure with this command line:
        portmaster <flags> sysutils/tmux



Regards,



Mark
Comment 3 Martin Matuska freebsd_committer freebsd_triage 2011-03-24 15:02:54 UTC
Yes, there is an additional -I${LOCALBASE}/include missing for libevent2:

+.if defined(WITH_LIBEVENT2)
+CFLAGS+=        -I${LOCALBASE}/include/event2/compat -I${LOCALBASE}/include
+LDFLAGS+=       -L${LOCALBASE}/lib/event2
+.else
+CFLAGS+=        -I${LOCALBASE}/include
+LDFLAGS+=       -L${LOCALBASE}/lib
+.endif
+
+MAKE_ENV+=      LDFLAGS="${LDFLAGS}"
+


DÅa 24.03.2011 15:29, Mark Felder  wrote / napísal(a):
> This isn't building for me. It built libevent2 but then ended up
> erroring like this:
> 
> 
> ===>  Configuring for tmux-1.4_5
> Configured for FreeBSD
> ===>  Building for tmux-1.4_5
> cc -iquote.   -O2 -pipe -I/usr/local/include/event2/compat
> -fno-strict-aliasing  -DBUILD="\"1.4\"" -c attributes.c -o attributes.o
> In file included from tmux.h:30,
>                  from attributes.c:23:
> /usr/local/include/event2/compat/event.h:165:33: error:
> event2/event-config.h: No such file or directory
> In file included from /usr/local/include/event2/compat/event.h:178,
>                  from tmux.h:30,
>                  from attributes.c:23:
> /usr/local/include/event2/compat/evutil.h:29:25: error: event2/util.h:
> No such file or directory
> In file included from tmux.h:30,
>                  from attributes.c:23:
> /usr/local/include/event2/compat/event.h:191:33: error:
> event2/event_struct.h: No such file or directory
> /usr/local/include/event2/compat/event.h:192:26: error: event2/event.h:
> No such file or directory
> /usr/local/include/event2/compat/event.h:193:33: error:
> event2/event_compat.h: No such file or directory
> /usr/local/include/event2/compat/event.h:194:27: error: event2/buffer.h:
> No such file or directory
> /usr/local/include/event2/compat/event.h:195:34: error:
> event2/buffer_compat.h: No such file or directory
> /usr/local/include/event2/compat/event.h:196:32: error:
> event2/bufferevent.h: No such file or directory
> /usr/local/include/event2/compat/event.h:197:39: error:
> event2/bufferevent_struct.h: No such file or directory
> /usr/local/include/event2/compat/event.h:198:39: error:
> event2/bufferevent_compat.h: No such file or directory
> /usr/local/include/event2/compat/event.h:199:24: error: event2/tag.h: No
> such file or directory
> /usr/local/include/event2/compat/event.h:200:31: error:
> event2/tag_compat.h: No such file or directory
> In file included from attributes.c:23:
> tmux.h:830: error: field 'name_timer' has incomplete type
> tmux.h:1032: error: field 'key_timer' has incomplete type
> tmux.h:1093: error: field 'event' has incomplete type
> tmux.h:1117: error: field 'repeat_timer' has incomplete type
> tmux.h:1139: error: field 'identify_timer' has incomplete type
> tmux.h:1142: error: field 'message_timer' has incomplete type
> *** Error code 1
> 
> Stop in /usr/ports/sysutils/tmux/work/tmux-1.4.
> *** Error code 1
> 
> Stop in /usr/ports/sysutils/tmux.
> *** Error code 1
> 
> Stop in /usr/ports/sysutils/tmux.
> 
> ===>>> make failed for sysutils/tmux
> ===>>> Aborting update
> 
> ===>>> Installation of devel/libevent2 (libevent2-2.0.10_1) complete
> 
> 
> ===>>> You can restart from the point of failure with this command line:
>        portmaster <flags> sysutils/tmux
> 
> 
> 
> Regards,
> 
> 
> 
> Mark
Comment 4 dfilter service freebsd_committer freebsd_triage 2011-05-25 01:29:42 UTC
wen         2011-05-25 00:29:33 UTC

  FreeBSD ports repository

  Modified files:
    sysutils/tmux        Makefile 
  Added files:
    sysutils/tmux/files  extra-patch-tty-keys.c 
  Removed files:
    sysutils/tmux/files  patch-tty-keys.c 
  Log:
  - Fix tmux.conf location [1]
  - Support libevent2 [1]
  - Add an option to use patch-tty-key.c [2]
  
  PR:             ports/155909 [1],
                  ports/153942 [2]
  Submitted by:   mm@ [1],
                  Brandon Low <lostlogic@lostlogicx.com> [2],
                  randy.belk@gmail.com(via email) [2]
  
  Revision  Changes    Path
  1.27      +38 -12    ports/sysutils/tmux/Makefile
  1.1       +11 -0     ports/sysutils/tmux/files/extra-patch-tty-keys.c (new)
  1.2       +0 -11     ports/sysutils/tmux/files/patch-tty-keys.c (dead)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Wen Heping freebsd_committer freebsd_triage 2011-05-25 01:31:25 UTC
State Changed
From-To: open->closed

Committed. Thanks!