Alexander Nasonov's shared items

Friday, September 18, 2009


We've been waiting for update for a long time, the previous version in pkgsrc is lang/gcc34 (wip/gcc42 doesn't count ;-)
Module Name:    pkgsrc
Committed By:   dmcmahill
Date:           Fri Sep 18 11:24:50 UTC 2009

Update of /cvsroot/pkgsrc/lang/gcc44
In directory

Log Message:
Import gcc-4.4.1 as lang/gcc44.  This is the latest branch of gcc.
Of particular note is this package contains gfortran which is required
for building some scientific software (recent versions of scilab
for example).  Package is prepared as a monolithic install of gcc
since gcc is really not set up to build and install the core and then
later add on different languages as their own packages.


Vendor Tag:     TNF
Release Tags:   pkgsrc-base
N pkgsrc/lang/gcc44/
N pkgsrc/lang/gcc44/Makefile
N pkgsrc/lang/gcc44/DESCR
N pkgsrc/lang/gcc44/MESSAGE
N pkgsrc/lang/gcc44/
N pkgsrc/lang/gcc44/distinfo
N pkgsrc/lang/gcc44/patches/patch-ad
N pkgsrc/lang/gcc44/patches/patch-aa
N pkgsrc/lang/gcc44/patches/patch-ab
N pkgsrc/lang/gcc44/patches/patch-ae
N pkgsrc/lang/gcc44/patches/patch-ac
N pkgsrc/lang/gcc44/files/i386-dragonfly64.h
N pkgsrc/lang/gcc44/files/dragonfly-spec.h
N pkgsrc/lang/gcc44/files/dragonfly.h
N pkgsrc/lang/gcc44/files/i386-dragonfly.h
N pkgsrc/lang/gcc44/files/hello.f
N pkgsrc/lang/gcc44/files/hello.m

No conflicts created by this import

Wednesday, September 16, 2009

Multiline comments in shell with here-document

Did you know that you can use multiple lines in shell with the ":" command and a here-document? The following example is inspired by two scripts from SHELLdorado:
: <<!
if ! file .; then wc `echo *`; fi
! df | tail
wc $(echo *)
If '<<!' doesn't work, you can switch to '<<SOMETHING_UNIQUE'.

Tuesday, September 15, 2009

ZFS in FreeBSD

Author: pjd                                                                             
Date: Tue Sep 15 11:34:53 2009                                                          
New Revision: 197218                                                                    
  We believe ZFS is ready for production use. Remove a warning about it being           
  experimental. :)                                                                      
Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c               
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c     Tue Sep 15      
+11:23:59 2009  (r197217)                                                               
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c     Tue Sep 15      
+11:34:53 2009  (r197218)                                                               
@@ -3072,8 +3072,6 @@ zfs_modevent(module_t mod, int type, voi                          
        switch (type) {                                                                 
        case MOD_LOAD:                                                                  
                zfs_root_token = root_mount_hold("ZFS");                                
-               printf("WARNING: ZFS is considered to be an experimental "              
-                   "feature in FreeBSD.\n");                                           
                mutex_init(&zfs_share_lock, NULL, MUTEX_DEFAULT, NULL);                 

Saturday, September 12, 2009

Tetris to the rescue!

I never play games when I recover a computer but apparently some people do:
From  Mon Sep  7 20:50:54 2009
Received: from ( [])
 by (Postfix) with ESMTP id E6F8B63BCFB
 for ; Mon,  7 Sep 2009 20:50:54 +0000 (UTC)
Message-Id: <>
Date: Mon,  7 Sep 2009 20:50:43 +0000 (UTC)
Subject: /rescue/tetris should not use high scores file
X-Send-Pr-Version: 3.95

>Number:         42009
>Category:       bin
>Synopsis:       /rescue/tetris should not use high scores file
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    dholland
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 07 20:55:00 +0000 2009
>Closed-Date:    Tue Sep 08 13:49:23 +0000 2009
>Last-Modified:  Tue Sep 08 13:49:23 +0000 2009
>Originator:     Alan Barrett
>Release:        NetBSD 5.99.16
Not much
System: NetBSD 
Architecture: i386
Machine: i386
 /rescue/tetris tries to use /var/games/tetris.scores.  If the system
        is in a bad state, possibly with corrupted file systems, it
        would be a bad idea to write anywhere without a deliberate
        decision by the sysadmin.  Simply running a game does not count
        as as deliberate decision to write to the file system.
 press 'q' to quit.
 see this message:
 tetris: Cannot open /var/games/tetris.scores for read/write:
  Permission denied
 Disable the high scores feature in the rescue version of tetris.



Responsible-Changed-From-To: bin-bug-people->dholland
Responsible-Changed-When: Mon, 07 Sep 2009 23:33:37 +0000

From: "David A. Holland" 
Subject: PR/42009 CVS commit: src/games/tetris
Date: Tue, 8 Sep 2009 13:38:01 +0000

 Module Name: src
 Committed By: dholland
 Date:  Tue Sep  8 13:38:01 UTC 2009

 Modified Files:
  src/games/tetris: scores.c

 Log Message:
 Disable writing scores when built for /rescue. PR 42009


 To generate a diff of this commit:
 cvs rdiff -u -r1.17 -r1.18 src/games/tetris/scores.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-When: Tue, 08 Sep 2009 13:49:23 +0000
fixed, thanks