Your message dated Mon, 11 Jan 2016 22:51:26 +0000
with message-id <[email protected]>
and subject line Bug#767928: fixed in less 481-2
has caused the Debian Bug report #767928,
regarding files with the same name installed in / and /usr
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
767928: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=767928
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: less
Version: 458-3
Severity: normal
Tags: patch
User: [email protected]
Usertags: usrmerge

The package installs a symbolic link and a file with the same name in
both /bin/ and /usr/bin/, so it makes impossible to convert a system
to the everything-in-usr directories scheme.

The attached patch solves this problem by creating the link in postinst
and only if it is needed.

For more information about everything-in-usr please read
http://anonscm.debian.org/cgit/users/md/usrmerge.git/tree/debian/README.Debian

-- 
ciao,
Marco
diff -urpN a/debian/less.postinst b/debian/less.postinst
--- a/debian/less.postinst	1970-01-01 01:00:00.000000000 +0100
+++ b/debian/less.postinst	2014-11-02 02:15:05.000000000 +0100
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = 'configure' ]; then
+  for file in lessfile lesspipe lesskey lessecho less; do
+    if [ ! -e /usr/bin/$file ]; then
+      ln -s /bin/$file /usr/bin/$file
+    fi
+  done
+fi
+
+#DEBHELPER#
diff -urpN a/debian/less.postrm b/debian/less.postrm
--- a/debian/less.postrm	1970-01-01 01:00:00.000000000 +0100
+++ b/debian/less.postrm	2014-11-02 02:15:11.000000000 +0100
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = 'remove' ]; then
+  for file in lessfile lesspipe lesskey lessecho less; do
+    if [ -L /usr/bin/$file ]; then
+      rm /usr/bin/$file
+    fi
+  done
+fi
+
+#DEBHELPER#
diff -urpN a/debian/rules b/debian/rules
--- a/debian/rules	2014-09-08 06:15:39.000000000 +0200
+++ b/debian/rules	2014-11-02 02:15:55.000000000 +0100
@@ -56,11 +56,6 @@ install: build
 	$(MAKE) install prefix=`pwd`/debian/`dh_listpackages`/
 	install -m 0755 debian/lesspipe `pwd`/debian/`dh_listpackages`/bin/lesspipe
 	ln -s lesspipe `pwd`/debian/`dh_listpackages`/bin/lessfile
-	ln -s /bin/lesspipe `pwd`/debian/`dh_listpackages`/usr/bin/lessfile
-	ln -s /bin/lesspipe `pwd`/debian/`dh_listpackages`/usr/bin/lesspipe
-	ln -s /bin/lesskey `pwd`/debian/`dh_listpackages`/usr/bin/lesskey
-	ln -s /bin/lessecho `pwd`/debian/`dh_listpackages`/usr/bin/lessecho
-	ln -s /bin/less `pwd`/debian/`dh_listpackages`/usr/bin/less
 	ln -s lesspipe.1.gz `pwd`/debian/`dh_listpackages`/usr/share/man/man1/lessfile.1.gz
 
 binary-indep: build install

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: less
Source-Version: 481-2

We believe that the bug you reported is fixed in the latest version of
less, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Anibal Monsalve Salazar <[email protected]> (supplier of updated less package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 11 Jan 2016 12:12:37 +0000
Source: less
Binary: less
Architecture: source mips
Version: 481-2
Distribution: unstable
Urgency: medium
Maintainer: Anibal Monsalve Salazar <[email protected]>
Changed-By: Anibal Monsalve Salazar <[email protected]>
Description:
 less       - pager program similar to more
Closes: 767928
Changes:
 less (481-2) unstable; urgency=medium
 .
   * Fix "files with the same name installed in / and /usr"
     Patch by Marco d'Itri
     Closes: #767928
Checksums-Sha1:
 74c1742fbfbf3a41974265318b065ca3d283e5a8 1699 less_481-2.dsc
 98f1dcf738c0207ca579d20a26f5eb3320b4d35f 19156 less_481-2.debian.tar.xz
 5c1aa738d3ccb4a6dedfe4dfa6857c348058f987 154718 less-dbgsym_481-2_mips.deb
 2b0f7a64bc6a85b17b978cbc3b163989fa2b8e50 133670 less_481-2_mips.deb
Checksums-Sha256:
 bef1b305ce05916db044c8c1160b0ca8e3011a843e2bcd0851f9d82138f4a3b0 1699 
less_481-2.dsc
 29327e7768a3518e31db56783be8c8a34a9e2611feaeba7e6179f7394556e9f8 19156 
less_481-2.debian.tar.xz
 d510a456cfec445345f6a60878e6e0138182edbc17c60fe1e8360b3f51224dd6 154718 
less-dbgsym_481-2_mips.deb
 6c3e7e94e33fbc285ab0bd00cc29945417a7d04f839e55c54b2550de0baca534 133670 
less_481-2_mips.deb
Files:
 1aee199a414d2097a9720f2afb98fe4c 1699 text important less_481-2.dsc
 63da79f9a2b0cadc9a2fb1aa230deae8 19156 text important less_481-2.debian.tar.xz
 baa18589c8590c137512881928359dad 154718 debug extra less-dbgsym_481-2_mips.deb
 e8bedebbc193fde37a425cc772d5563b 133670 text important less_481-2_mips.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJWlC01AAoJEHxWrP6UeJfYrpEQAMZkmTJPifV2ibtbH+VyGPPB
cXrPlIit3Y8UV+XsosFfGZMjslUJobVnI3psHIyD6OXKByroCxi5a/zMDZp6Ou3n
bYzXSMc1pcgTU2ZGZ57jDI4mkz/ytmGWLLVv+bg4uCo+PYZG4QxRYjY6EGa8PdNY
SvkRnQiulsEkLLdj2muBJbvduErTQFsiXTcIEwrF/0fSnsFPrB33qOUyXcAwCk/F
QzNt0ab3mEDbBnV2xn+UXr/pS0qBqU0K+tGthvf60WKmqoeSG71g61cPfX1XGyXJ
s4+N0vzPwm0kq2Jzlsnx25z/GE2DBq8xVZTpXeZ9fHn3QV7VG39UZM8V+2D0xZYa
kVy4+m2A0b08AYwRPu2vrD+MIkRnfr8YZ6JmPCENiMRBj+vrd+sJiyb55+rar4d6
LCUp5ObLlxBulUwN+jP4oPSiu8OnZ9lQgkQY7hnqPXFRMvSAbt5dVHGva01r4I3u
+XmHQtuJDB6cfrKoq4BvTzDTwqFCXgcEKgPOVj+rBJd+oM/I9wOLcT/o9P8rqb9D
+qdmSfGOTVNxJqYAlRQOC0tMXsSwtAJwEP7nVjb51RjIEQhzK8zS/998c6kYsCbn
ez7mCXR5tr079OUe38Zq4lWsY2S842H4tLaWgte/nX9YV7IEc/u9B3/y49gp83Mk
W3fn9+74FCmkWZ/y7O3p
=Iv7c
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to