[nhc-bugs] building on Debian 3.0

Brent Fulgham bfulg@pacbell.net
Thu, 06 Feb 2003 23:30:54 -0800


Richard, I'm cc'ing the nhc-bugs list because I think my answer might
be helpful to others.  Apologies for this breach of protocol:

On Thu, 06 Feb 2003 23:07:58 -0800
Richard Uhtenwoldt <ru@river.org> wrote:

> Brent Fulgham writes:
> 
> >ftp://ftp.debian.org/debian/pool/main/n/nhc98/nhc98_1.4-8_i386.deb
> >ftp://ftp.debian.org/debian/pool/main/n/nhc98/nhc98-doc_1.4-8_all.deb
> >ftp://ftp.debian.org/debian/pool/main/h/hmake/hmake_3.06-2_i386.deb
> >ftp://ftp.debian.org/debian/pool/main/h/hat/hat_2.00-5_i386.deb
> 
> >Or, you can adjust your /etc/apt/sources.lst to point to the "testing"
> >branch of Debian and use apt-get to install and handle dependencies
> >for you.
> 
> I see from dkpg that the nhc98 binary package requires a newer libc6,
> installation of which caused dpkg to want to de-install the old libc6,
> even tho the minor version number's different.  I assume upgrading the
> libc6 would cause the many packages that depend on libc6 to need
> upgrading, too.  (or is that a wrong assumption?).

[ ... snip ... ] 

> my plan is to try to work around the build bug in the non-debianized
> source tarball, as the less-disruptive way to get nhc on my system
> --unless you've a better idea.
> 

I belive I do.  If you visit each of the locations I gave, you can also get
the Debian source files:

ftp://ftp.debian.org/debian/pool/main/n/nhc98/nhc98_1.14-8.dsc
ftp://ftp.debian.org/debian/pool/main/n/nhc98/nhc98_1.14-8.diff.gz
ftp://ftp.debian.org/debian/pool/main/n/nhc98/nhc98_1.14.orig.tar.gz

ftp://ftp.debian.org/debian/pool/main/h/hmake/hmake_3.06-2.dsc
ftp://ftp.debian.org/debian/pool/main/h/hmake/hmake_3.06-2.diff.gz
ftp://ftp.debian.org/debian/pool/main/h/hmake/hmake_3.06.orig.tar.gz

ftp://ftp.debian.org/debian/pool/main/h/hat/hat_2.00-5.dsc
ftp://ftp.debian.org/debian/pool/main/h/hat/hat_2.00-5.diff.gz
ftp://ftp.debian.org/debian/pool/main/h/hat/hat_2.00.orig.tar.gz

Download all 9 of these files (or just the first 6 if you only want to get
nhc98 and hmake).  You can then build the exact packages I provide
to the main distribution, except using your library versions.  This will
insure no incompatibilities with your system setup, but will also put
the package in conformance with the Debian set-up, so you don't have
to worry about future upgrades, etc.

Just do the following (after making sure you have installed the
"dpkg-dev" package):

bash# dpkg-source -x nhc98_1.14-8.dsc
bash# cd nhc98-1.14
bash# dpkg-buildpackage -rfakeroot
-or-
bash# sudo dpkg-buildpackage

You may get some errors at this point complaining about some
tools you may not have installed.  Just get them from your Debian
CD-ROM or elsewhere and continue the build.  If it complains about
Java, you can override with the "-d" command:

dpkg-buildpackage -d

And it will attempt to build without it.

Just repeat this for the other packages you are interested in.

I think this is a good approach, since the packages are known to
build properly (because the autobuilders for other architectures
have to use them), so this is probably the least-effort way to
get a build for your system.

Good luck and have fun!

-Brent