ghc: /usr/share/doc/ghc/html/libraries/hslogo-16.png exists in filesystem

Hi, I just tried to update my Arch system and I got error which I'm not sure how to deal with: mloskot ~ $ sudo pacman -Syu :: Synchronizing package databases... core is up to date haskell is up to date extra is up to date community is up to date multilib is up to date :: Starting full system upgrade... resolving dependencies... looking for inter-conflicts... Targets (6): ghc-7.6.1-1 haskell-cairo-0.12.3.1-25 haskell-mtl-2.1.2-25 haskell-text-0.11.2.3-25 haskell-transformers-0.3.0.0-25 haskell-xml-1.3.12-25 Total Installed Size: 814.39 MiB Net Upgrade Size: 12.18 MiB Proceed with installation? [Y/n] (6/6) checking package integrity [################################################################] 100% (6/6) loading package files [################################################################] 100% (6/6) checking for file conflicts [################################################################] 100% error: failed to commit transaction (conflicting files) ghc: /usr/share/doc/ghc/html/libraries/hslogo-16.png exists in filesystem ghc: /usr/share/doc/ghc/html/libraries/synopsis.png exists in filesystem Errors occurred, no packages were upgraded. mloskot ~ $ I'm using the haskell repo configured like this: mloskot ~ $ grep haskell /etc/pacman.conf [haskell] Server = http://xsounds.org/~haskell/$arch Best regards, -- Mateusz Loskot, http://mateusz.loskot.net

