caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Matt Gushee <matt@gushee.net>
To: caml-list@inria.fr
Subject: ocamlnet -without-core
Date: Sun, 20 Apr 2008 18:17:32 -0600	[thread overview]
Message-ID: <480BDD1C.6030304@gushee.net> (raw)

Hi, all--

I am attempting to package Ocamlnet for Arch Linux; in the README, Gerd 
suggests splitting the package into several parts--core and various 
add-ons--to keep dependencies sane. Sounds good to me, and I'm trying to 
do it that way. So I have built and installed the core, and am now 
working on the SSL component. However, even though I use the 
-without-core option as recommended, the entire core still seems to get 
built (and installed). The following is my build function. Arch is a 
rather minimalist distribution so, although the package builder does a 
few things before and after the build, I'm pretty sure it doesn't 
intervene in the build process itself--so my script should be doing 
exactly the same as if I executed the commands manually. The patch is 
just a very simple tweak to add a $(OCAMLFIND_INSTFLAGS) argument to the 
'ocamlfind install' command in Makefile.rules.


build() {
   cd "$srcdir/ocamlnet-$pkgver"

   patch -p1 <../ocamlnet-install.patch

   ./configure -without-core -enable-ssl -bindir /usr/bin -datadir 
/usr/share/ocamlnet

   make all
     INC_NETSYS="-package netsys" \
     INC_NETSTRING="-package netstring" \
     INC_EQUEUE="-package equeue" \
     INC_NETCGI1="-package netcgi1" \
     INC_NETCGI2="-package netcgi2" \
     INC_NETPLEX="-package netplex" \
     INC_RPC="-package rpc" \
     INC_SHELL="-package shell" \
     || return 1
   make opt
     INC_NETSYS="-package netsys" \
     INC_NETSTRING="-package netstring" \
     INC_EQUEUE="-package equeue" \
     INC_NETCGI1="-package netcgi1" \
     INC_NETCGI2="-package netcgi2" \
     INC_NETPLEX="-package netplex" \
     INC_RPC="-package rpc" \
     INC_SHELL="-package shell" \
     || return 1

   mkdir -p $pkgdir/usr/lib/ocaml/site-lib/stublibs
   make DESTDIR=$pkgdir \
     OCAMLFIND_INSTFLAGS="-destdir $pkgdir/usr/lib/ocaml/site-lib 
-ldconf ignore" \
     install
}


So, am I doing something wrong?

-- 
Matt Gushee
: Bantam - lightweight file manager : matt.gushee.net/software/bantam/ :
: RASCL's A Simple Configuration Language :     matt.gushee.net/rascl/ :


             reply	other threads:[~2008-04-21  0:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-21  0:17 Matt Gushee [this message]
2008-04-21 10:21 ` [Caml-list] " Gerd Stolpmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=480BDD1C.6030304@gushee.net \
    --to=matt@gushee.net \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).