Skip to content

Instantly share code, notes, and snippets.

View hidek's full-sized avatar

Hideo Kimura hidek

View GitHub Profile
@hidek
hidek / gist:59323
Created February 6, 2009 10:33 — forked from mizzy/gist:59320
= モジュールの依存関係 =
rpmbuild でパッケージを作る際に、use/require してるモジュールがすべて rpm の依存関係に含まれてしまう、という問題がある。eval しているモジュールは依存関係の対象とはならないが、以下のように複数行にまたがっていると、依存関係の対象になってしまう。
{{{
eval {
require 'Hoge';
}
}}}
#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Long;
use LWP::Simple;
use File::Temp qw(tempdir);
use Archive::Tar;
use YAML;
use IPC::Run3;