NetBSD/macppc
  CDROM 起動
  全体の流れ (OF3)
  全体の流れ (OF 1/2)
  getting OF
  Boot from CDROM
sysinst
  overall flow
  installboot
  入力が出来ない
区画
  区画方針
  OS X CDROM を使う
  pdisk を使う
  sysinst と区画
  初めての pdisk
    結果
    変更前
    操作
    実際の操作
    pdisk/help
sysinst 後
  check the partition #
  first boot
  regular boot with CDROM
  /etc/rc.conf
    root login refused
boot-device
  hfsutils
  OF boot
    CDROM
    after install
X11
  X11R6.6+XF86
    binary
    source
      20061211
      for 4.99.1 (gcc-4.1.2)
      for 3.99.17
      3.99.8
      3.99.9
    XF86Config
  xorg
packages
  binary
  pkgsrc
  bulk build
  chroot
    準備
    実行
  bulk build 実際
status
  20070724 4.99.
  20070526 4.99.20
  20070203 4.99.9
  20061008 4.99.3
  20060822 4.99.1
  20060702 3.99.21
  20060527 3.99.20
  20060506 3.99.x
  20060407 3.99.17
  20060101 3.99.15
  20050928 3.99.9
  20050918 3.99.9
    packages
  20050829 3.99.8
  pkgsrc
    meta-pkg
    gimp
    gdb on Emacs
    FireFox
    rtk
    tlp
  20050707
  20050605
  20050416
  20050405
  tips for mini
URL
  

Software 入口 | NetBSD 解説 | pkgsrc 各論 | macppc | TsubaiBSD 絹/software/全文検索

NetBSD/macppc

Last Update: "2008/11/13 10:21:05 makoto"

bulk build

bulk build とは、NetBSD に用意されているアプリケーションパッケージ の pkgsrc を全てコンパイルする試みです。 例えば 2005/09 現在ですと、5,500 種くらいあります。 これらの全ての実行形式(binary package) を作ります。 簡単には、次のようにします。
# cd /usr/pkgsrc/mk/bulk # cp build.conf-example build.conf # vi build.conf # sh build
etc/mk.conf:
ttyp1:makoto@umax  14:20:11/050419(~)> cat /etc/mk.conf 
ACCEPTABLE_LICENSES+=no-profit
X11BASE=/usr/X11
X11BASE=       /usr/X11
X11_TYPE=      native
ProjectRoot=    /usr/X11
X11ROOTDIR=    /usr/X11
X11PREFIX=     /usr/X11
  1. graphics/xpm で Imakefile.c:9: Imake.tmpl: No such file or directory -> xpkgwedge http://www.jp.netbsd.org/ja/JP/ml/port-powerpc-ja/200503/msg00004.html
    cd /usr/pkgsrc/pkgtools/xpkgwedge patch -s -p0 < xpkgwedge-diff
  2. gimp
    cd /usr/pkgsrc patch -s -p0 < gimp-xpm.diff
    Index: Makefile
    ===================================================================
    RCS file: /e/st4200/cvsync/pkgsrc/graphics/gimp/Makefile,v
    retrieving revision 1.115
    diff -u -r1.115 Makefile
    --- Makefile	16 Mar 2005 19:06:09 -0000	1.115
    +++ Makefile	13 Apr 2005 13:01:46 -0000
    @@ -68,6 +68,7 @@
     .include "../../graphics/png/buildlink3.mk"
     .include "../../graphics/tiff/buildlink3.mk"
     .include "../../graphics/libwmf/buildlink3.mk"
    +.include "../../graphics/xpm/buildlink3.mk"
     .include "../../print/gimp-print-lib/buildlink3.mk"
     .include "../../textproc/intltool/buildlink3.mk"
     .include "../../www/libgtkhtml/buildlink3.mk"
    
  3. /usr/X11/include/X11/Xlib.h
    cd /usr sudo patch -s -p0 < Xlib.h-patch
  4. suse_base/Makefile pkg/29461
    cd /usr/pkgsrc patch -s -p0 < suse_date.patch
その他
  1. apache2 / with-escape-sequence
    cd /usr/pkgsrc patch -s -p0 < bulk-build-apache2.diff
    --- /dev/null	2005-04-14 09:41:56.000000000 +0900
    +++ apache2/patches/patch-ax	2005-02-12 14:02:35.000000000 +0900
    @@ -0,0 +1,11 @@
    +--- modules/metadata/mod_mime_magic.c-orig	2005-02-12 14:01:38.000000000 +0900
    ++++ modules/metadata/mod_mime_magic.c	2005-02-12 01:38:51.000000000 +0900
    +@@ -2014,7 +2014,7 @@
    + 	    if (STREQ(p->name, token)) {
    + 		magic_rsl_puts(r, types[p->type]);
    + 		if (has_escapes)
    +-		    magic_rsl_puts(r, " (with escape sequences)");
    ++		    magic_rsl_puts(r, " (with-escape-sequences)");
    + 		return 1;
    + 	    }
    + 	}
    Index: apache2/distinfo
    ===================================================================
    RCS file: /e/owada/cvsync/pkgsrc/www/apache2/distinfo,v
    retrieving revision 1.35
    diff -u -r1.35 distinfo
    --- apache2/distinfo	3 Jan 2005 06:59:31 -0000	1.35
    +++ apache2/distinfo	12 Feb 2005 05:03:33 -0000
    @@ -14,3 +14,4 @@
     SHA1 (patch-ar) = c6769617cd9111f6d233d68883c71988a36fbbce
     SHA1 (patch-as) = c6fb574d5d96024e641816569f059bca4368fcec
     SHA1 (patch-at) = dd9a3eb14b3e20876eca6eff968e82326a53b7d9
    +SHA1 (patch-ax) = a7054114f4c31dff3cea2b0e73bb8541657d27b0
    
    
  2. php4 に mbstring を加える (this is obsolete, see misc/php-mbstring)
    cd /usr/pkgsrc patch -s -p0 < php4-mbstring.diff
    Index: Makefile.common
    ===================================================================
    RCS file: /e/st4200/cvsync/pkgsrc/www/php4/Makefile.common,v
    retrieving revision 1.47
    diff -u -r1.47 Makefile.common
    --- Makefile.common	11 Apr 2005 20:02:57 -0000	1.47
    +++ Makefile.common	15 Apr 2005 01:21:40 -0000
    @@ -32,3 +32,6 @@
     PKG_SYSCONFVAR?=	php
     
     .include "../../mk/bsd.prefs.mk"
    +
    +CONFIGURE_ARGS+= --enable-i18n --enable-mbstring --enable-mbstr-enc-trans
    +CONFIGURE_ARGS+= --enable-trans-sid --enable-session
    
  3. Xaw3d problem
    See diary in Japanese at 2005/8/10
    cd /usr sudo patch -s -p0 < 20050810-Xaw3d.patch
  4. inputmethod/kinput2
    cd inputmethod/kinput2 
    patch -s -p0 < ~/Mail/netbsd/tech-pkg-ja/3019
    
  5. sj3-lib
    cd inputmethod
    patch -s -p0 < ~/Mail/netbsd/tech-pkg-ja/3035
    
    (sj3-server-bin should be pkg_delete and make clean && make package)
  6. samba
    これは実行時に問題が起きます。
    Starting nmbd.
    /usr/pkg/sbin/nmbd: Unsupported relocation type 6 in non-PLT relocations
    Starting smbd.
    /usr/pkg/sbin/smbd: Unsupported relocation type 6 in non-PLT relocations
    
    とりあえず、次の変更でしのげます。See also: pkg/38961
    Index: Makefile
    ===================================================================
    RCS file: /e/s900/cvsync/pkgsrc/net/samba/Makefile,v
    retrieving revision 1.165
    diff -u -r1.165 Makefile
    --- Makefile    1 Oct 2006 14:58:38 -0000       1.165
    +++ Makefile    11 Oct 2006 02:11:43 -0000
    @@ -57,6 +57,7 @@
     
     CONFIGURE_ARGS+=       --with-swatdir=${PREFIX}/share/samba/swat
     CONFIGURE_ARGS+=       --with-libsmbclient
    +CONFIGURE_ARGS+=       --disable-pie
     
     .include "../../converters/libiconv/buildlink3.mk"
     CONFIGURE_ARGS+=       --with-libiconv=${BUILDLINK_PREFIX.iconv}
    
    
    
  7. x11/kterm
    cc -o kterm -O2 -L/usr/pkg/lib -L/usr/pkg//lib button.o charproc.o cursor.o data.o input.o main.o menu.o misc.o screen.o scrollbar.o tabs.o util.o VTPrsTbl.o gset.o convert.o xim.o kinput2.o convlib.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXp -lXext -lX11 -L/usr/pkg//lib -ltermcap -lutil -Wl,-rpath,/usr/pkg/lib:/usr/pkg//lib
    ld: cannot find -lXpm
    ttyp4:makoto@s900 8:09:06/070323(...x11/kterm)> cvs diff
    cvs diff: Diffing .
    Index: Makefile
    ===================================================================
    RCS file: /e/cvsync/cvsync/pkgsrc/x11/kterm/Makefile,v
    retrieving revision 1.39
    diff -u -r1.39 Makefile
    --- Makefile    27 Dec 2006 13:37:42 -0000      1.39
    +++ Makefile    22 Mar 2007 23:06:33 -0000
    @@ -42,4 +42,5 @@
     
     .include "../../x11/libXp/buildlink3.mk"
     .include "../../mk/xaw.buildlink3.mk"
    +.include "../../graphics/xpm/buildlink3.mk"
     .include "../../mk/bsd.pkg.mk"
    cvs diff: Diffing files
    cvs diff: Diffing patches
    cvs diff: Diffing pkg
    ttyp4:makoto@s900 8:14:41/070323(...x11/kterm)> 
    
  8. mk/check
    => Checking for portability problems in extracted files
    awk: /export/pkgsrc/mk/check/check-portability.awk:54: fatal: Unmatched [ or [^: /[[:space:]]#.*/
    
    Index: check/check-portability.awk
    ===================================================================
    RCS file: /e/cvsync/cvsync/pkgsrc/mk/check/check-portability.awk,v
    retrieving revision 1.4
    diff -u -r1.4 check-portability.awk
    --- check/check-portability.awk 13 Nov 2006 23:21:53 -0000      1.4
    +++ check/check-portability.awk 23 Mar 2007 01:12:59 -0000
    @@ -51,7 +51,7 @@
            # Strip comments
            line = $0;
            gsub(/^#.*/, "", line);
    -       gsub(/[[:space:]]#.*/, "", line);
    +       gsub(/\[\[:space:\]\]#.*/, "", line);
     
            check_random(line);
            check_test_eqeq(line);
    ttyp3:makoto@s900 10:14:29/070323(...pkgsrc/mk)> 
    
Last Update: Sat, 07 Jun 2014 22:16:17 GMT 1.66 2008/03/08