ltib
[Top][All Lists]
Advanced

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

[Ltib] rpm --force-debian problems


From: Ed Swarthout
Subject: [Ltib] rpm --force-debian problems
Date: Mon, 30 Nov 2009 22:34:21 -0600
User-agent: KMail/1.12.1 (Linux/2.6.30-2-amd64; KDE/4.3.2; x86_64; ; )

Michal,

LTIB is an embedded toolkit that relies on rpm to boostrap it's own 
environment.  It does not touch the system rpm database.

Based on the ubuntu and debian bug reports, I understand why this
option was added.  But it breaks programs that use rpm for things
other than system installs.

Can you modify the patch to  check the --dbpath option and only
require the force-debian option if the db has not been changed
from the standard system db?

-Ed

On Monday 30 November 2009 20:26:43 Yin Olivia-R63875 wrote:
> Hi Ed,
> 
> I agree with you.
> But this patch is not necessary for all of the Debian or Ubuntu
> distributions.
> 
> For example, it is fine to install LTIB on Ubuntu 9.04 with
> rpm-4.4.2.3-2.
> And the old version of rpm doesn't support --force-debian option.
> 
> I'm not sure how to create a patch to judge which version of rpm or
> which distribution need --force-debian option.
> 
> 
> Best Regards,
> Olivia
> 
> > -----Original Message-----
> > From: Ed Swarthout [mailto:address@hidden
> > Sent: Tuesday, December 01, 2009 3:23 AM
> > To: Stuart Hughes
> > Cc: address@hidden; Yin Olivia-R63875
> > Subject: Re: [Ltib] freescale ltib config problem
> >
> > On Monday 30 November 2009 03:44:53 Stuart Hughes wrote:
> > > Hi Olivia,
> > >
> > > Do you have a complete working patch for Savannah? (there are no
> > > --force-debian references in Savannah).
> >
> > This is also a problem with Debian Testing (squeeze).
> > The --force-debian option only needs to be added to the
> > distribution based rpm, so I put the patch in check_rpm_setup().
> >
> > -Ed Swarthout
> >
> > Fix:
> >
> > rpm: please use alien to install rpm packages on Debian, if
> > you are really sure use --force-debian switch. See
> > README.Debian for more details.
> >
> > see:
> > http://git.debian.org/?p=collab-
> > maint/rpm.git;a=commit;h=e52c723fc76d137e0754a5ee7e5f117377731b71
> >
> > Index: ltib
> > ===================================================================
> > RCS file: /sources/ltib/ltib/ltib,v
> > retrieving revision 1.56
> > diff -u -r1.56 ltib
> > --- ltib    11 Nov 2009 16:58:50 -0000      1.56
> > +++ ltib    30 Nov 2009 19:07:49 -0000
> > @@ -2420,7 +2420,7 @@
> >      $cf->{prefix}        = "$cf->{defpfx}/usr";
> >      $cf->{sysconfdir}    = "$cf->{defpfx}/etc";
> >      chomp($cf->{rpmbuild} = `which rpmbuild 2>/dev/null` || "rpm\n");
> > -    $cf->{rpm}           = "rpm";
> > +    $cf->{rpm}           = "rpm --force-debian";
> >      $cf->{tmppath}       = $cf->{projtmp};
> >      $cf->{enrootn}       = 0;
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]