Bug 85951 - New port: net/tmsnc Tmsnc is a textbased (console) MSN client.
Summary: New port: net/tmsnc Tmsnc is a textbased (console) MSN client.
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: Yen-Ming Lee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-10 18:40 UTC by Tsung-Han Yeh
Modified: 2005-09-18 05:51 UTC (History)
0 users

See Also:


Attachments
tmsnc-0.2.4.shar (2.17 KB, text/plain)
2005-09-10 18:40 UTC, Tsung-Han Yeh
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tsung-Han Yeh 2005-09-10 18:40:13 UTC
      
Tmsnc is a textbased (console) MSN client written in C. 
Tmsnc should work on most Unix (Linux, BSD, MacOS) compatible operating systems.
The goal of this project is to create a client like MSN Messenger
(with sound, webcam and file transfer support), but without any graphical features.
Instead tmsnc has an interface written in NCurses, a library for textbased terminal interaction.

WWW:    http://tmsnc.sourceforge.net/
Comment 1 Renato Botelho freebsd_committer freebsd_triage 2005-09-12 12:41:56 UTC
State Changed
From-To: open->feedback

Ask submitter if he wants to maintain the port 


Comment 2 Renato Botelho freebsd_committer freebsd_triage 2005-09-12 12:41:56 UTC
Responsible Changed
From-To: freebsd-ports-bugs->garga

Grabbed.
Comment 3 Renato Botelho freebsd_committer freebsd_triage 2005-09-12 12:41:57 UTC
You sent a new port with no maintainer, aren't you interested to
maintain this port?

Thanks
-- 
Renato Botelho <garga @ FreeBSD.org>
               <freebsd @ galle.com.br>
GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc

Arbitrary systems, pl.n.:
	Systems about which nothing general can be said, save "nothing
general can be said."
Comment 4 Renato Botelho freebsd_committer freebsd_triage 2005-09-12 17:56:39 UTC
Responsible Changed
From-To: garga->freebsd-ports-bugs

I grabbed it accidentally, just wanted ask submitter about 
maintainership. Back it to the pool.
Comment 5 Renato Botelho freebsd_committer freebsd_triage 2005-09-13 12:02:52 UTC
Build error on FreeBSD-5.4

Script started on Tue Sep 13 08:01:52 2005
===>  Extracting for tmsnc-0.2.4
=> Checksum OK for tmsnc-0.2.4.tar.gz.
===>  Patching for tmsnc-0.2.4
===>   tmsnc-0.2.4 depends on file: /usr/local/include/ncurses/ncurses.h - found
===>  Configuring for tmsnc-0.2.4
configure: WARNING: you should use --build, --host, --target
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for i386-portbld-freebsd5.4-gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of cc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking return type of signal handlers... void
checking for strftime... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/local/bin/msgfmt
checking for gmsgfmt... /usr/local/bin/msgfmt
checking for xgettext... /usr/local/bin/xgettext
checking for msgmerge... /usr/local/bin/msgmerge
checking build system type... i386-portbld-freebsd5.4
checking host system type... i386-portbld-freebsd5.4
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... yes
checking how to link with libiconv... /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
checking for GNU gettext in libintl... yes
checking whether to use NLS... yes
checking where the gettext function comes from... external libintl
checking how to link with libintl... /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib
configure: checking location of ncurses.h file...
Found ncurses on /usr/include/ncurses.h
checking for use_default_colors... yes
checking for resizeterm... yes
checking for resize_term... yes
checking for wadd_wch... no
checking for openssl... yes
checking for gtf_filter_warez in -ltalkfilters... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating autopackage/default.apspec
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile

 Version:             0.2.4
 Prefix:              /usr/local
 CFLAGS:              -O -pipe 

 Talkfilter support:  no
 i18n support:        yes

===>  Building for tmsnc-0.2.4
Making all in po
test -z "en.gmo sv.gmo pt_BR.gmo" || make en.gmo sv.gmo pt_BR.gmo
rm -f en.gmo && /usr/local/bin/msgfmt -c --statistics -o en.gmo en.po
0 translated messages, 203 untranslated messages.
rm -f sv.gmo && /usr/local/bin/msgfmt -c --statistics -o sv.gmo sv.po
203 translated messages.
rm -f pt_BR.gmo && /usr/local/bin/msgfmt -c --statistics -o pt_BR.gmo pt_BR.po
203 translated messages.
touch stamp-po
Making all in src
make  all-am
if cc -DHAVE_CONFIG_H -I. -I. -I.    -I/usr/local/include -Wall -O -pipe -MT misc.o -MD -MP -MF ".deps/misc.Tpo" -c -o misc.o misc.c;  then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; else rm -f ".deps/misc.Tpo"; exit 1; fi
In file included from common.h:19,
                 from misc.c:18:
/usr/include/ncurses.h:289: error: conflicting types for 'wchar_t'
/usr/include/stdlib.h:58: error: previous declaration of 'wchar_t' was here
*** Error code 1

Stop in /usr/home/garga/prs/tmsnc/tmsnc/work/tmsnc-0.2.4/src.
*** Error code 1

Stop in /usr/home/garga/prs/tmsnc/tmsnc/work/tmsnc-0.2.4/src.
*** Error code 1

Stop in /usr/home/garga/prs/tmsnc/tmsnc/work/tmsnc-0.2.4.
*** Error code 1

Stop in /usr/home/garga/prs/tmsnc/tmsnc.

Script done on Tue Sep 13 08:02:00 2005

-- 
Renato Botelho <garga @ FreeBSD.org>
               <freebsd @ galle.com.br>
GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc

New Year's Eve is the time of year when a man most feels his age, and
his wife most often reminds him to act it.
		-- Webster's Unafraid Dictionary
Comment 6 Renato Botelho freebsd_committer freebsd_triage 2005-09-13 20:25:42 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Sep 14, 2005 at 03:13:46AM +0800, snowfly wrote:
> Dear Renato Botelho,
> 
> Your Ncurses's version is old.
> Plz update your ncurses to lastest.
> 
> The Author of tmsnc had said it about the problem on his homepage.
> URL: http://tmsnc.sourceforge.net/faq.html#b_4

> Found ncurses on /usr/include/ncurses.h

Like you can see at this point, it always use base system ncurses, the
correct way is force it to use ports ncurses, I tried to pass
- --with-ncurses=${LOCALBASE} to configure script, but, it still uses
/usr/include/ncurses.h

- -- 
Renato Botelho <garga @ FreeBSD.org>
               <freebsd @ galle.com.br>
GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc

You know you have a small apartment when Rice Krispies echo.
		-- S. Rickly Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDJye26CRbiSJE7akRAs0kAJ92PvYIXc3WDAsIqEEkdYfiaUUJTgCgrmC+
mvfJi528TDghn8S87HuUin4=
=Jur+
-----END PGP SIGNATURE-----
Comment 7 Renato Botelho freebsd_committer freebsd_triage 2005-09-14 10:56:36 UTC
On Wed, Sep 14, 2005 at 04:19:16PM +0800, snowfly wrote:
> 
> (1) cd /usr/include
> (2) mv ncurses.h ncurses.h.bak
> (3) cd net/tmsnc/
> (4) make install clean

The problem is you can't tell the user to do that to install your port,
you need to hack the port to find and use correct ncurses.h and libs

-- 
Renato Botelho <garga @ FreeBSD.org>
               <freebsd @ galle.com.br>
GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc

(1) Everything depends.
(2) Nothing is always.
(3) Everything is sometimes.
Comment 8 Renato Botelho freebsd_committer freebsd_triage 2005-09-14 13:27:54 UTC
I started to make the job, here is a version of the port that works
fine, using 0.2.5 version, except one thing, it doesn't install
internationalization files.

I have no time now to continue hacking this.

--- tmsnc.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	./tmsnc
#	./tmsnc/Makefile
#	./tmsnc/distinfo
#	./tmsnc/pkg-descr
#	./tmsnc/files
#	./tmsnc/files/patch-configure
#
echo c - ./tmsnc
mkdir -p ./tmsnc > /dev/null 2>&1
echo x - ./tmsnc/Makefile
sed 's/^X//' >./tmsnc/Makefile << 'END-of-./tmsnc/Makefile'
X# New ports collection makefile for:	tmsnc
X# Date created:				10 Sep 2005
X# Whom:					Tsung-Han Yeh <snowfly@yuntech.edu.tw>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	tmsnc
XPORTVERSION=	0.2.5
XCATEGORIES=	net
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	snowfly@yuntech.edu.tw
XCOMMENT=	TMSNC is a textbased (console) MSN client
X
XBUILD_DEPENDS=	${LOCALBASE}/include/ncurses/ncurses.h:${PORTSDIR}/devel/ncurses
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XGNU_CONFIGURE=	yes
XUSE_REINPLACE=	yes
X
XPLIST_FILES=	bin/${PORTNAME}
X
XMAN1=	tmsnc.1
X
Xpost-patch:
X	@${REINPLACE_CMD} 's,^SUBDIRS = po,SUBDIRS = ,g' \
X		${WRKSRC}/Makefile.in
X
X.include <bsd.port.mk>
END-of-./tmsnc/Makefile
echo x - ./tmsnc/distinfo
sed 's/^X//' >./tmsnc/distinfo << 'END-of-./tmsnc/distinfo'
XMD5 (tmsnc-0.2.5.tar.gz) = 3943b017d071a6fd42835d15bb40347d
XSIZE (tmsnc-0.2.5.tar.gz) = 213481
END-of-./tmsnc/distinfo
echo x - ./tmsnc/pkg-descr
sed 's/^X//' >./tmsnc/pkg-descr << 'END-of-./tmsnc/pkg-descr'
XTmsnc is a textbased (console) MSN client written in C. 
XTmsnc should work on most Unix (Linux, BSD, MacOS) compatible operating systems.
X
XThe goal of this project is to create a client like MSN Messenger
X(with sound, webcam and file transfer support), 
Xbut without any graphical features.
X
XInstead tmsnc has an interface written in NCurses, 
Xa library for textbased terminal interaction.
X
XWWW: http://tmsnc.sourceforge.net/
END-of-./tmsnc/pkg-descr
echo c - ./tmsnc/files
mkdir -p ./tmsnc/files > /dev/null 2>&1
echo x - ./tmsnc/files/patch-configure
sed 's/^X//' >./tmsnc/files/patch-configure << 'END-of-./tmsnc/files/patch-configure'
X--- configure.orig	Wed Aug 10 17:42:42 2005
X+++ configure	Wed Sep 14 08:29:30 2005
X@@ -6145,81 +6145,12 @@
X 
X     if $search_ncurses
X     then
X-        if test -f /usr/include/ncurses.h
X-	then
X-	    echo "$as_me:$LINENO: result: Found ncurses on /usr/include/ncurses.h" >&5
X-echo "${ECHO_T}Found ncurses on /usr/include/ncurses.h" >&6
X- 	    CURSES_LIBS="-lncurses"
X-	    CURSES_INCLUDEDIR=""
X-	    search_ncurses=false
X-	    screen_manager="ncurses on /usr/include"
X-            cat >>confdefs.h <<\_ACEOF
X-#define HAS_CURSES 1
X-_ACEOF
X-
X-            has_curses=true
X-	    cat >>confdefs.h <<\_ACEOF
X-#define USE_NCURSES 1
X-_ACEOF
X-
X-	fi
X-    fi
X-
X-
X-    if $search_ncurses
X-    then
X-        if test -f /usr/include/ncurses/ncurses.h
X-	then
X-	    echo "$as_me:$LINENO: result: Found ncurses on /usr/include/ncurses/ncurses.h" >&5
X-echo "${ECHO_T}Found ncurses on /usr/include/ncurses/ncurses.h" >&6
X- 	    CURSES_LIBS="-lncurses"
X-	    CURSES_INCLUDEDIR="-I/usr/include/ncurses"
X-	    search_ncurses=false
X-	    screen_manager="ncurses on /usr/include/ncurses"
X-            cat >>confdefs.h <<\_ACEOF
X-#define HAS_CURSES 1
X-_ACEOF
X-
X-            has_curses=true
X-	    cat >>confdefs.h <<\_ACEOF
X-#define USE_NCURSES 1
X-_ACEOF
X-
X-	fi
X-    fi
X-
X-
X-    if $search_ncurses
X-    then
X-        if test -f /usr/local/include/ncurses.h
X-	then
X-	    echo "$as_me:$LINENO: result: Found ncurses on /usr/local/include/ncurses.h" >&5
X-echo "${ECHO_T}Found ncurses on /usr/local/include/ncurses.h" >&6
X- 	    CURSES_LIBS="-L/usr/local/lib -lncurses"
X-	    CURSES_INCLUDEDIR="-I/usr/local/include"
X-	    search_ncurses=false
X-	    screen_manager="ncurses on /usr/local"
X-            cat >>confdefs.h <<\_ACEOF
X-#define HAS_CURSES 1
X-_ACEOF
X-
X-            has_curses=true
X-	    cat >>confdefs.h <<\_ACEOF
X-#define USE_NCURSES 1
X-_ACEOF
X-
X-	fi
X-    fi
X-
X-
X-    if $search_ncurses
X-    then
X         if test -f /usr/local/include/ncurses/ncurses.h
X 	then
X 	    echo "$as_me:$LINENO: result: Found ncurses on /usr/local/include/ncurses/ncurses.h" >&5
X echo "${ECHO_T}Found ncurses on /usr/local/include/ncurses/ncurses.h" >&6
X- 	    CURSES_LIBS="-L/usr/local/lib -L/usr/local/lib/ncurses -lncurses"
X-	    CURSES_INCLUDEDIR="-I/usr/local/include/ncurses"
X+ 	    CURSES_LIBS="-L/usr/local/lib -L/usr/local/lib/ncurses -Wl,-rpath,/usr/local/lib -lncurses"
X+	    CURSES_INCLUDEDIR="-I/usr/local/include -I/usr/local/include/ncurses"
X 	    search_ncurses=false
X 	    screen_manager="ncurses on /usr/local/include/ncurses"
X             cat >>confdefs.h <<\_ACEOF
END-of-./tmsnc/files/patch-configure
exit
--- tmsnc.shar ends here ---

Regards
-- 
Renato Botelho <garga @ FreeBSD.org>
               <freebsd @ galle.com.br>
GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc

The Roman Rule
	The one who says it cannot be done should never interrupt the
	one who is doing it.
Comment 9 Yen-Ming Lee freebsd_committer freebsd_triage 2005-09-18 03:23:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->leeym

I will take care of this PR.
Comment 10 Yen-Ming Lee freebsd_committer freebsd_triage 2005-09-18 05:51:37 UTC
State Changed
From-To: feedback->closed

Committed, thanks.