[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-devel:01228] Re: multi package ?



きくたにです。

やなぎはらさん、詳しい解説ありがとうございました。

jedをmultiで作ろうとしたのですが、dpkg-buildpackageの最後で
落ちます。(file 関係のエラーもよくわからないし)

------------------------------------------------------------
file: option requires an argument -- f
Usage: file [-vczL] [-f namefile] [-m magicfiles] file...
file: illegal option -- p
file: illegal option -- r
file: illegal option -- u
file: illegal option -- n
file: illegal option -- e
Usage: file [-vczL] [-f namefile] [-m magicfiles] file...
file: illegal option -- l
file: illegal option -- s
Usage: file [-vczL] [-f namefile] [-m magicfiles] file...
-- Compressing Documentation
-- Checking Symlinks
dpkg-gencontrol
dpkg-gencontrol: error: must specify package since control info has many (C jeddoc-ja C jedbin-ja)
make: *** [binary-arch] Error 29
------------------------------------------------------------

changelogは
------------------------------------------------------------
jed-ja (0.98.2-1) unstable; urgency=low

  * Initial Release.

 -- Kikutani Makoto <kikutani@xxxxxxxxx>  Mon, 16 Jun 1997 17:25:45 +0900

Local variables:
mode: debian-changelog
End:
------------------------------------------------------------
作業ディレクトリは jed-ja-098-2 です(ディレクトリ名にドットは
許されないらしい)。

controlは
------------------------------------------------------------
Source: jed-ja
Section: editors
Priority: extra
Maintainer: Kikutani Makoto <kikutani@xxxxxxxxx>
Standards-Version: 2.1.1.0

Package: jedbin-ja
Architecture: i386
Depends: ${shlibs:Depends}, jeddoc-ja
Replaces: jed, jed-ja
Suggests: elf-x11r6lib
Provides: info-browser, editor
Description: JED - programmers's editor(Japanese version)
 Jed offers:
 Extensible in a language resembling C. Completely customizable.
 Capable of read GNU info files from within JED's info browser.
 A variety of programming modes (with syntax highlighting) are
 available including Pascal, Java, Perl, C, C++, FORTRAN, TeX,
 HTML, SH, IDL, DCL, NROFF, PostScript.
 Edit TeX files with AUC-TeX style editing (BiBTeX support too).
 Rectangular cut/paste; regular expressions; incremental searches;
 search replace across multiple files; multiple windows; multiple
 buffers; shell modes; directory editor (dired); mail; rmail;
 ispell; and much more.

Package: jeddoc-ja
Architecture: all
Depends: jedbin-ja
Description: jed's slang files and japanese documents
 This pkg provides jed's slang files
------------------------------------------------------------

rules は
------------------------------------------------------------
#!/usr/bin/make -f
# Sample debian.rules file - for GNU Hello (1.3).
# Copyright 1994,1995 by Ian Jackson.
# I hereby give you perpetual unlimited permission to copy,
# modify and relicense this file, provided that you do not remove
# my name from the file itself.  (I assert my moral right of
# paternity under the Copyright, Designs and Patents Act 1988.)
# This file may have to be extensively modified
#
# Modified to be a prototype for debmake by Christoph Lameter <clameter@debian.org>

package=jed-ja

build:
	$(checkdir)
	JED_ROOT=/usr/lib/jed
	export JED_ROOT
	./configure
	make
	make xjed
	make rgrep     
	make getmail   

	touch build

clean:
	$(checkdir)
	-rm -f build
	-make clean
	-rm `find . -name "*~"`
	-rm -rf debian/tmp debian/*/tmp debian/files* core

binary-indep:	checkroot build
	$(checkdir)
	-rm -rf debian/tmp debian/*/tmp
	install -d debian/tmp/usr/lib
	install -d debian/tmp/usr/lib/jed
	install -d debian/tmp/usr/lib/jed/{lib,info,doc,j-doc}
	cp -f doc/* debian/tmp/usr/lib/jed/doc
	cp -f j-doc/* debian/tmp/usr/lib/jed/j-doc
	cp -f info/* debian/tmp/usr/lib/jed/info
	cp -f lib/* debian/tmp/usr/lib/jed/lib
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-arch:	checkroot build
	$(checkdir)
	-rm -rf debian/tmp debian/*/tmp
	install -d debian/tmp/usr/{bin,lib}
	install -d debian/tmp/usr/lib/jed
	install -d debian/tmp/usr/lib/jed/{lib,bin}
	install -cs src/linuxobjs/jed debian/tmp/usr/bin
	install -cs src/linuxobjs/xjed debian/tmp/usr/bin
	install -cs src/linuxobjs/rgrep debian/tmp/usr/bin
	install -cs src/linuxobjs/getmail debian/tmp/usr/lib/jed/bin
	debstd $(package) COPYING COPYRIGHT README INSTALL*
	dpkg-gencontrol
	chown -R root.root debian/tmp
	chmod -R go=rX debian/tmp
	dpkg --build debian/tmp ..

define checkdir
	test -f debian/rules
endef

# Below here is fairly generic really

binary:		binary-indep binary-arch

source diff:
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

checkroot:
	$(checkdir)
	test root = "`whoami`"

.PHONY: binary binary-arch binary-indep clean checkroot
------------------------------------------------------------

jedbin-ja.files は
------------------------------------------------------------
usr/bin
usr/lib/jed/bin
usr/lib/jed/lib/*.slc
------------------------------------------------------------

jeddoc-ja.files は
------------------------------------------------------------
usr/lib/jed/doc
usr/lib/jed/j-doc
usr/lib/jed/info
usr/lib/jed/lib/{*.sl,*.dat,*.hlp,*.rc,*.com}
------------------------------------------------------------

jedbin-ja.postinst は
------------------------------------------------------------
#!/bin/sh
set -e
JED_ROOT=/usr/lib/jed
export JED_ROOT
/usr/bin/jed -batch -n -l preparse
------------------------------------------------------------

などとなっております。
変なところを指摘してください。

なお
% dpkg -l debmake
Desired=Unknown/Install/Remove/Purge
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name            Version        Description
+++-===============-==============-============================================
ii  debmake         1.95           Development environment for Debian Sourcepac 
ですが、debstdnというコマンドはないようです。

-- 
人生を背負い投げ                                       [T-Code練習中]

菊谷 誠(Kikutani Makoto)  kikutani@xxxxxxxxx kikutani@xxxxxxxxxxxxxxx
hgf03701@xxxxxxxxxxxxxxxx    http://www.eis.or.jp/muse/kikutani/