From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx09.extmail.prod.ext.phx2.redhat.com [10.5.110.38]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uB4Dqv23003460 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sun, 4 Dec 2016 08:52:57 -0500 Received: from nemato.nesselzelle.de (nemato.nesselzelle.de [176.9.85.107]) by mx1.redhat.com (Postfix) with ESMTP id 3CBAF4E4CA for ; Sun, 4 Dec 2016 13:52:55 +0000 (UTC) Received: from sturbolzen ([127.0.0.1]:36185) by localhost.localdomain with [XMail 1.27 ESMTP Server] id for from ; Sun, 4 Dec 2016 12:50:42 +0100 Date: Sun, 4 Dec 2016 12:50:40 +0100 From: Thomas Orgis Message-ID: <20161204125040.1fbe0996@sturbolzen> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/opgDQs3HaBx3QqbQkdf9th6"; protocol="application/pgp-signature" Subject: [linux-lvm] [PATCH] fix link to dmsetup.static when /sbin and /usr/sbin are not the same Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: linux-lvm@redhat.com --Sig_/opgDQs3HaBx3QqbQkdf9th6 Content-Type: multipart/mixed; boundary="MP_/4QnO0gItE9RYMvNI8VoYQAp" --MP_/4QnO0gItE9RYMvNI8VoYQAp Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, LVM2.2.02.168 (and earlier) has that in Makefile.in install_dmsetup_dynamic: dmsetup $(INSTALL_PROGRAM) -D $< $(sbindir)/$( dmsetup.static =E2=80=A6 while the target for that link is -r-xr-xr-x 1 root root 1252120 4. Dez 12:33 /usr/sbin/dmsetup.static I suppose the second link command should create $(staticdir)/dmstats. Regardless of whether your /sbin is a link to /usr/sbin or the other way round, this seems more proper. I am not sure if we want to enforce the link pointing always to the static binary if they end up in the same directory. Anyhow, I attached the trivial patch that avoids a broken symlink. Alrighty then, Thomas --MP_/4QnO0gItE9RYMvNI8VoYQAp Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=lvm-static-dmstats.patch --- LVM2.2.02.168/tools/Makefile.in.orig 2016-12-04 12:37:11.181407587 +0100 +++ LVM2.2.02.168/tools/Makefile.in 2016-12-04 12:37:16.251407927 +0100 @@ -209,7 +209,7 @@ =20 install_dmsetup_static: dmsetup.static $(INSTALL_PROGRAM) -D $< $(staticdir)/$(