2004-06-14(月) 晴 [長年日記]
_ pkgsrc on Cygwin
portage を使っていろいろやりましたがエラーが出るので他のパッケージ管理システムを探していたところ慈悲深い OS の pkgsrc が使えるかもということで試してみました。
$ export CVSROOT=:pserver:anoncvs@anoncvs.netbsd.org:/cvsroot $ touch ~/.cvspass $ cvs login $ cd /usr $ cvs co pkgsrc/bootstrap $ cd pkgsrc/booystrap $ ./bootstrap $ ./bootstrap ===> bootstrap command: ./bootstrap ===> bootstrap started: Mon Jun 14 20:06:52 2004 This platform (CYGWIN_NT-5.1) is untried - good luck, and thanks for using pkgsrc Working directory is: work You must be root to install bootstrap-pkgsrc.
$ diff -u bootstrap.orig bootstrap --- bootstrap.orig 2004-05-11 11:07:19.000000000 +0900 +++ bootstrap 2004-06-14 20:08:47.359375000 +0900 @@ -143,9 +143,9 @@ is_root() { - if [ `$idprog -u` != 0 ]; then - return 0 - fi +# if [ `$idprog -u` != 0 ]; then +# return 0 +# fi return 1 }
$ ./bootstrap ===> bootstrap command: ./bootstrap ===> bootstrap started: Mon Jun 14 20:08:54 2004 This platform (CYGWIN_NT-5.1) is untried - good luck, and thanks for using pkgsrc Working directory is: work ===> Creating mk.conf.example in work ===> running: /usr/bin/sh work/install-sh -d -o root -g wheel /usr/pkg chown: `root': invalid user ===> exited with status 1 aborted.
$ diff -u passwd.orig passwd --- passwd.orig 2004-06-11 06:29:13.468750000 +0900 +++ passwd 2004-06-14 20:15:21.328125000 +0900 @@ -1,4 +1,5 @@ SYSTEM:*:18:544:,S-1-5-18:: +root:*:544:544:,S-1-5-32-544:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused_by_nt/2000/xp:500:513:U-PHOTON\Administrator,S-1-5-21-7765 61741-179605362-725345543-500:/home/Administrator:/bin/bash ASPNET:unused_by_nt/2000/xp:1004:513:ASP.NET Machine Account,U-PHOTON\ASPNET,S- 1-5-21-776561741-179605362-725345543-1004:/home/ASPNET:/bin/bash
$ diff -u group.orig group --- group.orig 2004-06-11 06:29:13.000000000 +0900 +++ group 2004-06-14 20:13:02.750000000 +0900 @@ -1,3 +1,4 @@ +wheel:S-1-5-32-544:0: root:S-1-5-32-544:0: SYSTEM:S-1-5-18:18: なし:S-1-5-21-776561741-179605362-725345543-513:513:
$ cd /usr/pkgsrc/bootstrap $ ./bootstrap (snip) gcc *.o -o bmake.boot rm -f *.[ado] */*.[ado] CC="gcc" MAKESYSPATH=/usr/pkg/share/mk ./bmake.boot -f Makefile bmake.boot: unknown option -- - getopt(BD:I:J:NPST:V:Wd:ef:ij:km:nqrst) -> 63 (?) Usage: bmake.boot [-Beiknqrst] [-D variable] [-d flags] [-f makefile ] [-I directory] [-j max_jobs] [-m directory] [-V variable] [variable=value] [target ...] make: *** [bootstrap] Error 2 ===> exited with status 2 aborted.
おのぼりさん日記と同じところでこけました。頓挫。。。
_ portupgrade mail/courier-imap print/ghostscript-gnu multimedia/xvid
courier-imap-3.0.4,1 < needs updating (port has 3.0.5,1) ghostscript-gnu-7.07_6 < needs updating (port has 7.07_7) xvid-1.0.1_1,1 < needs updating (port has 1.0.1_2,1)
! graphics/ImageMagick (ImageMagick-6.0.1.3) (unknown build error)