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
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 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.
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
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
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
Manilal K M wrote:
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
Please reread my reply. This relies on the order packages are installed and will break when RH issues an update because your file will be replaced. It will fail if, for whatever reason, you remove Red Hat's package, because your file will be removed.
It also means RPM will show the package is damaged when you "rpm -V" it.
What you are doing is not "The Righr Thing."
On 8/30/05, John Summerfied debian@herakles.homelinux.org wrote:
Manilal K M wrote:
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
Please reread my reply. This relies on the order packages are installed and will break when RH issues an update because your file will be replaced. It will fail if, for whatever reason, you remove Red Hat's package, because your file will be removed.
It also means RPM will show the package is damaged when you "rpm -V" it.
What you are doing is not "The Righr Thing."
--
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
I know I am not doing the right thing, but this package change is relevant only for a distribution that I have customized. For other distros and future releases, I am planning to make another RPM. So for the community, I don't think there will be any issues regards Manilal
On Mon, 2005-08-29 at 12:30 +0530, Manilal K M wrote:
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 ??
Why not use triggers instead of %pre and %post? We do this to replace conflicting files, config files and many other things. For example, we have an RPM called "cisco-sysstat-disable" that triggers on sysstat. sysstat insists on putting a cron job in place to capture sar data. If you run other utilities to capture sar data, the sysstat cron job is not useful. We found that hundreds of machines running the same sysstat cron job at 10-minute intervals was causing our NIS+ servers running in YP-compat mode to overload.
Anyways, triggers are not as well documented as %pre and %post, but they're fairly simple.
%triggerin -- sysstat do something here for installation
%triggerun -- sysstat undo your changes here
This allows you to stop worrying about package order; in fact, the RPM has no "Requires: sysstat" or "Prereq: sysstat". It just runs the trigger any time sysstat is installed or upgraded. Also, the trigger is run when this RPM is installed.
For example, if sysstat is already installed and you install cisco- sysstat-disable, it runs the %triggerin section. If cisco-sysstat- disable is installed first and systat gets installed later, the %triggerin section runs. Either way you're all set.
When either systat or cisco-sysstat-disable are uninstalled, the %triggerun section is run.
/Brian/
anaconda-devel@lists.stg.fedoraproject.org