Re: [SLUG] Avoiding debian dependancies

2003-02-24 Thread Angus Lees
At Mon, 24 Feb 2003 14:57:24 +1100, Ben Leslie wrote:
> I just tried to apt-get install slapd (OpenLDAP server) on a debian
> production server. Debian then wants to install an xfree86-common,
> which I obviously don't want on a server.
> 
> Now, I know the way I'll be using slapd doesn't *really* depend on 
> libiodbc2. Is there a simple way to tell apt-get this? 
> 
> (I guess I could get the source and change the dependencies manually
> but that sounds really icky.)

rebuilding isn't that big a deal - you'll want to do it on another
machine though if you're wary of installing build dependencies.

 sudo apt-get build-dep slapd
  (or using some other root-gaining command)

 apt-get source slapd

 cd openldap-*

 edit debian/rules to remove configure --with-iodbc line or whatever
  openldap needs to stop using odbc

 dpkg-buildpackage -rfakeroot -b -uc
  (assuming you have fakeroot installed)

 new package is in ../


-- 
 - Gus
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Avoiding debian dependancies

2003-02-23 Thread Matt Hope
On Mon, 24 Feb 2003, Brett Fenton <[EMAIL PROTECTED]> wrote...

> get the deb for it.
> 
> dpkg -i --ignore-depends= package.deb
> 
> where  in this instance would be the package you want to
> ignore xfree86-common for example.

This will work in the short term, but may cause more problems down the
track when apt tries to work out dependancies - it'll probably cause a
stink about not being installed later.

Matt.
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Avoiding debian dependancies

2003-02-23 Thread Matt Hope
On Mon, 24 Feb 2003, Ben Leslie <[EMAIL PROTECTED]> wrote...

> And how can I install equivs w/o install binutils, perl and other
> development tools :) Or can I run equivs on another machine to create
> the fake .debs ?

Indeed you can. Or email me privately and I'll do it for you.

Matt.
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Avoiding debian dependancies

2003-02-23 Thread Ben Leslie
On Mon, 24 Feb 2003, Matt Hope wrote:

> On Mon, 24 Feb 2003, Ben Leslie <[EMAIL PROTECTED]> wrote...
> 
> > I just tried to apt-get install slapd (OpenLDAP server) on a debian
> > production server. Debian then wants to install an xfree86-common,
> > which I obviously don't want on a server.
> > 
> > (slapd depends on libiodbc2 depends on xlibs. xfree86-common).
> > 
> > Now, I know the way I'll be using slapd doesn't *really* depend on 
> > libiodbc2. Is there a simple way to tell apt-get this? 
> > 
> > (I guess I could get the source and change the dependencies manually
> > but that sounds really icky.)
> 
> You could use `equivs' to create & install fake xfree86-common and/or
> xlibs packages, for the sole purposes of forfilling dependancies.
> 

And how can I install equivs w/o install binutils, perl and other
development tools :) Or can I run equivs on another machine to create
the fake .debs ?

Cheers,

Ben
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


RE: [SLUG] Avoiding debian dependancies

2003-02-23 Thread Brett Fenton
get the deb for it.

dpkg -i --ignore-depends= package.deb

where  in this instance would be the package you want to
ignore xfree86-common for example.

brett

:> -Original Message-
:> From: [EMAIL PROTECTED]
:> [mailto:[EMAIL PROTECTED] Behalf Of
:> Ben Leslie
:> Sent: Monday, 24 February 2003 2:57 PM
:> To: [EMAIL PROTECTED]
:> Subject: [SLUG] Avoiding debian dependancies
:>
:>
:> Hi all,
:>
:> I just tried to apt-get install slapd (OpenLDAP server) on a debian
:> production server. Debian then wants to install an xfree86-common,
:> which I obviously don't want on a server.
:>
:> (slapd depends on libiodbc2 depends on xlibs. xfree86-common).
:>
:> Now, I know the way I'll be using slapd doesn't *really* depend on
:> libiodbc2. Is there a simple way to tell apt-get this?
:>
:> (I guess I could get the source and change the
:> dependencies manually
:> but that sounds really icky.)
:>
:> Cheers,
:>
:> Benno
:> --
:> SLUG - Sydney Linux User's Group - http://slug.org.au/
:> More Info: http://lists.slug.org.au/listinfo/slug
:>

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Avoiding debian dependancies

2003-02-23 Thread Matt Hope
On Mon, 24 Feb 2003, Ben Leslie <[EMAIL PROTECTED]> wrote...

> I just tried to apt-get install slapd (OpenLDAP server) on a debian
> production server. Debian then wants to install an xfree86-common,
> which I obviously don't want on a server.
> 
> (slapd depends on libiodbc2 depends on xlibs. xfree86-common).
> 
> Now, I know the way I'll be using slapd doesn't *really* depend on 
> libiodbc2. Is there a simple way to tell apt-get this? 
> 
> (I guess I could get the source and change the dependencies manually
> but that sounds really icky.)

You could use `equivs' to create & install fake xfree86-common and/or
xlibs packages, for the sole purposes of forfilling dependancies.

Matt.
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug