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

Re: Forcing a package to get installed



On 8/30/05, John Summerfied <debian herakles homelinux org> wrote:
> James_Martin ao uscourts gov wrote:
> > Sure.. you could have the %pre section of your RPM remove
> > /usr/lib/iiim/le/unitle/MALAYALAM/data/inscript.data.. Have your package
> > contain  /usr/lib/iiim/le/unitle/MALAYALAM/data/inscript.data.custom, and
> Removing the file doesn't do anything useful
> 
> > the %post section would copy
> > /usr/lib/iiim/le/unitle/MALAYALAM/data/inscript.data.custom to
> > /usr/lib/iiim/le/unitle/MALAYALAM/data/inscript.data.
> 
> Removing or updating iiimf-le-unit after this would be harmful. _I_
> would look to removing the package causing the conflict, or merging the
> two costomising one to provide both functionalities.
> 
> It might also be worth reporting a RFE bug for iiimf-le-unit, describing
> what you want to achieve.
> >
> > James S. Martin, RHCE
> > Contractor
> > Administrative Office of the United States Courts
> > Washington, DC
> > (202) 502-2394
> >
> > anaconda-devel-list-bounces redhat com wrote on 08/29/2005 03:00:22 AM:
> >
> >
> >>Hello all,
> >>I have built an rpm (nila-kbd) for incorporating malayalam keyboard
> >>layout in FC-4. But this package has a conflict with the file
> >>/usr/lib/iiim/le/unitle/MALAYALAM/data/inscript.data which belongs to
> >>another package(iiimf-le-unit). So when I tried to install it using
> >>rpm it give some conflict errors. If I use --force it will work, it
> >>will get installed.
> >>My actual pronlem is I have to integrate this package into anaconda,
> >>then how can I force this package to get installed through anaconda
> >>any thoughts ??
> >>
> >>regards
> >>Manilal
> >>
> >>_______________________________________________
> >>Anaconda-devel-list mailing list
> >>Anaconda-devel-list redhat com
> >>https://www.redhat.com/mailman/listinfo/anaconda-devel-list
> >
> >
> > _______________________________________________
> > Anaconda-devel-list mailing list
> > Anaconda-devel-list redhat com
> > https://www.redhat.com/mailman/listinfo/anaconda-devel-list
> >
> 
> 
> --
> 
> Cheers
> John
> 
> -- spambait
> 1aaaaaaa computerdatasafe com au  Z1aaaaaaa computerdatasafe com au
> Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
> 
> do not reply off-list
> 
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list redhat com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
> 

Thanks everyone.
The suggestion from James_Martin ao uscourts gov worked for me. I hope
now everything will work fine The %pre, %install and %post sections of
the SPEC file is as follows:

%pre fc3
if [ -f /usr/lib/iiim/le/unitle/MALAYALAM/data/inscript.data ]
then
    rm -f /usr/lib/iiim/le/unitle/MALAYALAM/data/inscript.data
fi
if [ -f /usr/lib/iiim/le/unitle/sysime.cfg ]
then
    rm -f /usr/lib/iiim/le/unitle/sysime.cfg
fi
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}/usr/lib/iiim/le/unitle/MALAYALAM/data/
mkdir -p ${RPM_BUILD_ROOT}/usr/lib/iiim/le/unitle/
install inscript.data.custom
${RPM_BUILD_ROOT}/usr/lib/iiim/le/unitle/MALAYALAM/data/
install trans.data ${RPM_BUILD_ROOT}/usr/lib/iiim/le/unitle/MALAYALAM/data/
install sysime.cfg.org  ${RPM_BUILD_ROOT}/usr/lib/iiim/le/unitle/
install sysime.cfg_1  ${RPM_BUILD_ROOT}/usr/lib/iiim/le/unitle/
install sysime.cfg.custom  ${RPM_BUILD_ROOT}/usr/lib/iiim/le/unitle/
%post fc3
cp ${RPM_BUILD_ROOT}/usr/lib/iiim/le/unitle/MALAYALAM/data/inscript.data.custom
${RPM_BUILD_ROOT}/usr/lib/iiim/le/unitle/MALAYALAM/data/inscript.data
cp ${RPM_BUILD_ROOT}/usr/lib/iiim/le/unitle/sysime.cfg.custom
${RPM_BUILD_ROOT}/usr/lib/iiim/le/unitle/sysime.cfg


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