RPM Community Forums

Mailing List Message of <rpm-users>

Forking a rpm into two

From: Oguz Yilmaz <oguzyilmazlist@gmail.com>
Date: Wed 23 Jul 2014 - 11:30:18 CEST
Message-ID: <CAAo+KFkhojzoBL15FhGND=xiK6LET2vKQhOFN1Bb8gLvswCp_w@mail.gmail.com>
Hello,

I need to fork a rpm into two rpm because of being two separate products.

Formerly both product were using "reporter.rpm". Now, they will use
"reporter-product1.rpm" and "reporter-product2.rpm", respectively.
These rpm's will be required by a base rpm for each product,
"base-product1.rpm" and "base-product2.rpm", repectively.

reporter |-> reporter-product1
            |-> reporter-product2

If I only add "Provides: reporter" two each rpm, a "yum update" will
give a "file something from install of reporter-product1.rpm conflicts
with file from package reporter.rpm"

If I only add "Obsoletes: reporter" two each rpm, a "yum update" will
give a "Error: Missing depedency: reporter >= 1.3.2 is needed by
package base-product1.rpm" and "Error: Missing depedency: reporter >=
1.3.2 is needed by package base-product2.rpm"

If I both add "Obsoletes: reporter" and "Provides: reporter" two each
rpm, a "yum update" will try to install both packages
(reporter-product1.rpm and reporter-product2.rpm) because they both
obsoletes reporter.rpm

What do you suggest in this case?

Best Regards,



--
Oguz YILMAZ
Received on Wed Jul 23 11:55:02 2014
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.