> (./configure --enable-gui=motif) then make. I then tried to make a deb > package with 'dpkg-buildpackage' but it goes and reconfigures it and > makes it again. I have already done that as I wanted it compiled with > the motif gui (thats why I want to replace the default vim). > > How do I make a deb package from an already configured and linked > binary?
You don't. What I would do (from having a quick look at the vim package) is add your own variant to the vim package. It seems (if i'm mistaken please correct me) to build a whole bunch of packages from the same source all slightly differently configured. --- rules 2003-02-11 15:04:30.000000000 +1100 +++ rules-motif 2003-02-11 15:27:49.000000000 +1100 @@ -19,7 +19,7 @@ GUIFLAGS+=--enable-xim GUIFLAGS+=--enable-fontset -VARIANTS=tiny gtk perl python ruby tcl +VARIANTS=tiny gtk perl python ruby tcl motif CFLAGS_tiny=$(CFLAGS) -DAUTOCMD -DWANT_EVAL -DWANT_MODIFY_FNAME CFGFLAGS_tiny=$(CFGFLAGS) --without-x --enable-gui=no CFLAGS_gtk=$(CFLAGS) -DFEAT_SIGNS -DFEAT_RIGHTLEFT @@ -32,6 +32,9 @@ CFGFLAGS_ruby=$(CFGFLAGS) $(OPTFLAGS) $(GUIFLAGS) --enable-rubyinterp CFLAGS_tcl=$(CFLAGS) -DFEAT_SIGNS -DFEAT_RIGHTLEFT CFGFLAGS_tcl=$(CFGFLAGS) $(OPTFLAGS) $(GUIFLAGS) --enable-tclinterp +CFGFLAGS_motif=$(CFLAGS) $(OPTFLAGS) --enable-gui=motif e.g something like the above to the ./debian/rules file. You might want to change some of the other bits and pieces in there too. I would then modify the debian/changelog file (checkout 'dch' from the devscripts package, makes it very easy) to bump the version to something different I knew was my version, and run *from the top level directory* './debian/rules binary -r fakeroot'. this will create your deb with the config options you want as one of the variants. install it and put it on hold if you don't want it overwritten later. -i [EMAIL PROTECTED] http://www.gelato.unsw.edu.au -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
