Unbreak lang/smlnj
Change order in which SC_ (sysconf) defines are looked for. $OpenBSD$ --- src/runtime/config/gen-posix-names.sh.orig Sun Jan 13 04:48:59 2013 +++ src/runtime/config/gen-posix-names.sh Sun Jan 13 04:49:07 2013 @@ -36,12 +36,12 @@ if [ $USED_ENUMS = TRUE ]; then /lib/cpp $INCLFILE XXX #include unistd.h XXX +elif [ -r /usr/include/unistd.h ]; then + INCLFILE=/usr/include/unistd.h elif [ -r /usr/include/sys/unistd.h ]; then INCLFILE=/usr/include/sys/unistd.h elif [ -r /usr/include/confname.h ]; then INCLFILE=/usr/include/confname.h -elif [ -r /usr/include/unistd.h ]; then - INCLFILE=/usr/include/unistd.h elif [ -r /usr/include/bsd/unistd.h ]; then INCLFILE=/usr/include/bsd/unistd.h else % sml Standard ML of New Jersey, Version 110.0.7, September 28, 2000 [CM; autoload enabled] - print hello world\n; hello world val it = () : unit -- Alexander Polakov | plhk.ru
Re: lang/ghc locale support
* Matthias Kilian k...@outback.escape.de [130112 01:00]: Hi, On Fri, Jan 11, 2013 at 07:31:22AM +0400, Alexander Polakov wrote: Maybe, but what now? Mention it in the manpage or add a readme file to the package? As I said, it' poorly documented (in lang/ghc/patches/patch-libraries_base_System_IO_hs) Why not something like this? if ((l = getenv(LC_CTYPE)) (e = strstr(l, UTF-8))) return e; return latin1; Because it's a little bit ugly, and it's incomplete. There are some more environment variables involved (LC_ALL, even LANG, iirc). I really don't want to hack something that simulates proper handling of locales (that was the reason I used HS_ENCODING in the first place). Well, I agree that it looks ugly.. Readme is probably the best way to handle this (and this thread seems to be high on google for ghc unicode openbsd). -- Alexander Polakov | plhk.ru
lang/ghc locale support
Hi, It seems like some locale/unicode support is missing in OpenBSD ghc. OpenBSD/i386, ghc-7.4.2p2, LC_CTYPE=en_US.UTF-8: % ghci GHCi, version 7.4.2: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Prelude putStrLn текст -- - utf-8 cyrillics *** Exception: stdout: hPutChar: invalid argument (invalid character) Debian GNU/Linux, LANG=en_US.UTF-8: $ ghci GHCi, version 7.4.1: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Prelude putStrLn текст текст -- Alexander Polakov | plhk.ru
Re: lang/ghc locale support
* Matthias Kilian k...@outback.escape.de [130110 20:50]: Hi, On Thu, Jan 10, 2013 at 05:37:20PM +0400, Alexander Polakov wrote: It seems like some locale/unicode support is missing in OpenBSD ghc. Well, it's poorly implemented and poorly documented (my fault). OpenBSD/i386, ghc-7.4.2p2, LC_CTYPE=en_US.UTF-8: Could you test wether adding HS_ENCODING=UTF-8 to the environment helps? Works this way, thanks! -- Alexander Polakov | plhk.ru
Re: lang/ghc locale support
* Matthias Kilian k...@outback.escape.de [130111 03:20]: On Thu, Jan 10, 2013 at 09:44:20PM +0400, Alexander Polakov wrote: On Thu, Jan 10, 2013 at 05:37:20PM +0400, Alexander Polakov wrote: It seems like some locale/unicode support is missing in OpenBSD ghc. Well, it's poorly implemented and poorly documented (my fault). OpenBSD/i386, ghc-7.4.2p2, LC_CTYPE=en_US.UTF-8: Could you test wether adding HS_ENCODING=UTF-8 to the environment helps? Works this way, thanks! Maybe, but what now? Mention it in the manpage or add a readme file to the package? As I said, it' poorly documented (in lang/ghc/patches/patch-libraries_base_System_IO_hs) Why not something like this? if ((l = getenv(LC_CTYPE)) (e = strstr(l, UTF-8))) return e; return latin1; -- Alexander Polakov | plhk.ru
Re: Enable cabal test-suites for hs-ports by default?
* Predrag Punosevac punoseva...@gmail.com [121205 00:40]: On Mon, Dec 03, 2012 at 10:32:56PM +0100, Matthias Kilian wrote: I'd like to add --enable-tests by default in ghc.port.mk, unless a hs-ports has set NO_REGRESS=Yes. [...] This is an OT. Any chance that one of you Haskell guys gets pandoc ported to OpenBSD. http://johnmacfarlane.net/pandoc/ P.S. I tried installing with cabal but it just returns a slue of complains. pandoc installs and works fine here on -current/i386. -- Alexander Polakov | plhk.ru
Re: [NEW] textproc/fbreader + textproc/liblinebreak
So what's up with this port? Is it ok? * Alexander Polakov p...@sdf.org [120918 23:10]: * Stuart Henderson s...@spacehopper.org [120918 21:00]: Please set SEPARATE_BUILD=Yes for liblinebreak then that's ok with me to import. fbreader's still building, but some initial comments on that: - looks like it should be SHARED_ONLY=Yes and merge PFRAG.shared into PLIST. - it would also be nice to install a .desktop file (the one in pdaxrom/data/share/applications/FBReader.desktop looks about right), add a dep on desktop-file-utils and add the update-desktop-database goo to plist. oh, also this one seems to be missing WANTLIB on pthread Ok, done. -- Alexander Polakov | plhk.ru
Re: java apps X gui blank windows
* David Coppa dco...@gmail.com [121023 16:10]: Install wmname-0.1 and add: /usr/local/bin/wmname LG3D into your .xinitrc before cwm. Let me know if this works for you. It shouldn't AFAIU. cwm sets _NET_SUPPORTING_WM_CHECK since some time, which is a Window-type property, which points to a window which has _NET_WM_NAME set to CWM (as per EWMH spec). You may try to remove this property by doing xprop -root -remove _NET_SUPPORTING_WM_CHECK and then doing wmname LG3D This may work. -- open source wizard
[NEW] textproc/fbreader + textproc/liblinebreak
This port is based on http://gitorious.org/openbsd-ports-wip/mainline/trees/300a1b35eb2ba99ddea95715213f16911ee7020f/textproc/fbreader Description: FBReader is an e-book reader for various platforms. FBReader depends on liblinebreak, which is: Description: Liblinebreak is an implementation of the line breaking algorithm as described in Unicode 5.1.0 Standard Annex 14, Revision 22. It breaks lines that contain Unicode characters. It is designed to be used in a generic text renderer. -- open source wizard fbreader.tgz Description: application/tar-gz
Re: [NEW] textproc/fbreader + textproc/liblinebreak
* Stuart Henderson s...@spacehopper.org [120918 21:00]: Please set SEPARATE_BUILD=Yes for liblinebreak then that's ok with me to import. fbreader's still building, but some initial comments on that: - looks like it should be SHARED_ONLY=Yes and merge PFRAG.shared into PLIST. - it would also be nice to install a .desktop file (the one in pdaxrom/data/share/applications/FBReader.desktop looks about right), add a dep on desktop-file-utils and add the update-desktop-database goo to plist. oh, also this one seems to be missing WANTLIB on pthread Ok, done. -- open source wizard fbreader.tgz Description: application/tar-gz
audio/audacious unpausing by itself
After updating audacious to 3.2 I have encountered a problem: I hit pause button and it stops playing, but some time passes and it starts playing without me doing a thing. Looks like the time before it starts is roughly equal to the time from current time position to the end of the track. Like, if I hit pause on 4:50 and the track's length is 5:00, the next track starts playing in 10 seconds. Can anyone else confirm this? I'm running current on amd64. audacious 3.2p0 -- Alexander Polakov | plhk.ru
sysutils/xbattbar patch to add time date display
$ +--- xbattbar.man.orig Tue Apr 3 23:51:58 2012 xbattbar.man Tue Apr 3 23:52:03 2012 +@@ -32,6 +32,7 @@ + .Op Fl O Ar color + .Op Fl i Ar color + .Op Fl o Ar color ++.Op Fl T Ar time-format + .Op Ar top | bottom | left | right + .Sh DESCRIPTION + .Nm xbattbar +@@ -88,6 +89,9 @@ option sets the polling interval in second. + If the mouse cursor enters in the status indicator, + the diagnosis window appears in the center of the display, + which shows both AC line status and battery remaining level. ++.Nm -T ++option adds time and date display to the popup window. ++It accepts an optional strftime(3) format string argument. + This diagnosis window disappears if the mouse cursor leaves from + the status indicator. + .Sh SEE ALSO -- Alexander Polakov | plhk.ru
Re: update sysutils/conky to 1.8.1, enable apm on non-i386, add xmms2 flavour
* David Coppa dco...@gmail.com [110420 13:51]: On Tue, 19 Apr 2011, Pascal Stumpf wrote: - update - enable apm_* variables on arches other than i386 (the port is only for apm archs anyway) - enable iconv support - kill groff (dunno if patching the manpage is really necessary, it looks fine both ways. Was that a workaround for old groff?) - add a flavour to support displaying xmms2 info Hi! Your diff is good and conky-1.8.1 seems to work well on both i386 and sparc64. I have some considerations: - we do not have MusicOnConsole (moc) music player in our tree ..yet. I'm working with upstream to get sndio support in, and when they make a release I'll send port here. (and it's linux-only stuff iirc), Incorrect. -- Alexander Polakov | plhk.ru
NEW: x11/echinus
Hi, I made a port for my window manager finally. It was my first porting attempt, so don't beat too hard, please. Tested here on amd64. -- Alexander Polakov | plhk.ru echinus.tgz Description: application/tar-gz
sysutils/conky - no_x11 flavor
Hi all! What do you think about no_x11 flavor? Patch attached. -- Alexander Polakov | http://rootshell.be/~polachok/ --- conky/Makefile Mon May 19 11:44:37 2008 +++ conky/Makefile.new Sat Jul 12 19:09:10 2008 @@ -21,9 +21,17 @@ PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes -WANTLIB= X11 Xau Xdamage Xdmcp Xext Xfixes Xft Xrender c crypto \ - expat fontconfig freetype kvm m ossaudio pthread ssl z +FLAVORS=no_x11 +FLAVOR?= +WANTLIB= c crypto \ + expat kvm m ossaudio pthread ssl z +.if ${FLAVOR:L:Mno_x11} +CONFIGURE_ARGS+=--disable-x11 +.else +WANTLIB+= X11 Xau Xdamage Xdmcp Xext Xfixes Xft Xrender \ + fontconfig freetype +.endif MODULES= devel/gettext LIB_DEPENDS= glib-2.0::devel/glib2 \
Re: sysutils/conky - no_x11 flavor
You need out_to_console in configuration file to get some output. 2008/7/13, Stuart Henderson [EMAIL PROTECTED]: On 2008/07/12 20:52, Alexander Polakov wrote: Hi all! What do you think about no_x11 flavor? Patch attached. -- Alexander Polakov | http://rootshell.be/~polachok/ I've tested this on amd64 and i386. If I build with no_x11 and run it, I get this, then no further output until I hit ^C and it exits. $ conky Conky: /etc/conky/conky.conf: 27: no such configuration: 'alignment' Conky: /etc/conky/conky.conf: 29: no such configuration: 'border_width' Conky: /etc/conky/conky.conf: 31: no such configuration: 'default_color' Conky: /etc/conky/conky.conf: 32: no such configuration: 'default_outline_color' Conky: /etc/conky/conky.conf: 33: no such configuration: 'default_shade_color' Conky: /etc/conky/conky.conf: 34: no such configuration: 'draw_borders' Conky: /etc/conky/conky.conf: 35: no such configuration: 'draw_graph_borders' Conky: /etc/conky/conky.conf: 36: no such configuration: 'draw_outline' Conky: /etc/conky/conky.conf: 37: no such configuration: 'draw_shades' Conky: /etc/conky/conky.conf: 38: no such configuration: 'font' Conky: /etc/conky/conky.conf: 39: no such configuration: 'gap_x' Conky: /etc/conky/conky.conf: 40: no such configuration: 'gap_y' Conky: /etc/conky/conky.conf: 41: no such configuration: 'minimum_size' Conky: /etc/conky/conky.conf: 45: no such configuration: 'own_window' Conky: /etc/conky/conky.conf: 46: no such configuration: 'own_window_class' Conky: /etc/conky/conky.conf: 47: no such configuration: 'own_window_type' Conky: /etc/conky/conky.conf: 48: no such configuration: 'stippled_borders' If I comment out those lines from conky.conf, no errors, but the same thing: no output until I hit ^C and it exits. Without no_x11 it works fine.