I'm not sure why that error happened but it happened to me too.
I removed the offending files manually and tried again, and ran into more
problems (although everything installed, there were many warnings about
interface files being the wrong version and being skipped).
So I'm not sure what the correct way out is. Perhaps it will require some
manual removals then reinstalls.
On Sat, Oct 13, 2012 at 11:20 AM, Mateusz Loskot
Hi,
I just tried to update my Arch system and I got error which I'm not sure how to deal with:
mloskot ~ $ sudo pacman -Syu :: Synchronizing package databases... core is up to date haskell is up to date extra is up to date community is up to date multilib is up to date :: Starting full system upgrade... resolving dependencies... looking for inter-conflicts...
Targets (6): ghc-7.6.1-1 haskell-cairo-0.12.3.1-25 haskell-mtl-2.1.2-25 haskell-text-0.11.2.3-25 haskell-transformers-0.3.0.0-25 haskell-xml-1.3.12-25
Total Installed Size: 814.39 MiB Net Upgrade Size: 12.18 MiB
Proceed with installation? [Y/n] (6/6) checking package integrity
[################################################################] 100% (6/6) loading package files
[################################################################] 100% (6/6) checking for file conflicts
[################################################################] 100% error: failed to commit transaction (conflicting files) ghc: /usr/share/doc/ghc/html/libraries/hslogo-16.png exists in filesystem ghc: /usr/share/doc/ghc/html/libraries/synopsis.png exists in filesystem Errors occurred, no packages were upgraded. mloskot ~ $
I'm using the haskell repo configured like this:
mloskot ~ $ grep haskell /etc/pacman.conf [haskell] Server = http://xsounds.org/~haskell/$arch
Best regards, -- Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________ arch-haskell mailing list arch-haskell@haskell.org http://www.haskell.org/mailman/listinfo/arch-haskell

2012/10/13 Ramana Kumar
I'm not sure why that error happened but it happened to me too.
The problem seems to be that those files were not part of any package, but now are in ghc.
I removed the offending files manually and tried again, and ran into more problems (although everything installed, there were many warnings about interface files being the wrong version and being skipped). So I'm not sure what the correct way out is. Perhaps it will require some manual removals then reinstalls.
This is a problem with ghc-pkg version. For previous version of ghc I had to do: $ pacman -Rcs ghc then reinstall ghc and needed haskell-* packages. I think you'll want to remove the offending files before installing ghc again. I hope this solve the problem. Fabio

On Sat, Oct 13, 2012 at 1:35 PM, Fabio Riga
2012/10/13 Ramana Kumar
I'm not sure why that error happened but it happened to me too.
The problem seems to be that those files were not part of any package, but now are in ghc.
Thanks :) So deleting them before upgrading was the right move.
I removed the offending files manually and tried again, and ran into more problems (although everything installed, there were many warnings about interface files being the wrong version and being skipped). So I'm not sure what the correct way out is. Perhaps it will require some manual removals then reinstalls.
This is a problem with ghc-pkg version. For previous version of ghc I had to do:
$ pacman -Rcs ghc
then reinstall ghc and needed haskell-* packages. I think you'll want to remove the offending files before installing ghc again. I hope this solve the problem.
Thanks for the information. I am going to try reinstalling ghc and then all my haskell-* packages, and hopefully it will go through smoothly. By the way, what's the progress on haskell-extra, and did you find out where haskell-old lives (in case haskell-extra still depends on haskell-old)?
Fabio
_______________________________________________ arch-haskell mailing list arch-haskell@haskell.org http://www.haskell.org/mailman/listinfo/arch-haskell

2012/10/13 Ramana Kumar
By the way, what's the progress on haskell-extra, and did you find out where haskell-old lives (in case haskell-extra still depends on haskell-old)? Sorry, there is no improvement... Now I have no access to my desktop with arch linux, so I can't do anything. Please be patient.
Fabio

2012/10/13 Fabio Riga
2012/10/13 Ramana Kumar
I'm not sure why that error happened but it happened to me too.
The problem seems to be that those files were not part of any package, but now are in ghc.
I removed the offending files manually and tried again, and ran into more problems (although everything installed, there were many warnings about interface files being the wrong version and being skipped). So I'm not sure what the correct way out is. Perhaps it will require some manual removals then reinstalls.
This is a problem with ghc-pkg version. For previous version of ghc I had to do:
$ pacman -Rcs ghc
then reinstall ghc and needed haskell-* packages. I think you'll want to remove the offending files before installing ghc again. I hope this solve the problem.
Fabio
Why is it that every single time there is a ghc-update, I have to remove everything and reinstall everything haskell related. Haskell is such a cool language but keeping a Haskell environment up-to-date is sometimes just a real pain. Sorry for the rant. Thomas

I think the answer is because we're still figuring out the best way to
package Haskell programs and libraries, and Haskell tools (ghc, cabal)
already have their own package-like-but-not-really systems for dealing with
packages, which are difficult to cooperate with.
I wonder if anyone has tried NixOS and whether the situation is better
there?
I know on many distros (including Arch!) a lot of people give up and use
the Haskell tools exclusively and avoid distro package management for
Haskell stuff.
But that is not a good solution in the long run, because cabal is
explicitly not a package manager: it doesn't know how to remove stuff
cleanly and never will, amongst other problems.
On Mon, Oct 15, 2012 at 11:00 AM, Thomas Friedrich
2012/10/13 Fabio Riga
: 2012/10/13 Ramana Kumar
I'm not sure why that error happened but it happened to me too.
The problem seems to be that those files were not part of any package, but now are in ghc.
I removed the offending files manually and tried again, and ran into more problems (although everything installed, there were many warnings about interface files being the wrong version and being skipped). So I'm not sure what the correct way out is. Perhaps it will require some manual removals then reinstalls.
This is a problem with ghc-pkg version. For previous version of ghc I had to do:
$ pacman -Rcs ghc
then reinstall ghc and needed haskell-* packages. I think you'll want to remove the offending files before installing ghc again. I hope this solve the problem.
Fabio
Why is it that every single time there is a ghc-update, I have to remove everything and reinstall everything haskell related. Haskell is such a cool language but keeping a Haskell environment up-to-date is sometimes just a real pain.
Sorry for the rant. Thomas
_______________________________________________ arch-haskell mailing list arch-haskell@haskell.org http://www.haskell.org/mailman/listinfo/arch-haskell

On 15 October 2012 11:00, Thomas Friedrich
2012/10/13 Fabio Riga
: 2012/10/13 Ramana Kumar
I'm not sure why that error happened but it happened to me too.
The problem seems to be that those files were not part of any package, but now are in ghc.
I removed the offending files manually and tried again, and ran into more problems (although everything installed, there were many warnings about interface files being the wrong version and being skipped). So I'm not sure what the correct way out is. Perhaps it will require some manual removals then reinstalls.
This is a problem with ghc-pkg version. For previous version of ghc I had to do:
$ pacman -Rcs ghc
then reinstall ghc and needed haskell-* packages. I think you'll want to remove the offending files before installing ghc again. I hope this solve the problem.
Why is it that every single time there is a ghc-update, I have to remove everything and reinstall everything haskell related. Haskell is such a cool language but keeping a Haskell environment up-to-date is sometimes just a real pain.
As Haskell newbie and new born Hakyll users, I've found recent replies [1] by Ian Ross interesting: "I'm also using Arch Linux on x86_64. I would strongly recommend *not* using the Arch packages for most Haskell things. I use hsenv instead." I haven't switched myself and I still use the packages, but I started to wonder if Ian's got the point indeed. [1] https://groups.google.com/d/topic/hakyll/9G1qXBA4raU/discussion Best regards, -- Mateusz Loskot, http://mateusz.loskot.net

It is possible and desirable to manage haskell packages with pacman on Arch
Linux!
It is just not perfect yet - the arch-haskell project needs your help.
Perhaps you could point Ian Ross this way too.
(For me personally, using the [haskell] and [haskell-extra] repositories
has worked out well so far, and it's nice knowing everything is managed
properly by pacman.)
On Mon, Oct 15, 2012 at 5:16 PM, Mateusz Loskot
On 15 October 2012 11:00, Thomas Friedrich
wrote: 2012/10/13 Fabio Riga
: 2012/10/13 Ramana Kumar
I'm not sure why that error happened but it happened to me too.
The problem seems to be that those files were not part of any package, but now are in ghc.
I removed the offending files manually and tried again, and ran into more problems (although everything installed, there were many warnings about interface files being the wrong version and being skipped). So I'm not sure what the correct way out is. Perhaps it will require some manual removals then reinstalls.
This is a problem with ghc-pkg version. For previous version of ghc I had to do:
$ pacman -Rcs ghc
then reinstall ghc and needed haskell-* packages. I think you'll want to remove the offending files before installing ghc again. I hope this solve the problem.
Why is it that every single time there is a ghc-update, I have to remove everything and reinstall everything haskell related. Haskell is such a cool language but keeping a Haskell environment up-to-date is sometimes just a real pain.
As Haskell newbie and new born Hakyll users, I've found recent replies [1] by Ian Ross interesting:
"I'm also using Arch Linux on x86_64. I would strongly recommend *not* using the Arch packages for most Haskell things. I use hsenv instead."
I haven't switched myself and I still use the packages, but I started to wonder if Ian's got the point indeed.
[1] https://groups.google.com/d/topic/hakyll/9G1qXBA4raU/discussion
Best regards, -- Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________ arch-haskell mailing list arch-haskell@haskell.org http://www.haskell.org/mailman/listinfo/arch-haskell

From user's perspective, I guess I agree the Arch packages should be
Ramana,
preferred.
I'm new to Haskell, so I'm not able to comment on packaging strategies.
I simply listen to what experts say, trying to make my own sense of it.
--
Mateusz Łoskot
(sent from mobile, apology for top-post or broken quotes)
On 15 Oct 2012 17:22, "Ramana Kumar"
It is possible and desirable to manage haskell packages with pacman on Arch Linux! It is just not perfect yet - the arch-haskell project needs your help. Perhaps you could point Ian Ross this way too. (For me personally, using the [haskell] and [haskell-extra] repositories has worked out well so far, and it's nice knowing everything is managed properly by pacman.)
On Mon, Oct 15, 2012 at 5:16 PM, Mateusz Loskot
wrote: On 15 October 2012 11:00, Thomas Friedrich
wrote: 2012/10/13 Fabio Riga
: 2012/10/13 Ramana Kumar
I'm not sure why that error happened but it happened to me too.
The problem seems to be that those files were not part of any package, but now are in ghc.
I removed the offending files manually and tried again, and ran into more problems (although everything installed, there were many warnings about interface files being the wrong version and being skipped). So I'm not sure what the correct way out is. Perhaps it will require some manual removals then reinstalls.
This is a problem with ghc-pkg version. For previous version of ghc I had to do:
$ pacman -Rcs ghc
then reinstall ghc and needed haskell-* packages. I think you'll want to remove the offending files before installing ghc again. I hope this solve the problem.
Why is it that every single time there is a ghc-update, I have to remove everything and reinstall everything haskell related. Haskell is such a cool language but keeping a Haskell environment up-to-date is sometimes just a real pain.
As Haskell newbie and new born Hakyll users, I've found recent replies [1] by Ian Ross interesting:
"I'm also using Arch Linux on x86_64. I would strongly recommend *not* using the Arch packages for most Haskell things. I use hsenv instead."
I haven't switched myself and I still use the packages, but I started to wonder if Ian's got the point indeed.
[1] https://groups.google.com/d/topic/hakyll/9G1qXBA4raU/discussion
Best regards, -- Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________ arch-haskell mailing list arch-haskell@haskell.org http://www.haskell.org/mailman/listinfo/arch-haskell

On Mon, Oct 15, 2012 at 9:16 AM, Mateusz Loskot
On 15 October 2012 11:00, Thomas Friedrich
wrote: 2012/10/13 Fabio Riga
: 2012/10/13 Ramana Kumar
I'm not sure why that error happened but it happened to me too.
The problem seems to be that those files were not part of any package, but now are in ghc.
I removed the offending files manually and tried again, and ran into more problems (although everything installed, there were many warnings about interface files being the wrong version and being skipped). So I'm not sure what the correct way out is. Perhaps it will require some manual removals then reinstalls.
This is a problem with ghc-pkg version. For previous version of ghc I had to do:
$ pacman -Rcs ghc
then reinstall ghc and needed haskell-* packages. I think you'll want to remove the offending files before installing ghc again. I hope this solve the problem.
Why is it that every single time there is a ghc-update, I have to remove everything and reinstall everything haskell related. Haskell is such a cool language but keeping a Haskell environment up-to-date is sometimes just a real pain.
As Haskell newbie and new born Hakyll users, I've found recent replies [1] by Ian Ross interesting:
"I'm also using Arch Linux on x86_64. I would strongly recommend *not* using the Arch packages for most Haskell things. I use hsenv instead."
I haven't switched myself and I still use the packages, but I started to wonder if Ian's got the point indeed.
[1] https://groups.google.com/d/topic/hakyll/9G1qXBA4raU/discussion
If you want sandboxed environments, in addtion to hsenv, there's also cabal-dev [1] and coup [2]. I've been using arch-haskell in one form or another for as long as I've been on Arch - indeed, it's what drew me to Arch originally. For things that are lacking, I just make my own PKGBUILD or cabal-install extra stuff at the user level on top of it. -Leif [1] http://hackage.haskell.org/package/cabal-dev [2] https://github.com/janrain/coup Best regards,
-- Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________ arch-haskell mailing list arch-haskell@haskell.org http://www.haskell.org/mailman/listinfo/arch-haskell

On Mon, Oct 15, 2012 at 05:16:24PM +0100, Mateusz Loskot wrote: [...]
As Haskell newbie and new born Hakyll users, I've found recent replies [1] by Ian Ross interesting:
"I'm also using Arch Linux on x86_64. I would strongly recommend *not* using the Arch packages for most Haskell things. I use hsenv instead."
I haven't switched myself and I still use the packages, but I started to wonder if Ian's got the point indeed.
[1] https://groups.google.com/d/topic/hakyll/9G1qXBA4raU/discussion
As so often it all depends on what your goal is. hsenv compares itself to Python's virtualenv[1]. I've personally written quite a bit of Python code, and used many tools and programs written in Python, without *ever* feeling a need to use virtualenv. The same is, so far at least, true regarding Haskell and hsenv. In neither language have I ever had the need to have more than a single environment around. On the other hand I've often had a need to install libraries on my system. In those cases I personally prefer using the package manager to make libraries available to all users on my system, i.e. I don't use distutils and cabal to install things on my system, just as I don't download tar-balls and run 'sudo make install' (instead I wrap that up in a PKGBUILD and install the resulting package). On the other hand I completely understand why virtualenv/hsenv are useful in some cases. By creating a virtual environment they disconnect you from the whims of upstream (Arch & ArchHaskell), letting you create the exact environment you need and run 'pacman -Syu' without having to worry (too much) about breaking that service your livelihood depends on. /M [1]: https://github.com/Paczesiowa/hsenv#what-is-it -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus Perl is another example of filling a tiny, short-term need, and then being a real problem in the longer term. -- Alan Kay

On 15 October 2012 20:51, Magnus Therning
On Mon, Oct 15, 2012 at 05:16:24PM +0100, Mateusz Loskot wrote: [...]
As Haskell newbie and new born Hakyll users, I've found recent replies [1] by Ian Ross interesting:
"I'm also using Arch Linux on x86_64. I would strongly recommend *not* using the Arch packages for most Haskell things. I use hsenv instead."
I haven't switched myself and I still use the packages, but I started to wonder if Ian's got the point indeed.
[1] https://groups.google.com/d/topic/hakyll/9G1qXBA4raU/discussion
As so often it all depends on what your goal is. hsenv compares itself to Python's virtualenv[1]. I've personally written quite a bit of Python code, and used many tools and programs written in Python, without *ever* feeling a need to use virtualenv. The same is, so far at least, true regarding Haskell and hsenv. In neither language have I ever had the need to have more than a single environment around.
Same here, I've written plenty of Python code and never used virualenv. But, I didn't target multi-user environments like Web with those programs.
On the other hand I've often had a need to install libraries on my system. In those cases I personally prefer using the package manager to make libraries available to all users on my system, i.e. I don't use distutils and cabal to install things on my system, just as I don't download tar-balls and run 'sudo make install' (instead I wrap that up in a PKGBUILD and install the resulting package).
Yes, I have impression that's the right way. Especially for, let's say, single end-user cases.
On the other hand I completely understand why virtualenv/hsenv are useful in some cases. By creating a virtual environment they disconnect you from the whims of upstream (Arch & ArchHaskell), letting you create the exact environment you need and run 'pacman -Syu' without having to worry (too much) about breaking that service your livelihood depends on.
For example, if on servers, for Web development, I imagine virtualenv or generally *env approach is necessary, especially in production. Thanks for useful comments. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net

On 15 October 2012 17:16, Mateusz Loskot
On 15 October 2012 11:00, Thomas Friedrich
wrote: 2012/10/13 Fabio Riga
: 2012/10/13 Ramana Kumar
I'm not sure why that error happened but it happened to me too.
The problem seems to be that those files were not part of any package, but now are in ghc.
I removed the offending files manually and tried again, and ran into more problems (although everything installed, there were many warnings about interface files being the wrong version and being skipped). So I'm not sure what the correct way out is. Perhaps it will require some manual removals then reinstalls.
This is a problem with ghc-pkg version. For previous version of ghc I had to do:
$ pacman -Rcs ghc
then reinstall ghc and needed haskell-* packages. I think you'll want to remove the offending files before installing ghc again. I hope this solve the problem.
Why is it that every single time there is a ghc-update, I have to remove everything and reinstall everything haskell related. Haskell is such a cool language but keeping a Haskell environment up-to-date is sometimes just a real pain.
As Haskell newbie and new born Hakyll users, I've found recent replies [1] by Ian Ross interesting:
"I'm also using Arch Linux on x86_64. I would strongly recommend *not* using the Arch packages for most Haskell things. I use hsenv instead."
I haven't switched myself and I still use the packages, but I started to wonder if Ian's got the point indeed.
[1] https://groups.google.com/d/topic/hakyll/9G1qXBA4raU/discussion
This is just an update on the discussion I referred to, Ian posted more details on his blog: http://www.skybluetrades.net/posts/2012/10/13/arch-haskell.html Other users may find it interesting too. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net

On 13 October 2012 11:20, Mateusz Loskot
I just tried to update my Arch system and I got error which I'm not sure how to deal with:
mloskot ~ $ sudo pacman -Syu ... error: failed to commit transaction (conflicting files) ghc: /usr/share/doc/ghc/html/libraries/hslogo-16.png exists in filesystem ghc: /usr/share/doc/ghc/html/libraries/synopsis.png exists in filesystem Errors occurred, no packages were upgraded.
We've diverted the thread a little bit from my original question which seems still unanswered yet. Does it mean currently there is no reliable cure for the update problem? Best regards, -- Mateusz Loskot, http://mateusz.loskot.net

2012/10/18 Mateusz Loskot
On 13 October 2012 11:20, Mateusz Loskot
wrote: mloskot ~ $ sudo pacman -Syu ... error: failed to commit transaction (conflicting files) ghc: /usr/share/doc/ghc/html/libraries/hslogo-16.png exists in filesystem ghc: /usr/share/doc/ghc/html/libraries/synopsis.png exists in filesystem Errors occurred, no packages were upgraded.
We've diverted the thread a little bit from my original question which seems still unanswered yet.
Does it mean currently there is no reliable cure for the update problem?
Now I updated to ghc-7.6 and the method I already exposed just worked. 1. pacman -Rcs ghc 2. rm -r /usr/share/doc/ghc 3. pacman -S ghc cabal-install haskell-whatever Those file wasn't in any package before, so point 2 is mandatory. I also agree that deinstallling and reinstalling everything Haskell-related is very bad, but this is far more comfortable than using cabal and having 10 versions of every package installed (and likely broken). As Haskell programs are statically compiled, I really don't see the point in using such a tool like hsenv. I stick with the archhaskell system. Just my humble opinion, Fabio

On Fri, Oct 19, 2012 at 12:42 PM, Fabio Riga
2012/10/18 Mateusz Loskot
On 13 October 2012 11:20, Mateusz Loskot
wrote: mloskot ~ $ sudo pacman -Syu ... error: failed to commit transaction (conflicting files) ghc: /usr/share/doc/ghc/html/libraries/hslogo-16.png exists in filesystem ghc: /usr/share/doc/ghc/html/libraries/synopsis.png exists in filesystem Errors occurred, no packages were upgraded.
We've diverted the thread a little bit from my original question which seems still unanswered yet.
Does it mean currently there is no reliable cure for the update problem?
Now I updated to ghc-7.6 and the method I already exposed just worked.
1. pacman -Rcs ghc 2. rm -r /usr/share/doc/ghc 3. pacman -S ghc cabal-install haskell-whatever
Those file wasn't in any package before, so point 2 is mandatory.
I also agree that deinstallling and reinstalling everything Haskell-related is very bad, but this is far more comfortable than using cabal and having 10 versions of every package installed (and likely broken). As Haskell programs are statically compiled, I really don't see the point in using such a tool like hsenv. I stick with the archhaskell system.
Yes, it's bad, but not necessary. The spurious png-files need to be removed manually, but there is no strong need to remove ghc and all that depends on it. You will see a few warnings, but they are "under control", basically they are unavoidable when combining ghc-pkg and pacman. I'll be happy to elaborate more on this, if you want, but it'll have to wait until I'm at my laptop. /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus

On 19 October 2012 11:42, Fabio Riga
2012/10/18 Mateusz Loskot
On 13 October 2012 11:20, Mateusz Loskot
wrote: mloskot ~ $ sudo pacman -Syu ... error: failed to commit transaction (conflicting files) ghc: /usr/share/doc/ghc/html/libraries/hslogo-16.png exists in filesystem ghc: /usr/share/doc/ghc/html/libraries/synopsis.png exists in filesystem Errors occurred, no packages were upgraded.
We've diverted the thread a little bit from my original question which seems still unanswered yet.
Does it mean currently there is no reliable cure for the update problem?
Now I updated to ghc-7.6 and the method I already exposed just worked.
1. pacman -Rcs ghc 2. rm -r /usr/share/doc/ghc 3. pacman -S ghc cabal-install haskell-whatever
Those file wasn't in any package before, so point 2 is mandatory.
Thanks mate, this worked well for me. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net
participants (6)
-
Fabio Riga
-
Leif Warner
-
Magnus Therning
-
Mateusz Loskot
-
Ramana Kumar
-
Thomas Friedrich