wendall911 / couchdb-rpm

Sources for RPM packages for CouchDB
23 stars 11 forks source link

Packaged libraries conflict nastily #13

Open wu-lee opened 10 years ago

wu-lee commented 10 years ago

Managed to build the RPM ok, on Centos 6.5, x86_64.

However, the RPM refuses to install. I have an existing couchdb from EPEL, and it attempts to upgrade. Then it hits a conflict:

Transaction Check Error:
  file /usr/lib64/erlang/lib/mochiweb-1.4.1/ebin/mochijson2.beam from install of couchdb-1.6.0-1.el6.x86_64 conflicts with file from package erlang-mochiweb-1.4.1-5.el6.x86_64
... (many more like this)

Clearly there are some packaged libs here, which I hadn't initially realised -might be a good idea to say so in the README. Also, maybe the .spec file should explicitly declare a conflict with the packaged libs? Then the error would be more explicit.

The conflicts I see are:

Luckily I don't need these for anything else so in my case I can remove them.

wendall911 commented 10 years ago

Thank you for reporting. I'll get this fixed soon. I agree that this should be accounted for. I haven't tested this at all, so will add it to the use cases that should be supported.