You are not logged in.

#1 2012-04-29 22:50:59

4on6
Member
Registered: 2011-10-05
Posts: 172

Pacman and symlinks

Hi List,
since my root partition was almost full, I move the 'fat' ghc to my home partition and set a symlink back. Pandoc, the only haskell app I use, still worked after that. But pacman now seems to fail when trying to update. So pacman does not accept symlinks to libraries?

I did not set LC_ALL=C for the output below, and can't reproduce it, so its in German, but it basically says: file or directory not found, command could not be executed.

/usr/bin/ghc-pkg: Zeile 11: /usr/lib/ghc-7.4.1/ghc-pkg: Datei oder Verzeichnis nicht gefunden
Fehler: Befehl konnte nicht korrekt ausgeführt werden
( 8/33) Aktualisiere haskell-network                                                [################################################] 100%
/usr/bin/ghc-pkg: Zeile 11: /usr/lib/ghc-7.4.1/ghc-pkg: Datei oder Verzeichnis nicht gefunden
../../../../../bin/haddock: Zeile 10: /usr/lib/ghc-7.4.1/haddock: Datei oder Verzeichnis nicht gefunden
Fehler: Befehl konnte nicht korrekt ausgeführt werden
/usr/bin/ghc-pkg: Zeile 11: /usr/lib/ghc-7.4.1/ghc-pkg: Datei oder Verzeichnis nicht gefunden
Fehler: Befehl konnte nicht korrekt ausgeführt werden
( 9/33) Aktualisiere haskell-http                                                   [################################################] 100%
/usr/bin/ghc-pkg: Zeile 11: /usr/lib/ghc-7.4.1/ghc-pkg: Datei oder Verzeichnis nicht gefunden
../../../../../bin/haddock: Zeile 10: /usr/lib/ghc-7.4.1/haddock: Datei oder Verzeichnis nicht gefunden
Fehler: Befehl konnte nicht korrekt ausgeführt werden
/usr/bin/ghc-pkg: Zeile 11: /usr/lib/ghc-7.4.1/ghc-pkg: Datei oder Verzeichnis nicht gefunden
Fehler: Befehl konnte nicht korrekt ausgeführt werden

...

Here is the symlink:

  lrwxrwxrwx   1 root root       31 16. Apr 21:23 ghc-7.4.1 -> /home/tj/root/usr/lib/ghc-7.4.1

Offline

#2 2012-04-30 01:08:25

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: Pacman and symlinks

Might make more sense to move the whole package to your /home with the pacman --root option. Will take a few more symbolic links, but seems a more proper way to manage things

Offline

#3 2012-04-30 01:27:27

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Pacman and symlinks

No... this is the wrong way to use the --root option:

       -r, --root <path>
           Specify an alternative installation root (default is /). This should not be used as a way to install
           software into /usr/local instead of /usr. <snip>

Offline

Board footer

Powered by FluxBB