You are not logged in.

#1 2018-08-21 08:41:25

MaxT
Member
From: Munich, Germany
Registered: 2014-04-06
Posts: 19

Conflicting files during upgrade: cmark-gfm and cmark in conflict

Hi

this is the result of my upgrade attempt:

error: failed to commit transaction (conflicting files)
cmark-gfm: /usr/include/cmark.h exists in filesystem (owned by cmark)
cmark-gfm: /usr/include/cmark_export.h exists in filesystem (owned by cmark)
cmark-gfm: /usr/include/cmark_version.h exists in filesystem (owned by cmark)

haskell-cmark-gfm seems to have added a dependency on cmark-gfm, containing the conflicting files.

cmark is required by haskell-cmark, which however seems to be no longer available. Im don't know, why it was installed:

pacman -Qi haskell-cmark
Name            : haskell-cmark
Version         : 0.5.6-9
Description     : Fast, accurate CommonMark (Markdown) parser and renderer
Architecture    : x86_64
URL             : https://github.com/jgm/commonmark-hs
Licenses        : custom:BSD3
Groups          : None
Provides        : None
Depends On      : ghc-libs  cmark
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 952.00 KiB
Packager        : Felix Yan <felixonmars@archlinux.org>
Build Date      : Fri 01 Jun 2018 07:32:53 PM CEST
Install Date    : Tue 05 Jun 2018 04:53:08 PM CEST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

I am not sure, what my options are at this point?

Thanks and cheers,

Max

Offline

#2 2018-08-21 08:53:07

hcjl
Member
From: berlin
Registered: 2007-06-29
Posts: 330

Re: Conflicting files during upgrade: cmark-gfm and cmark in conflict

MaxT wrote:

cmark is required by haskell-cmark, which however seems to be no longer available. Im don't know, why it was installed:

Can't you find anything in your pacman.log?

Offline

#3 2018-08-21 09:18:01

ngld
Member
Registered: 2015-01-18
Posts: 1

Re: Conflicting files during upgrade: cmark-gfm and cmark in conflict

pandoc depended on haskell-cmark in the past and now requires haskell-cmark-gfm instead.My guess is that cmark was either renamed or replaced by cmark-gfm.

Offline

#4 2018-08-21 09:39:39

MaxT
Member
From: Munich, Germany
Registered: 2014-04-06
Posts: 19

Re: Conflicting files during upgrade: cmark-gfm and cmark in conflict

Thanks for your hints.

hcjl wrote:

Can't you find anything in your pacman.log?

[2016-04-22 13:58] [ALPM] installed cmark (0.25.2-1)
[2016-04-22 13:58] [ALPM] upgraded pandoc (1.16.0.1-1 -> 1.17.0.3-7)

I guess that means that is was installed as a dependency of pandoc. But pandoc no longer depends on it. Should pacman not remove it in this case?

ngld wrote:

pandoc depended on haskell-cmark in the past and now requires haskell-cmark-gfm instead.My guess is that cmark was either renamed or replaced by cmark-gfm.

It seems like you are right. I thought pacman would resolve this in its own though.

Again, what is the best option? Can I just savely remove the cmark package?

Offline

#5 2018-08-21 11:43:15

jab2870
Member
Registered: 2017-03-20
Posts: 20

Re: Conflicting files during upgrade: cmark-gfm and cmark in conflict

I ran

$ sudo pacman -Rns haskell-cmark

This removed haskell-cmark and cmark.

Then

$ sudo pacman -S haskell-cmark-gfm

Which re-installed the gfm versions.

This has sorted it for me.

Offline

#6 2018-08-21 12:16:11

mxfm
Member
Registered: 2015-10-23
Posts: 163

Re: Conflicting files during upgrade: cmark-gfm and cmark in conflict

There is also issue FS#58280. It was filed in April, so this should have been known already.

Offline

#7 2018-08-21 12:41:01

MaxT
Member
From: Munich, Germany
Registered: 2014-04-06
Posts: 19

Re: Conflicting files during upgrade: cmark-gfm and cmark in conflict

jab2870 wrote:

I ran

$ sudo pacman -Rns haskell-cmark

This removed haskell-cmark and cmark.

Then

$ sudo pacman -S haskell-cmark-gfm

Which re-installed the gfm versions.

This has sorted it for me.

This worked fine, thanks for the help.

mxfm wrote:

There is also issue FS#58280. It was filed in April, so this should have been known already.

The upstream tickes is just a few hours old. So this will probably get fixed soon.

Offline

#8 2018-08-21 20:42:19

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Conflicting files during upgrade: cmark-gfm and cmark in conflict

Upstream just released a new version fixing the conflict, so once that gets packaged the packages should be able to be installed together.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB