[Pkg-octave-devel] Re: [sundials-users] include file directory layout

Rafael Laboissiere rafael at debian.org
Fri Jun 16 08:52:13 UTC 2006


* Thomas Weber <thomas.weber.mail at gmail.com> [2006-06-16 09:41]:

> is this discussion archived somewhere? I couldn't find it at
> http://www.llnl.gov/casc/sundials/support/mailArchive/maillist.html
> But the last archived posting is from 09 June.
> 
> Andrey, while it is easy for you to post ot pkg-octave-devel, everyone
> outside who is not subscribed must wait for his message to be approved. 
> 
> So, we should probably have this discussion at one place only.

I would agree with you if the issues discussed concerned either only the
SUNDIALS upstream development or only the Debian packaging.  I am
reintroducing the sundials-users mailing list addrss to the Cc: of this
message, because my comment below regards also the upstream development.

Notice that both sundials-users and pkg-octave-devel are closed mailing
lists, only accepting posts from people subscribed to them.  I am the ML
admin for the pkg-octave group and I use to act very quickly as regards
admin message approvals.  Furthermore, I use to add people who send
non-spam messages to the list of addresses allowed to post, such that
their messages are always automatically aproved.

> > Andrey
> > p.s. The fresh 2.2.0 Debian package installs SUNDIALS headers and header 
> > subdirectories right into /usr/include. Guess we have to fix this  in Debian.
> 
> Eh, fixing this in Debian only will mean different compiler options
> (-I ....). This is something we should avoid!

Right.  Contrary to Andrey's opinion, I do not see the use of several
$prefix/include/<sub-pkg> directories as a serious problem.  

At any event, the SUNDIALS team could provide a pkg-config file (say,
/usr/lib/pkgconfig/sundials.pc) that would give the appropriate compiler
flags as in:

    cc program.c `pkg-config --cflags --libs sundials`

Just create a file called sundials.pc.in like this:

#############################################################################
prefix=@prefix@
libdir=${prefix}/lib
includedir=${prefix}/include/sundials

Name: SUNDIALS
Description: SUite of Nonlinear and DIfferential/ALgebraic equation Solvers
Requires:
Version: 2.2.0
Libs: -L${libdir} -lsundials_cvode -lsundials_cvodes -lsundials_ida -lsundials_kinsol
Cflags: -I${includedir}
#############################################################################

And add sundials.pc to the list of arguments of AC_CONFIG_FILES in
configure.ac.

-- 
Rafael



More information about the Pkg-octave-devel mailing list