Puppy で pkgsrc を使用する際の tips

リリースされた日本語版に関するもの

モデレータ: 暇人, YoN, nyu

返信する
oh
記事: 28
登録日時: 08/04/30(水) 21:39

Puppy で pkgsrc を使用する際の tips

投稿記事 by oh »

Puppy Linux で パッケージ管理システム pkgsrc を使用する際の tips です。

1.bootstrap スクリプトがエラーになってしまうことへの対処方法
Puppy Linux では groups コマンドがないため pkgsrc/bootstrap/bootstrap スクリプトがエラーになってしまいます。
そこで、環境変数 groupsprog を以下のように設定します。
# export groupsprog="id -gn"

2.find コマンドの PATH の違い
Puppy Linux では find コマンドは /bin/ 直下にありますが、他のディストリビューションでは/usr/bin/ 直下にあるのが一般的なようです。
この違いのため、bmake コマンドを実行する際に、find コマンドが無いといわれてしまいます。
これに対応するために、pkgsrc/mk/tools/tools.Linux.mk ファイルに以下の patch を当てます。

コード: 全て選択

--- tools.Linux.mk      2008/05/24 00:20:33     1.1
+++ tools.Linux.mk      2008/05/24 00:23:20
@@ -66,7 +66,11 @@
 TOOLS_PLATFORM.fgrep?=         /usr/bin/fgrep
 .endif
 TOOLS_PLATFORM.file?=          /usr/bin/file
+.if exists(/bin/find)
+TOOLS_PLATFORM.find?=          /bin/find
+.else
 TOOLS_PLATFORM.find?=          /usr/bin/find
+.endif
 .if exists(/bin/awk)
 TOOLS_PLATFORM.gawk?=          /bin/awk
 .else
以上、1, 2 の対処を行うことにより、pkgsrc/bootstrap/bootstrap スクリプトが正常に動作し、bootstrap がインストールできます。

3.imake 用の template ファイルが無いことへの対処
Puppy Linux では imake 用の template ファイル(/usr/X11R7/lib/X11/config/以下)が無いため、X に関係するパッケージを build しようとすると bmake コマンドがエラーになってしまいます。
これに対処するため、xorg-cf-files-1.0.2 をインストールします。
# ./configure --prefix=/usr/X11R7
# make install

なお、今のところ以下のパッケージがインストールできることを確認しています。

コード: 全て選択

