Browse Source

Install installed magic in /usr/lib/

Christoph Biedl 7 years ago
parent
commit
34476184e4
2 changed files with 9 additions and 3 deletions
  1. 1 1
      debian/libmagic1.install
  2. 8 2
      debian/libmagic1.links

+ 1 - 1
debian/libmagic1.install

@@ -1,4 +1,4 @@
 etc
 usr/lib/*/*.so.*
-usr/share/file
+usr/share/file/magic.mgc    usr/lib/file/
 usr/share/man/man5

+ 8 - 2
debian/libmagic1.links

@@ -1,2 +1,8 @@
-/usr/share/file/magic.mgc	/usr/share/misc/magic.mgc
-/usr/share/file/magic		/usr/share/misc/magic
+
+# upstream and many applications expect the magic in /usr/share/misc/,
+# other in /usr/share/file/. The compiled magic however is
+# arch-dependent and must therefore be in /usr/lib/
+# Provide symlinks in the hope everybody gets satisfied.
+/usr/lib/file/magic.mgc     /usr/share/file/magic.mgc
+/usr/lib/file/magic.mgc     /usr/share/misc/magic.mgc
+/usr/share/file/magic       /usr/share/misc/magic