Re: rtorrent sigbus crash at startup on sparc64 (fix)

2012-02-10 Thread Christiano F. Haesbaert
On 9 February 2012 10:36, Christiano F. Haesbaert
 wrote:
> On 26 January 2012 14:39, David Coppa  wrote:
>>
>> Hi,
>>
>> Just noticed that rtorrent is broken on sparc64.
>>
>> This is a working fix I've cooked up, but I'd like to have some
>> help since I am a total n00b in C++
>>
>
> I'm running this diff with no problems so far on a sparc64.
>

Nah, it's still broken, I moved some .torrent into my watch folder and
it crashed, now it crashes at startup after a while, probably while
trying to process the new torrent files:

rtorrent: PollKQueue::modify() error: No such file or

My C++ is 100% non-existant but I'll give it a look.

>> Index: Makefile
>> ===
>> RCS file: /cvs/ports/net/rtorrent/Makefile,v
>> retrieving revision 1.30
>> diff -u -p -r1.30 Makefile
>> --- Makefile    1 Dec 2011 17:10:40 -       1.30
>> +++ Makefile    26 Jan 2012 16:31:27 -
>> @@ -3,6 +3,7 @@
>>  COMMENT=               ncurses BitTorrent client based on libTorrent
>>
>>  DISTNAME=              rtorrent-0.8.9
>> +REVISION=              0
>>  CATEGORIES=            net
>>
>>  HOMEPAGE=              http://libtorrent.rakshasa.no/
>> Index: patches/patch-src_command_local_cc
>> ===
>> RCS file: patches/patch-src_command_local_cc
>> diff -N patches/patch-src_command_local_cc
>> --- /dev/null   1 Jan 1970 00:00:00 -
>> +++ patches/patch-src_command_local_cc  26 Jan 2012 16:31:27 -
>> @@ -0,0 +1,25 @@
>> +$OpenBSD$
>> +
>> +Fix unaligned access causing a SIGBUS at startup on sparc64
>> +
>> +--- src/command_local.cc.orig  Tue Jun 14 04:57:10 2011
>>  src/command_local.cc       Thu Jan 26 16:55:38 2012
>> +@@ -398,10 +398,14 @@ initialize_command_local() {
>> +   CMD2_ANY_LIST    ("file.append",    std::bind(&cmd_file_append, 
>> std::placeholders::_2));
>> +
>> +   // TODO: Convert to new command types:
>> +-  *rpc::command_base::argument(0) = "placeholder.0";
>> +-  *rpc::command_base::argument(1) = "placeholder.1";
>> +-  *rpc::command_base::argument(2) = "placeholder.2";
>> +-  *rpc::command_base::argument(3) = "placeholder.3";
>> ++  std::string ph0 = "placeholder.0";
>> ++  std::string ph1 = "placeholder.1";
>> ++  std::string ph2 = "placeholder.2";
>> ++  std::string ph3 = "placeholder.3";
>> ++  std::memcpy(rpc::command_base::argument(0), ph0.c_str(), 
>> sizeof(torrent::Object*));
>> ++  std::memcpy(rpc::command_base::argument(1), ph1.c_str(), 
>> sizeof(torrent::Object*));
>> ++  std::memcpy(rpc::command_base::argument(2), ph2.c_str(), 
>> sizeof(torrent::Object*));
>> ++  std::memcpy(rpc::command_base::argument(3), ph3.c_str(), 
>> sizeof(torrent::Object*));
>> +   CMD2_ANY_P("argument.0", std::bind(&rpc::command_base::argument_ref, 0));
>> +   CMD2_ANY_P("argument.1", std::bind(&rpc::command_base::argument_ref, 1));
>> +   CMD2_ANY_P("argument.2", std::bind(&rpc::command_base::argument_ref, 2));
>>



Re: rtorrent sigbus crash at startup on sparc64 (fix)

2012-02-09 Thread Christiano F. Haesbaert
On 26 January 2012 14:39, David Coppa  wrote:
>
> Hi,
>
> Just noticed that rtorrent is broken on sparc64.
>
> This is a working fix I've cooked up, but I'd like to have some
> help since I am a total n00b in C++
>

I'm running this diff with no problems so far on a sparc64.

> Index: Makefile
> ===
> RCS file: /cvs/ports/net/rtorrent/Makefile,v
> retrieving revision 1.30
> diff -u -p -r1.30 Makefile
> --- Makefile    1 Dec 2011 17:10:40 -       1.30
> +++ Makefile    26 Jan 2012 16:31:27 -
> @@ -3,6 +3,7 @@
>  COMMENT=               ncurses BitTorrent client based on libTorrent
>
>  DISTNAME=              rtorrent-0.8.9
> +REVISION=              0
>  CATEGORIES=            net
>
>  HOMEPAGE=              http://libtorrent.rakshasa.no/
> Index: patches/patch-src_command_local_cc
> ===
> RCS file: patches/patch-src_command_local_cc
> diff -N patches/patch-src_command_local_cc
> --- /dev/null   1 Jan 1970 00:00:00 -
> +++ patches/patch-src_command_local_cc  26 Jan 2012 16:31:27 -
> @@ -0,0 +1,25 @@
> +$OpenBSD$
> +
> +Fix unaligned access causing a SIGBUS at startup on sparc64
> +
> +--- src/command_local.cc.orig  Tue Jun 14 04:57:10 2011
>  src/command_local.cc       Thu Jan 26 16:55:38 2012
> +@@ -398,10 +398,14 @@ initialize_command_local() {
> +   CMD2_ANY_LIST    ("file.append",    std::bind(&cmd_file_append, 
> std::placeholders::_2));
> +
> +   // TODO: Convert to new command types:
> +-  *rpc::command_base::argument(0) = "placeholder.0";
> +-  *rpc::command_base::argument(1) = "placeholder.1";
> +-  *rpc::command_base::argument(2) = "placeholder.2";
> +-  *rpc::command_base::argument(3) = "placeholder.3";
> ++  std::string ph0 = "placeholder.0";
> ++  std::string ph1 = "placeholder.1";
> ++  std::string ph2 = "placeholder.2";
> ++  std::string ph3 = "placeholder.3";
> ++  std::memcpy(rpc::command_base::argument(0), ph0.c_str(), 
> sizeof(torrent::Object*));
> ++  std::memcpy(rpc::command_base::argument(1), ph1.c_str(), 
> sizeof(torrent::Object*));
> ++  std::memcpy(rpc::command_base::argument(2), ph2.c_str(), 
> sizeof(torrent::Object*));
> ++  std::memcpy(rpc::command_base::argument(3), ph3.c_str(), 
> sizeof(torrent::Object*));
> +   CMD2_ANY_P("argument.0", std::bind(&rpc::command_base::argument_ref, 0));
> +   CMD2_ANY_P("argument.1", std::bind(&rpc::command_base::argument_ref, 1));
> +   CMD2_ANY_P("argument.2", std::bind(&rpc::command_base::argument_ref, 2));
>



Re: update mail/msmtp to 1.4.27

2012-01-11 Thread Christiano F. Haesbaert

Fix my problem with gmail too, thanks !!

On Tue, Jan 10, 2012 at 05:41:35PM -0200, Gleydson Soares wrote:
> hi,
> 
> here is a diff that update mail/msmtp to 1.4.27
> 
> important fix:
> http://msmtp.git.sourceforge.net/git/gitweb.cgi?p=msmtp/msmtp;a=commit;h=8aaf441afcd543de4598a916285706819e6c451a
> (thanks to jeremy@ and Markus Lude that let me know the issue, and tested the 
> upstream patch).
> 
> also i did some tweaks:
> - install offline messaging helper scripts
> - no need FAKE_FLAGS here
> - remove now useless patch
> 
> looking for OKs.

> Index: Makefile
> ===
> RCS file: /cvs/ports/mail/msmtp/Makefile,v
> retrieving revision 1.28
> diff -u -p -r1.28 Makefile
> --- Makefile  27 Nov 2011 14:13:37 -  1.28
> +++ Makefile  10 Jan 2012 18:52:35 -
> @@ -2,7 +2,7 @@
>  
>  COMMENT =SMTP plugin for MUAs
>  
> -DISTNAME =   msmtp-1.4.25
> +DISTNAME =   msmtp-1.4.27
>  CATEGORIES = mail
>  
>  HOMEPAGE =   http://msmtp.sourceforge.net/
> @@ -30,8 +30,6 @@ CONFIGURE_ARGS =--with-libgsasl=no \
>   --with-libidn=yes \
>   --with-ssl=openssl \
>   --without-gnome-keyring
> -FAKE_FLAGS = mandir="${PREFIX}/man" \
> - infodir="${PREFIX}/info"
>  
>  post-install:
>   ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/msmtp
> @@ -41,9 +39,13 @@ post-install:
>   ${INSTALL_DATA} ${WRKSRC}/doc/Mutt+msmtp.txt ${PREFIX}/share/doc/msmtp
>   ${INSTALL_DATA} ${WRKSRC}/scripts/msmtpqueue/{README,ChangeLog} \
>   ${PREFIX}/share/msmtp/msmtpqueue
> + ${INSTALL_DATA} ${WRKSRC}/scripts/msmtpq/README.msmtpq \
> + ${PREFIX}/share/msmtp
>   ${INSTALL_SCRIPT} ${WRKSRC}/scripts/set_sendmail/set_sendmail.sh \
>   ${PREFIX}/share/examples/msmtp
>   ${INSTALL_SCRIPT} ${WRKSRC}/scripts/msmtpqueue/*.sh \
> + ${PREFIX}/share/examples/msmtp
> + ${INSTALL_SCRIPT} ${WRKSRC}/scripts/msmtpq/{msmtpq,msmtp-queue} \
>   ${PREFIX}/share/examples/msmtp
>  
>  .include 
> Index: distinfo
> ===
> RCS file: /cvs/ports/mail/msmtp/distinfo,v
> retrieving revision 1.19
> diff -u -p -r1.19 distinfo
> --- distinfo  22 Nov 2011 18:24:50 -  1.19
> +++ distinfo  10 Jan 2012 18:52:35 -
> @@ -1,5 +1,5 @@
> -MD5 (msmtp-1.4.25.tar.bz2) = LZYDp7XB69g+oomsKqOmNA==
> -RMD160 (msmtp-1.4.25.tar.bz2) = THS56TlCQBXEpHQmgnOiZOnzwb0=
> -SHA1 (msmtp-1.4.25.tar.bz2) = 7jvk4lDL1v7y+xSvTq38DOWO9CQ=
> -SHA256 (msmtp-1.4.25.tar.bz2) = ZXlq32Dh67Q0H4QVvTz6Zkcia9ul+6pa97w2mAirTmM=
> -SIZE (msmtp-1.4.25.tar.bz2) = 302039
> +MD5 (msmtp-1.4.27.tar.bz2) = LW0Q2cWe0rJjVVTtNfuSJg==
> +RMD160 (msmtp-1.4.27.tar.bz2) = 9kjpzugC9UhyKUuEfyde2fiiNrA=
> +SHA1 (msmtp-1.4.27.tar.bz2) = 4zV0UTO0cp/oTEn4NrTS+pKB4EA=
> +SHA256 (msmtp-1.4.27.tar.bz2) = 9xLK2LJJYn8cavRL5CeVanJAdOc7lCjDLOCrGwqdEXA=
> +SIZE (msmtp-1.4.27.tar.bz2) = 301918
> Index: patches/patch-scripts_msmtpq_msmtp-queue
> ===
> RCS file: patches/patch-scripts_msmtpq_msmtp-queue
> diff -N patches/patch-scripts_msmtpq_msmtp-queue
> --- /dev/null 1 Jan 1970 00:00:00 -
> +++ patches/patch-scripts_msmtpq_msmtp-queue  10 Jan 2012 18:52:35 -
> @@ -0,0 +1,9 @@
> +$OpenBSD$
> +--- scripts/msmtpq/msmtp-queue.orig  Tue Jan 10 16:47:20 2012
>  scripts/msmtpq/msmtp-queue   Tue Jan 10 16:49:07 2012
> +@@ -1,4 +1,4 @@
> +-#!/usr/bin/env bash
> ++#!/bin/sh
> + 
> + ##--
> + ##
> Index: patches/patch-scripts_msmtpq_msmtpQ
> ===
> RCS file: /cvs/ports/mail/msmtp/patches/patch-scripts_msmtpq_msmtpQ,v
> retrieving revision 1.1
> diff -u -p -r1.1 patch-scripts_msmtpq_msmtpQ
> --- patches/patch-scripts_msmtpq_msmtpQ   19 Oct 2008 20:35:01 -  
> 1.1
> +++ patches/patch-scripts_msmtpq_msmtpQ   10 Jan 2012 18:52:35 -
> @@ -1,9 +0,0 @@
> -$OpenBSD: patch-scripts_msmtpq_msmtpQ,v 1.1 2008/10/19 20:35:01 jasper Exp $
>  scripts/msmtpq/msmtpQ.orig   Mon Jul 28 00:20:47 2008
> -+++ scripts/msmtpq/msmtpQTue Oct 14 14:18:06 2008
> -@@ -1,4 +1,4 @@
> --#!/usr/bin/env bash
> -+#!/bin/sh
> - 
> - #--
> - #
> Index: pkg/PLIST
> ===
> RCS file: /cvs/ports/mail/msmtp/pkg/PLIST,v
> retrieving revision 1.7
> diff -u -p -r1.7 PLIST
> --- pkg/PLIST 22 Nov 2011 18:24:50 -  1.7
> +++ pkg/PLIST 10 Jan 2012 18:52:35 -
> @@ -7,13 +7,16 @@ share/doc/msmtp/Mutt+msmtp.txt
>  share/examples/msmtp/
>  share/examples/msmtp/msmtp-enqueue.sh
>  share/examples/msmtp/msmtp-listqueue.sh
> +share/examples/msmtp/msmtp-queue
>  share/examples/ms

Re: nmap-5.51p2/libdnet-1.12p3 unable to get hardware address for interface on -current

2011-11-15 Thread Christiano F. Haesbaert
On 15 November 2011 16:21, Thomas Jeunet  wrote:
> Hello,
>
> I'm using nmap on openbsd, following -current, and recently it stopped 
> working.
> I get the following message :
>
> Starting Nmap 5.51 ( http://nmap.org ) at 2011-11-15 19:05 CET
> Warning: Unable to get hardware address for interface em0 -- skipping it.
> WARNING: Unable to find appropriate interface for system route to  of gateway>
> nexthost: failed to determine route to 
> QUITTING!
>
> The message comes from nmap-5.51/nmap-5.51/libnetutil/netutil.cc :
> if (eth_get(ethsd, ðaddr) != 0) {
>   netutil_error("Warning: Unable to get hardware address for interface %s
>   continue;
> }
> and eth_get is defined in libdnet-1.12/libdnet-1.12/src/eth-bsd.c :
> int
> eth_get(eth_t *e, eth_addr_t *ea)
> {
>    struct if_msghdr *ifm;
>    struct sockaddr_dl *sdl;
>    struct addr ha;
>    u_char *p, *buf;
>    size_t len;
>    int mib[] = { CTL_NET, AF_ROUTE, 0, AF_LINK, NET_RT_IFLIST, 0 };
>
>    if (sysctl(mib, 6, NULL, &len, NULL, 0) < 0)
>        return (-1);
>
>    if ((buf = malloc(len)) == NULL)
>        return (-1);
>
>    if (sysctl(mib, 6, buf, &len, NULL, 0) < 0) {
>        free(buf);
>        return (-1);
>    }
>    for (p = buf; p < buf + len; p += ifm->ifm_msglen) {
>        ifm = (struct if_msghdr *)p;
>        sdl = (struct sockaddr_dl *)(ifm + 1);
>
>        if (ifm->ifm_type != RTM_IFINFO ||
>            (ifm->ifm_addrs & RTA_IFP) == 0)
>            continue;
>
>        if (sdl->sdl_family != AF_LINK || sdl->sdl_nlen == 0 ||
>            memcmp(sdl->sdl_data, e->device, sdl->sdl_nlen) != 0)
>            continue;
>
>        if (addr_ston((struct sockaddr *)sdl, &ha) == 0)
>            break;
>    }
>    free(buf);
>
>    if (p >= buf + len) {
>        errno = ESRCH;
>        return (-1);
>    }
>    memcpy(ea, &ha.addr_eth, sizeof(*ea));
>
>    return (0);
> }
>
> Is anyone also facing this issue? Anyone having a clue on why whould
> eth_get fail?
>
>
> Cheers,
> best regards
> --
> Thomas Jeunet
>
>

Rebuild libdnet, there was a change in an ioctl.
libdnet version is being bumped so others should not see this anymore.



Re: move to GNOME 3

2011-09-12 Thread Christiano F. Haesbaert
On 12 September 2011 15:30, Antoine Jacoutot  wrote:
> On Thu, 8 Sep 2011, Antoine Jacoutot wrote:
>
>> What this means is that starting next week and for about 2 weeks there
>> will be several gnome related breakages in ports. We appologize in
>> advance for the inconvenience but there is no way to finish the work
>> without this small 'broken' window.
>>
>> If you have any question, please contact Jasper (jasper@) and myself
>> (ajacoutot@) directly.
>
> So, the first part of the Armageddon is over...
>
> We are now planning on fixing the most obvious breakages before Friday
> (which is when s2k11 starts). During the hackathon we will keep on
> polishing what needs to be and start working on importing some missing
> pieces. For now we are stuck in fallback mode (GNOME 2 look-alike)
> because of a bug in Mesa which seems to be only triggered on OpenBSD.
>
> Ideally we are planning on having GNOME 3.2 fully working for the 5.1
> release, but meanwhile feel free to start and play with it, what's
> in-tree should be fairly usable (it has been for me since several
> months). Nothing fancy, but the obligatory screenshot ;-)
> http://www.bsdfrog.org/tmp/opengnome3.png
>

Sweet ! good work !



Re: tcptrace on loopback device

2011-08-19 Thread Christiano F. Haesbaert
On 19 August 2011 08:07, Alexander Bluhm  wrote:
> Hi,
>
> Our tcptrace cannot analyse pcap files sniffed on lo0.  This patch
> fixes it, by using the special openbsd dlt loop number.
>
> ok?
>
> bluhm

You could also remove the memcpy casts.



Re: GNOME Discusses Becoming a Linux-only Project

2011-05-25 Thread Christiano F. Haesbaert
On 25 May 2011 03:59, jirib  wrote:
> Hello,
>
> seeing so many GNOME 3 commit... what do you think about the subject?
>
> http://www.osnews.com/story/24762/GNOME_Discusses_Becoming_a_Linux-only_Project
>
> j.
>
>

I wouldn't give a shit if they did, gnome is a lot of stuff, but is
not a productive environment, hope they sink together with
gpl/gnu/freedesktop.



Re: re emacs23 update

2011-03-21 Thread Christiano F. Haesbaert
On Mon, Mar 21, 2011 at 11:36:17AM +0100, David Coppa wrote:
> On Wed, Mar 16, 2011 at 1:21 PM, Manuel Giraud
>  wrote:
> >
> > Another round. Tested on i386 GENERIC.MP and "emacs --batch -f
> > byte-compile-file": ok.
> 
> What's about this? Can it be committed?
> 

I've been using the version prior to the diff, athena flavor on MP.
No problems seen so far.

-- 
Christiano Farina HAESBAERT
Do NOT send me html mail.



Re: [New] OpenMDNS 0.3

2011-03-13 Thread Christiano F. Haesbaert
Can we get this in now that ports unlocked ?

I've a libc diff which would benefit from this.

-- 
Christiano Farina HAESBAERT
Do NOT send me html mail.



Re: emacs 23.2 (the return)

2011-03-09 Thread Christiano F. Haesbaert
Just tested the athena flavor, works fine over here, tested ediff also,
everything seems fine.

-- 
Christiano Farina HAESBAERT
Do NOT send me html mail.



Re: emacs 23.2 (the return)

2011-03-09 Thread Christiano F. Haesbaert
Emacs freezes here in awesomewm 2, tried with -Q, -nw seems to work fine.

Attached is dmesg and pkg_info output.

OpenBSD 4.9-beta (GENERIC.MP) #778: Sun Feb 13 17:39:24 MST 2011
t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 Duo CPU L7500 @ 1.60GHz ("GenuineIntel" 686-class) 
1.60 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
real mem  = 2103726080 (2006MB)
avail mem = 2059153408 (1963MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/19/07, BIOS32 rev. 0 @ 0xfdc80, SMBIOS 
rev. 2.4 @ 0xe0010 (63 entries)
bios0: vendor LENOVO version "7NET27WW (1.08 )" date 09/19/2007
bios0: LENOVO 7666B44
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF! SSDT SSDT 
SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) DURT(S3) IGBE(S4) EXP0(S4) EXP1(S4) 
EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) 
USB4(S3) EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU L7500 @ 1.60GHz ("GenuineIntel" 686-class) 
1.60 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus -1 (EXP3)
acpiprt6 at acpi0: bus -1 (EXP4)
acpiprt7 at acpi0: bus 5 (PCI1)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "92P1003" serial   171 type LION oem "HILLWEST"
acpibat1 at acpi0: BAT1 not present
acpibat2 at acpi0: BAT2 not present
acpiac0 at acpi0: AC unit offline
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
bios0: ROM list: 0xc/0x1! 0xd/0x1000 0xd1000/0x1000 0xe/0x1!
cpu0: Enhanced SpeedStep 1597 MHz: speeds: 1601, 1600, 1200, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel GM965 Host" rev 0x0c
vga1 at pci0 dev 2 function 0 "Intel GM965 Video" rev 0x0c
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xe000, size 0x1000
inteldrm0 at vga1: apic 1 int 16 (irq 10)
drm0 at inteldrm0
"Intel GM965 Video" rev 0x0c at pci0 dev 2 function 1 not configured
em0 at pci0 dev 25 function 0 "Intel ICH8 IGP M AMT" rev 0x03: apic 1 int 20 
(irq 11), address 00:1d:72:80:e9:48
uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 20 (irq 
11)
uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 21 (irq 
11)
ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 22 (irq 
11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801H HD Audio" rev 0x03: apic 1 int 
17 (irq 11)
azalia0: codecs: Analog Devices AD1984, Conexant/0x2bfa, using Analog Devices 
AD1984
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x03: apic 1 int 20 (irq 
11)
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x03: apic 1 int 21 (irq 
11)
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 "Intel Wireless WiFi Link 4965" rev 0x61: apic 1 
int 17 (irq 11), MIMO 2T3R, MoW1, address 00:1d:e0:06:74:21
uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 16 (irq 
10)
uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 17 (irq 
11)
ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 19 (irq 
11)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xf3
pci3 at ppb2 bus 5
cbb0 at pci3 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0xba: apic 1 int 16 
(irq 10)
"Ricoh 5C832 Firewire" rev 0x04 at pci3 dev 0 function 1 not configured
sdhc0 at pci3 dev 0 function 2 "Ricoh 5C822 SD/MMC" rev 0x21: apic 1 int 18 
(irq 11)
sdmmc0 at sdhc0
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 6 device 0 cacheline 0x0, lattimer 0xb0
pcmcia0 a

Re: emacs 23.2 (the return)

2011-03-09 Thread Christiano F. Haesbaert
On 9 March 2011 10:07, Manuel Giraud  wrote:
> Hi,
>
> Now that port is unlocked i've retested this port against a yesterday's
> current (GENERIC i386) and all seems to run fine now (no more startup
> freeze anymore).
>
> Anyone to test on other archs (and eventually, we'll have more recent
> emacs in OpenBSD 5.0) ?
>

Cool, I'll test on sparc64 and report back to you.



Re: [New] OpenMDNS 0.3

2011-03-07 Thread Christiano F. Haesbaert
On Mon, Mar 07, 2011 at 10:10:57AM +, Stuart Henderson wrote:
> On 2011/03/06 18:07, Gonzalo L. R. wrote:
> > Hi porters,
> > 
> > I made a port for OpenMDNS, is a MDNS/DNS-SD Daemon (like Avahi, but
> > better ;) for more info here is the official site:
> > 
> > http://www.haesbaert.org/openmdns/
> > 
> > please test it, works here on i386.
> > 
> 
> 
> Needs $OpenBSD$ tags
> 
> Mixture of 'FOO = bar' and 'FOO=bar' styles looks even worse
> than just 'FOO = bar' ;-)
> 
> DESCR is a bit too "chatty", try and avoid first-person
> 
> Too many options in MESSAGE, something simpler like the first
> lines of avahi/pkg/MESSAGE-main would be better
> 
> What are the @owner/@group for in PLIST?
> 
> Doesn't need USE_GROFF, it installs preformatted pages
> 
> 
> > And I'd be glad if is in before the unlock.
> 
> We're not locked, but no imports yet.

I did the corrections you've pointed out, just copied the MESSAGE from avahi
over.

Changed DESCR to:
OpenMDNS is a full implementation of MDNS/DNS-SD, it aims to be a light
replacement for Avahi/Bonjour. Currently OpenMDNS is about 10% of the size of
Avahi.

Also bumped to version 0.4:
Version 0.4
- Support for Unicast responses is now fully working.
- Prevent libevent crash with uninitialized timeval.
- flush stdout on mdnsctl.

Hope this is fine.


-- 
Christiano Farina HAESBAERT
Do NOT send me html mail.


openmdns.tgz
Description: application/tar-gz


Re: dovecot2 on openbsd

2011-01-21 Thread Christiano F. Haesbaert
On Thu, Jan 20, 2011 at 01:32:54AM -0300, Hugo Osvaldo Barrera wrote:
> Hi
> Is there any reason dovecot2 is _not_ on the OpenBSD ports tree?
> I found that downloading the source from the website build straight away
> without any patches or anything.
> 
> I haven't seen this discussed earier on either.
> 
> Would a port be welcome? :-)
> 

Can't see why it would not.

-- 
Christiano Farina HAESBAERT
Do NOT send me html mail.



Re: cant connect to FTP

2010-12-28 Thread Christiano F. Haesbaert
I remember crossing into this when I was trying virtualbox 2 years ago:

#430: Passive FTP to host via NAT networking broken => fixed in SVN

It just couldn't handle passive FTP, virtualbox is a piece of crap
honestly, I would try vmware instead.

This bug should be fixed anyway.



Re: [NEW] emacs 23.2

2010-08-20 Thread Christiano F. Haesbaert
Can any of you try the following ?

(set-frame-font "-xos4-terminus-bold-r-normal--20-200-72-72-c-100-iso8859-1")

Just move the cursor around and check if you can see the character underneath.
I didn't upgrade my emacs cause my happiness depends on this font.



Re: [NEW] emacs 23.2

2010-07-30 Thread Christiano F. Haesbaert
Hi !

Looks like I've found the problem, looks like a bug in emacs, couldn't
find anything on the mailing lists.

It only happends when I load my font config, can you try loading it
and see if it happens to you ? Just place the cursos under a character
and see if it disappears.

(set-frame-font "-xos4-terminus-bold-r-normal--20-200-72-72-c-100-iso8859-1")

my terminus font is terminus-font-4.28p1

Thanks, if it works for you I might try updating it all.



Re: [NEW] emacs 23.2

2010-07-27 Thread Christiano F. Haesbaert
On 27 July 2010 04:56, Manuel Giraud  wrote:
> "Christiano F. Haesbaert"  writes:
>
>> I found some issues:
>> 1 - I can't see the character where the pointer is (it fades in and
>> out).
>
> Blinking cursor is on by default (for quite some time now):
> "Options/Blinking Cursor" if you have the menubar or "M-x
> customize-apropos / blink"
>

That's not what I meant, I know about blinking cursor, the thing is
the character disappears, I can't see the character where the point
is.
Even if I disable the blinking I can't see it, tried emacs -Q, same behaviour.
It maybe related to xrandr as I've seen some odd behaviour in the
past, I'll make more tests.



Re: [NEW] emacs 23.2

2010-07-26 Thread Christiano F. Haesbaert
On 26 July 2010 10:49, Manuel Giraud  wrote:
>
> Hi,
>
> Here's an attempt of an emacs 23.2 port.
> Notes:
>       - gtk is the default toolkit (athena is now a flavor)
>       - the port is named "emacs" and not "emacs23"
>       - I didn't add the patches from "emacs22" (AFAICT hppa issue is
>         fixed by default and there is no trace of "mips64-*-openbsd*"
>         in the new configure.in).
>
>
>

I found some issues:
1 - I can't see the character where the pointer is (it fades in and out).
2 - I can see a significant slow down comparing to emacs 22, don't
know if it's just the version bump.

Other than that seems to be find, but the pointer thing is *really*
annoying, I'm using an external monitor at this time, it *may* be
related although I doubt.

My completion window buffers now split vertically not horizontally, I
don't remember it changing on emacs 23 as I use it everyday in a linux
box, but I'm sure this isn't port related.

I remember something about emacs having to be patched when propolice
was added, I think it was on a Theo presentation, can't remember
though, but it might be related.

I'm on a 2 months old snapshot, I'll get back with more results.

OpenBSD 4.7-current (GENERIC.MP) #29: Sat Jun  5 20:23:49 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 Duo CPU L7500 @ 1.60GHz ("GenuineIntel"
686-class) 1.60 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,x
TPR,PDCM
real mem  = 2103726080 (2006MB)
avail mem = 2027212800 (1933MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/19/07, BIOS32 rev. 0 @
0xfdc80, SMBIOS rev. 2.4 @ 0xe0010 (63 entries)
bios0: vendor LENOVO version "7NET27WW (1.08 )" date 09/19/2007
bios0: LENOVO 7666B44
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF!
SSDT SSDT SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) DURT(S3) IGBE(S4) EXP0(S4)
EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3)
USB2(S3) USB3(S3) USB4(S3) EHC0(S3) E
HC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU L7500 @ 1.60GHz ("GenuineIntel"
686-class) 1.60 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,x
TPR,PDCM
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus -1 (EXP3)
acpiprt6 at acpi0: bus -1 (EXP4)
acpiprt7 at acpi0: bus 5 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "42T4506" serial   930 type LION oem "SANYO"
acpibat1 at acpi0: BAT1 not present
acpibat2 at acpi0: BAT2 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
bios0: ROM list: 0xc/0x1! 0xd/0x1000 0xd1000/0x1000 0xe/0x1!
cpu0: Enhanced SpeedStep 1597 MHz: speeds: 1601, 1600, 1200, 800 MHz
OpenBSD 4.7-current (GENERIC.MP) #29: Sat Jun  5 20:23:49 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 Duo CPU L7500 @ 1.60GHz ("GenuineIntel"
686-class) 1.60 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,x
TPR,PDCM
real mem  = 2103726080 (2006MB)
avail mem = 2027212800 (1933MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/19/07, BIOS32 rev. 0 @
0xfdc80, SMBIOS rev. 2.4 @ 0xe0010 (63 entries)
bios0: vendor LENOVO version "7NET27WW (1.08 )" date 09/19/2007
bios0: LENOVO 7666B44
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF!
SSDT SSDT SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) DURT(S3) IGBE(S4) EXP0(S4)
EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3)
USB2(S3) USB3(S3) USB4(S3) EHC0(S3) E
HC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU L7500 @ 1.60GHz ("GenuineIntel"
686-class) 1.60 GHz
cpu1: 
FP

Re: [NEW] emacs 23.2

2010-07-26 Thread Christiano F. Haesbaert
On 26 July 2010 10:49, Manuel Giraud  wrote:
>
> Hi,
>
> Here's an attempt of an emacs 23.2 port.
> Notes:
>       - gtk is the default toolkit (athena is now a flavor)
>       - the port is named "emacs" and not "emacs23"
>       - I didn't add the patches from "emacs22" (AFAICT hppa issue is
>         fixed by default and there is no trace of "mips64-*-openbsd*"
>         in the new configure.in).
>
>
>
> --
> Manuel Giraud
>
>

Great stuff !

I'll give it a try as soon as I get home.



Re: [update] lyx

2010-04-09 Thread Christiano F. Haesbaert
On 9 April 2010 16:28, Olivier Cherrier  wrote:
>
>        Hi,
>
> Following previous update from Andreas [#1], here is a new update
> to 1.6.5 :
> http://www.symacx.com/data/software/OpenBSD/lyx.tgz
>
> Tested on i386 and sparc64.
> New features are nice.
>
> Later,
>
> #1: http://marc.info/?l=openbsd-ports&m=123739164001597&w=2
>

Great ! I was wanting that ! Thanks.



Re: [PATCH] Wrong scsh library path breaks module system

2010-03-25 Thread Christiano F. Haesbaert
2010/3/20 Christiano F. Haesbaert :
> Hi there,
>
> The current scsh port is half-broken, we move all scsh libraries from
> /usr/local/lib/scsh to /usr/local/share/scsh without any change to
> scsh compilation options. So the binary can't find any package, try
> "scsh -o sicp" for example.
>
> We have two options, tune configure to make it search libraries in
> $PREFIX/share/scsh or let them in /usr/local/lib/scsh, I vote for the
> second option.
>
> Looking at the date of the Makefile 2007/09/15, it seems I'm the sole
> user of scsh :-(.
>
> Here is the diff to keep libraries in $PREFIX/lib/scsh.
>
> I'm not subscribed to the list and I know very little about ports, so
> any solution for me is fine :D.
>
> Index: Makefile
> ===
> RCS file: /cvs/ports/shells/scsh/Makefile,v
> retrieving revision 1.23
> diff -d -u -p -w Makefile
> --- Makefile    15 Sep 2007 21:17:25 -      1.23
> +++ Makefile    20 Mar 2010 06:59:39 -
> @@ -28,6 +28,5 @@ post-install:
>        ${INSTALL_DATA_DIR} ${PREFIX}/share/scsh/emacs
>        ${INSTALL_DATA} ${WRKSRC}/emacs/* ${PREFIX}/share/scsh/emacs/
>       �...@mv ${PREFIX}/lib/scsh/doc ${PREFIX}/share/doc/scsh
> -       @mv ${PREFIX}/lib/scsh/*/ ${PREFIX}/share/scsh/
>
>  .include 
>

Any feedback on this ? port is still broken :-(.

Thanks.



[PATCH] Wrong scsh library path breaks module system

2010-03-20 Thread Christiano F. Haesbaert
Hi there,

The current scsh port is half-broken, we move all scsh libraries from
/usr/local/lib/scsh to /usr/local/share/scsh without any change to
scsh compilation options. So the binary can't find any package, try
"scsh -o sicp" for example.

We have two options, tune configure to make it search libraries in
$PREFIX/share/scsh or let them in /usr/local/lib/scsh, I vote for the
second option.

Looking at the date of the Makefile 2007/09/15, it seems I'm the sole
user of scsh :-(.

Here is the diff to keep libraries in $PREFIX/lib/scsh.

I'm not subscribed to the list and I know very little about ports, so
any solution for me is fine :D.

Index: Makefile
===
RCS file: /cvs/ports/shells/scsh/Makefile,v
retrieving revision 1.23
diff -d -u -p -w Makefile
--- Makefile15 Sep 2007 21:17:25 -  1.23
+++ Makefile20 Mar 2010 06:59:39 -
@@ -28,6 +28,5 @@ post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/scsh/emacs
${INSTALL_DATA} ${WRKSRC}/emacs/* ${PREFIX}/share/scsh/emacs/
@mv ${PREFIX}/lib/scsh/doc ${PREFIX}/share/doc/scsh
-   @mv ${PREFIX}/lib/scsh/*/ ${PREFIX}/share/scsh/
 
 .include