Re: Simulation software package maintainer is xmds, version 1.5-3
Hi Christian,
On Thu, 2006-11-23 at 22:05 +0100, Christian T. Steigies wrote:
> On Thu, Nov 23, 2006 at 05:58:59PM +0100, Christian Holm Christensen wrote:
> > Hi Christian,
...
> I don't use that and I also have no install files, probably because I chose
> to build a single binary package. Do I have to split xmds into four
> packages?
I see that xdms builds a program, an archive, some headers, and some
data files. It may be overkill to do more that one package, but you
should talk to your sponsor about that. Also, check the policy.
> It seems xmds always needs the one library and two header files,
> otherwise it can not compile anything.
The library (actually an archive) is linked in at build time, so it
shouldn't be needed at runtime. The only reason to put it in a package
(along with the headers), is if someone wants to use the functionality
exported by the archive, in his or hers own program.
> I don't think this has to be split
> into a separate package. But maybe we should move some files to a
> subdirectory?
The archive should go in `/usr/lib', and the headers in `/usr/include'.
Data should be put in `/usr/share/xdms'. The program must go in
`/usr/bin'
> But back to the make install problem, I tried again with cdbs (autocreated
> by dh_make) and added the configure options. Still all files are installed
> in the root directory, /usr in this case:
>
> *** Contents:
> drwxr-xr-x root/root 0 2006-11-23 21:53 ./
> drwxr-xr-x root/root 0 2006-11-23 21:53 ./usr/
> drwxr-xr-x root/root 0 2006-11-23 21:53 ./usr/bin/
> drwxr-xr-x root/root 0 2006-11-23 21:53 ./usr/sbin/
> -rwxr-xr-x root/root 845136 2006-11-23 21:53 ./usr/xmds
> -rwxr-xr-x root/root 282032 2006-11-23 21:53 ./usr/xsil2graphics
> -rwxr-xr-x root/root 16822 2006-11-23 21:53 ./usr/loadxsil.m
> -rw-r--r-- root/root 825690 2006-11-23 21:53 ./usr/libxmds.a
> -rw-r--r-- root/root 13064 2006-11-23 21:53 ./usr/xmdscomplex.h
> -rw-r--r-- root/root 8116 2006-11-23 21:53 ./usr/getopt_xmds.h
> -rw-r--r-- root/root 4928 2006-11-23 21:53 ./usr/xmdsconfig.h
Hmm.
> I still believe this is a problem in the configure script,
Argh! Just took a look at the configure.in file. The problem is the
lines
dnl Is this a user installation?
AC_ARG_WITH([user],
[ --with-user Install XMDS into user's bin directory],
[bindir="$HOME"/bin
includedir="$HOME"/bin
libdir="$HOME"/bin
mandir="$HOME"/man
USER_LIB="$HOME"/bin
USER_INCLUDE="$HOME"/bin
echo "XMDS will be installed into $bindir"],
[USER_INCLUDE="."
USER_LIB="."])
dnl Just in case --prefix is used, handle the possibility
if test "$prefix" != "NONE"
then
USER_INCLUDE="$prefix"
USER_LIB="$prefix"
bindir="$prefix"
includedir="$prefix"
libdir="$prefix"
mandir="$prefix"
fi
Who ever did that should be shot :-) It's really _really_ ugly. The
intention is, that if you want to install this package as a
non-privileged user, you should end up with everything in one directory
- that's bad. Remove the lines above, and it should work correctly.
Yours,
--
___ | Christian Holm Christensen
|_| | -------------------------------------------------------------
| | Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91
_| DK-2200 Copenhagen N Cell: (+45) 24 61 85 91
_| Denmark Office: (+45) 353 25 404
____| Email: cholm@nbi.dk Web: www.nbi.dk/~cholm
| |
Reply to: