[Momonga-devel.ja:00680] Re: acid spec error
- From: Kazuhiko <kazuhiko@xxxxxxxxxx>
- Date: Sat, 26 Oct 2002 10:55:26 +0900
かずひこです。
At Fri, 25 Oct 2002 21:20:44 -0400,
Kikutani, Makoto <poo@xxxxxxxxxxxxxxxxx> wrote:
> Finding Provides: (using /usr/lib/rpm/find-provides)...
> Finding Requires: (using /usr/lib/rpm/find-requires)...
> error: line 60: Dependency tokens must begin with alpha-numeric, '_' or '/': - I made this based on PLD Linux's spec
>
> error: Failed to find Requires:
これは、
> %install
> rm -rf $RPM_BUILD_ROOT
> install -d $RPM_BUILD_ROOT/home/httpd/html/%{name}
>
> install acid* index.html $RPM_BUILD_ROOT/home/httpd/html/%{name}
このときの元のファイル (acid* index.html) のパーミッションが 755 だった
ため、中身はただのテキストなのに Finding Requires: ががんばって依存を見
つけようとしておかしなことになっていたようです。
install -d -m 750 %{buildroot}%{_contentdir}/html/%{name}
install -m 640 acid* index.html %{buildroot}%{_contentdir}/html/%{name}
こんな感じにパーミッションを明示して install を呼ぶことで解決しました。
その他ちょろっといじって commit しておきました。
--
かずひこ@...
http://www.fdiary.net/~kazuhiko/diary/ http://www.momonga-linux.org/
http://openlab.jp/edict/ http://openlab.jp/efont/
http://www.gk-kyoto.com/ http://www.univehicle.net/