Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#43521 - json-c and jsoncpp file conflict

Attached to Project: Arch Linux
Opened by Laurent Rahuel (asrenzo) - Tuesday, 20 January 2015, 11:45 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 22 January 2015, 15:27 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

File conflict between json-c and jsoncpp

json-c is installed on my system as a libpulse requirement.
Today, a pacman -suy needs to add jsoncpp to my packages as some other requirement.

But both of these packages provide /usr/include/json-c/json.h

Thus my update fails with:

error: failed to commit transaction (conflicting files)
/usr/include/json-c/json.h exists in both 'json-c' and 'jsoncpp'
Errors occurred, no packages were upgraded.

Regards,

Laurent
This task depends upon

Closed by  Doug Newgard (Scimmia)
Thursday, 22 January 2015, 15:27 GMT
Reason for closing:  Not a bug
Additional comments about closing:  System too out of date.
Comment by Antonio Rojas (arojas) - Tuesday, 20 January 2015, 12:04 GMT
jsoncpp contains /usr/include/json/json.h, not /usr/include/json-c/json.h. Are you sure you haven't symlinked the folders yourself?
Comment by Laurent Rahuel (asrenzo) - Tuesday, 20 January 2015, 14:05 GMT
I can't remind any symlinking from myself.

cd /usr/include

ls -l | grep json
lrwxrwxrwx 1 root root 6 Jun 7 2013 json -> json-c
drwxr-xr-x 2 root root 4096 Jun 7 2013 json-c
drwxr-xr-x 3 root root 4096 Sep 23 2013 json-glib-1.0
drwxr-xr-x 3 root root 4096 Jun 15 2013 jsoncpp
drwxr-xr-x 2 root root 4096 Feb 26 2013 qjson

I have such a symlink but this one has the exact same date as the original folder.

Do you mean I need to remove my /usr/include/json symlink ?

Regards
Comment by Antonio Rojas (arojas) - Tuesday, 20 January 2015, 14:13 GMT
Check if any package owns it and if it doesn't then yes, remove it
Comment by Doug Newgard (Scimmia) - Tuesday, 20 January 2015, 15:46 GMT
This error shouldn't happen with the current version of pacman. Has it been a while since you updated? Still on pacman 4.1?
Comment by Laurent Rahuel (asrenzo) - Tuesday, 20 January 2015, 15:54 GMT
Yes, I was on a pre 4.2 version of pacman before update
I add to :

pacman-db-upgrade

==> Pre-4.2 database format detected - upgrading...

But I'm now sure I did not symlink myself.
I have severals systems (almost 10) which are in the same state as the one I tried to update this morning and when, on each of them I look at /usr/include, I get:

lrwxrwxrwx 1 root root 6 7 juin 2013 json -> json-c
drwxr-xr-x 2 root root 4096 7 juin 2013 json-c
drwxr-xr-x 3 root root 4096 15 juin 2013 jsoncpp
drwxr-xr-x 3 root root 4096 3 juin 2014 json-glib-1.0
drwxr-xr-x 2 root root 4096 26 févr. 2013 qjson

This means that /usr/include/json has been added by some package and not me.

How can I help before upgrading these systems ?

Regards,

Laurent
Comment by Laurent Rahuel (asrenzo) - Tuesday, 20 January 2015, 15:56 GMT
Ooops, I forgot to add:

pacman -Qo /usr/include/json

/usr/include/json is owned by json-c 0.11-1

Regards
Comment by Doug Newgard (Scimmia) - Tuesday, 20 January 2015, 16:00 GMT
json-c *0.11-1*? Your system is extremely out of date, json-c 0.12 was packaged last May. Try updating json-c first, then updating the system.
Comment by Laurent Rahuel (asrenzo) - Tuesday, 20 January 2015, 16:11 GMT
OK

Thanks
Comment by Doug Newgard (Scimmia) - Thursday, 22 January 2015, 15:27 GMT
I'm going to go ahead and close this, since it seem to be caused by the system being extremely out of date. Reopen if you find there's a different problem.

Loading...