# pkg_info
irchat-pj-2.4.24.22nb1 Emacs lisp interface to Internet Relay Chat
xpkgwedge-1.16      Allows X11 pkgs to be built and used outside of ${X11BASE}
unzip-5.52nb4       List, test and extract compressed files in a ZIP archive
apel-10.7nb1        Portable Emacs library
psgml-mode-1.3.2nb3 SGML/XML mode for Emacs
ess-5.3.4nb1        Emacs Speaks Statistics
semi-1.14.6nb5      Emacs lisp library to provide MIME feature
semantic-1.4.4      Lexer, parser-generator, and parser written for Emacs
zenirc-2.112nb1     IRC client for Emacs
ispell-emacs-3.6nb1 Emacs interface for ispell spell checker
ttmkfdir2-20021109nb3 Tool that creates a fonts.scale file
flex-2.5.35         Fast clone of lex(1), the lexical scanner generator
wl-2.14.0nb6        Mail/news management system with IMAP4rev1 support for Emacs
bmake-20080215      Portable (autoconf) version of NetBSD 'make' utility
pkg_install-20080313 Package management and administration tools for pkgsrc
pkg-config-0.23     System for managing library compile/link flags
emacs-dict-client-1.8.2nb1 Emacs package for talking to a dictionary server
emacs-packages-0.9  Meta-package for the GNU Emacs lisp packages
type1inst-0.6.1nb1  Automatically generate fonts.scale/fonts.dir for Type1 fonts
tc-2.3.1nb2         T-Code driver for Emacs
libmikmod-3.1.11.1nb2 MikMod Sound Library
inputproto-1.4.3    Input extension headers from X.org
xpm-3.4knb7         The X Pixmap library
elib-1.0nb5         Library of utility functions for Emacs
glib-1.2.10nb10     Some useful routines for C programming (glib1)
xmlcatmgr-2.2nb1    XML and SGML catalog manager
flyspell-1.7m       Emacs/Xemacs on-the-fly spell checker
mailcrypt-3.5.8nb1  Emacs frontend for PGP and GPG
auctex-11.84        Enhanced LaTeX mode for Emacs
ruby-rd-mode-0.6.20 Editing mode for RD (Ruby Document Format)
ruby-mode-1.8.6.114 Ruby editing mode for Emacs
emacs-22.1nb4       GNU editing macros (editor)
artist-1.2.6nb1     Elisp drawing package with mouse and keyboard support
skk-20080309        Japanese input methods for Emacs
speedbar-0.14rc4nb2 Directory and code browser for emacs
flim-1.14.7nb2      Emacs lisp library for message representation/encoding
mew-5.2nb1          Messaging in the Emacs World
zenicb-19981202nb3  ICB client for Emacs
ispell-base-3.3.02  Interactive spelling checker
w3m-0.5.2nb2        Multilingualized version of a pager/text-based browser w3m
navi2ch-1.7.5.99.20070423 2ch BBS browser for Emacs
perl-5.8.8nb7       Practical Extraction and Report Language
libungif-4.1.4nb1   Tools and library routines for working with GIF images
eieio-0.17nb2       Enhanced Integration of Emacs Interpreted Objects
emacs-ilisp-20021222nb3 Emacs interface to embedded Lisp process
matlab-mode-2.3.1nb1 Matlab mode for Emacs
libogg-1.1.3        Ogg project codecs library
verilog-mode-3.60nb1 Verilog mode for Emacs
sml-mode-3.9.5nb1   Emacs mode for editing Standard ML source code
boehm-gc-7.0nb1     Garbage collection and memory leak detection for C and C++
bbdb-2.34nb3        Insidious Big Brother DataBase, a rolodex-like database Emacs program
xmms-1.2.11         X Multimedia System - an audio player with a Winamp GUI
vm-7.19nb1          VM (View Mail) is an advanced mail user agent for Emacs
gtk+-1.2.10nb9      GIMP Toolkit v1 - libraries for building X11 user interfaces
libvorbis-1.2.0     Library for the Ogg Vorbis audio encoding format
makedepend-1.0.1    Dependency generator for make
riece-4.0.0         IRC client for Emacs
digest-20080510     Message digest wrapper utility
x11-links-0.35      Shadow tree of links to native X11 headers and libraries
emacs-w3m-1.4.4nb1  Simple w3m interface for Emacs
tamago-20020909nb2  CJK characters inputting system for emacs + leim
tnftp-20070806      The enhanced FTP client in NetBSD
xf86vidmodeproto-2.2.2 XF86VidMode extension headers from modular X.org
etach-1.2.9nb2      Emacs Lisp package for dealing with MIME email attachments
freetype2-2.3.5     Font rendering engine and library API
jpeg-6bnb4          IJG's jpeg compression utilities
qkc-1.0nb1          Quick Kanji code Converter
bison-2.3           GNU yacc(1) replacement
rcs-5.7nb3          GNU Revision Control System - version control software
intlfonts-1.2.1nb5  Free X11 fonts (BDF format) for all characters that Emacs can handle
haskell-mode-1.44nb1 Haskell mode for Emacs
bootstrap-mk-files-20080310 *.mk files for the bootstrap bmake utility
python-mode-4.54nb1 Emacs mode for editing python files
elscreen-1.4.5      Window manager within Emacs
libtool-base-1.5.24nb5 Generic shared library support script (the script tself)
png-1.2.27beta03    Library for manipulating PNG images
MesaLib-6.4.2nb3    Graphics library similar to SGI's OpenGL
pax-20080110        POSIX standard archiver with many extensions
libxml2-2.6.31      XML parser library from the GNOME project
tiff-3.8.2nb3       Library and tools for reading and writing TIFF data files
doxymacs-1.8.0      Doxygen editing support for Emacs
以上、ご参考まで。
返信する