[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Simulation software package maintainer is xmds, version 1.5-3



On Thu, Nov 23, 2006 at 05:58:59PM +0100, Christian Holm Christensen wrote:
> Hi Christian,
> 
> On Thu, 2006-11-23 at 16:22 +0100, Christian T. Steigies wrote:
> > On Thu, Nov 23, 2006 at 03:50:40PM +0100, Rafael Laboissiere wrote:
> > > 
> ...
> > I tried only briefly with cdbs, but I don't know how to change configure
> > options with it. So I went back to the simple debhelper/binary package,
> > where I can edit the rules a little more:
> > 
> >         ./configure \
> >         --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
> >         --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
> >         --bindir=\$${prefix}/bin --libdir=\$${prefix}/lib \
> >         --includedir=\$${prefix}/include \
> >         CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
> > 
> > make install installs everything directly in /usr and not in the respective
> > subdirectories. I could move things around in the rules, but I think it
> > should be fixed upstream. Alas, I am not an autotools expert...
> 
> Did you do plain `make install'?  If so, then it would fail.  Instead
> do 
> 
>         make install DESTDIR=debian/tmp 

Yes, that's what dh_make automatically generates.
 
> (check the generated Makefile to see how it works) followed by 
> 
>         dh_install --sourcedir=debian/tmp 
> 
> Make sure you make the proper `.install' files in the debian
> sub-directory e.g., 

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? It seems xmds always needs the one library and two header files,
otherwise it can not compile anything. I don't think this has to be split
into a separate package. But maybe we should move some files to a
subdirectory?

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

I still believe this is a problem in the configure script, and not in
debian/rules. Once I figure out how to commit this to alioth, you can have a
look for yourself.

Christian



Reply to: