[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-module-build
Subject:    Re: [Module::Build] Getting started help
From:       Steffen Schwigon <schwigon () webit ! de>
Date:       2006-06-21 7:17:54
Message-ID: 87hd2frn8d.fsf () teufelkommraus ! webit ! de
[Download RAW message or body]

Hi!

Your question and my answer came to the deprecated list address.
I don't know whether you read my answer there. Here's the right place.

Steffen



X-From-Line: schwigon@webit.de  Wed Jun 21 09:08:32 2006
Received: from teufelkommraus.webit.de (teufelkommraus.webit.de
 [195.30.114.50])
	by ausdauer.webit.de (8.12.3/8.12.3/Debian-7.2) with ESMTP id
 k5L797uM003129
	for <schwigon@webit.de>; Wed, 21 Jun 2006 09:09:07 +0200
Received: from teufelkommraus.webit.de (ss5@localhost [127.0.0.1])
	by teufelkommraus.webit.de (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id
 k5L790ot026706
	for <schwigon@webit.de>; Wed, 21 Jun 2006 09:09:00 +0200
Received: (from ss5@localhost)
	by teufelkommraus.webit.de (8.13.4/8.13.4/Submit) id k5L790Ek026704
	for schwigon@webit.de; Wed, 21 Jun 2006 09:09:00 +0200
Received: from ausdauer.webit.de (ausdauer.webit.de [195.30.114.250])
	by teufelkommraus.webit.de (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id
 k5L78mmj026688
	for <ss5@teufelkommraus.webit.de>; Wed, 21 Jun 2006 09:08:48 +0200
Received: from ausdauer.webit.de (localhost [127.0.0.1])
	by ausdauer.webit.de (8.12.3/8.12.3/Debian-7.2) with ESMTP id
 k5L78tuM003100
	for <ss5@teufelkommraus.webit.de>; Wed, 21 Jun 2006 09:08:55 +0200
Received: (from schwigon@localhost)
	by ausdauer.webit.de (8.12.3/8.12.3/Debian-7.2) id k5L78sK3003096
	for ss5@teufelkommraus.webit.de; Wed, 21 Jun 2006 09:08:54 +0200
Received: from lists-outbound.sourceforge.net
 (lists-outbound.sourceforge.net [66.35.250.225])
	by ausdauer.webit.de (8.12.3/8.12.3/Debian-7.2) with ESMTP id
 k5L78puM003077
	for <schwigon@webit.de>; Wed, 21 Jun 2006 09:08:54 +0200
Received: from sc8-sf-list1-new.sourceforge.net (unknown [10.3.1.93])
	by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP
	id 767A9130E1; Wed, 21 Jun 2006 00:08:50 -0700 (PDT)
Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92]
	helo=mail.sourceforge.net)
	by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43)
	id 1FswpU-0006FZ-6C for module-build-general@lists.sourceforge.net;
	Wed, 21 Jun 2006 00:08:48 -0700
Received: from ausdauer.webit.de ([195.30.114.250])
	by mail.sourceforge.net with esmtps (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.44) id 1FswpQ-0004wU-Ea
	for module-build-general@lists.sourceforge.net;
	Wed, 21 Jun 2006 00:08:48 -0700
Received: from teufelkommraus.webit.de (teufelkommraus.webit.de
	[195.30.114.50])
	by ausdauer.webit.de (8.12.3/8.12.3/Debian-7.2) with ESMTP id
	k5L78duM003046 for <module-build-general@lists.sourceforge.net>;
	Wed, 21 Jun 2006 09:08:39 +0200
Received: from teufelkommraus.webit.de (ss5@localhost [127.0.0.1])
	by teufelkommraus.webit.de (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id
	k5L78WdQ026683 for <module-build-general@lists.sourceforge.net>;
	Wed, 21 Jun 2006 09:08:32 +0200
Received: (from ss5@localhost)
	by teufelkommraus.webit.de (8.13.4/8.13.4/Submit) id k5L78W24026681;
	Wed, 21 Jun 2006 09:08:32 +0200
X-Authentication-Warning: teufelkommraus.webit.de: ss5 set sender to
	schwigon@webit.de using -f
To: module-build-general@lists.sourceforge.net
References: <A4B2840BABACAB46A3100E0DCD4DEDDDBED3DB@IMCSRV3.MITRE.ORG>
From: Steffen Schwigon <schwigon@webit.de>
Organization: webit! Gesellschaft fuer neue Medien mbH
Date: Wed, 21 Jun 2006 09:08:32 +0200
In-Reply-To: <A4B2840BABACAB46A3100E0DCD4DEDDDBED3DB@IMCSRV3.MITRE.ORG> (Fotios
	Lindiakos's message of "Tue, 20 Jun 2006 12:50:27 -0400")
Message-ID: <87lkrrrnnz.fsf@teufelkommraus.webit.de>
User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)
Subject: Re: [Module::Build] Getting started help
X-BeenThere: module-build-general@lists.sourceforge.net
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: <module-build-general.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/module-build-general>,
	<mailto:module-build-general-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=module-build-general>
List-Post: <mailto:module-build-general@lists.sourceforge.net>
List-Help: <mailto:module-build-general-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/module-build-general>,
	<mailto:module-build-general-request@lists.sourceforge.net?subject=subscribe>
Sender: module-build-general-bounces@lists.sourceforge.net
Errors-To: module-build-general-bounces@lists.sourceforge.net
X-Loop: schwigon@webit.de
X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on 
	teufelkommraus.webit.de
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=0.1 tests=none autolearn=unavailable 
	version=3.0.3
X-UIDL: ^JB"!5Gk!!&YJ!!h=k!!
X-Content-Length: 1907
Lines: 65
Xref: teufelkommraus.webit.de module-build-general:1944
MIME-Version: 1.0

"Lindiakos, Fotios" <flindiakos@mitre.org> writes:
> First, is there a way for me to put something like hc.conf into /etc
> (assuming I have permission to write there.  Where would I have to
> put the file in the package (under lib, or can I have an etc folder
> or something too)?

I would create a subdir 'etc', put hc.conf into that directory and add
the following config to Build.PL:

    my $build = Module::Build->new (
            #
            # ... all stuff you already have
            #
   
            etc_files     => { 'etc/hc.conf' => 'etc/hc.conf' },
            install_path  => { 'etc' => '/etc' }
    );
    $build->add_build_element('etc');
    $build->create_build_script;
    $build->create_makefile_pl;


But I don't know how to make that absolute path '/etc' to work with a
given '--prefix=/somewhere' option. Maybe there's a better way.


> Second, how can I have CPAN automatically build missing dependencies,
> or query for them or something.

That should already work automatically because you specified them with
'requires => {...}'. The CPAN shell will install missing prerequisites
if you configured it to "follow automatically" or "ask".


> On that note (not M::B specific), is there a way that I can test
> using CPAN to install my modules?

I always do manually what the CPAN shell does, e.g. this way:

    # from your project dir
    ./Build dist
    cp My-Dist-0.1.tar.gz /tmp/
  
    # now everything in /tmp dir
    cd /tmp
    tar xzf My-Dist-0.1.tar.gz
    cd My-Dist-0.1
    perl Build.PL
    ./Build
    ./Build test
    ./Build fakeinstall      # or install
  

GreetinX
Steffen 
-- 
Steffen Schwigon <schwigon@webit.de>
Dresden Perl Mongers <http://dresden-pm.org/>


_______________________________________________
Module-build-general mailing list
Module-build-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/module-build-general


-- 
Steffen Schwigon <schwigon@webit.de>
Dresden Perl Mongers <http://dresden-pm.org/>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic