From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: runpath validation Date: Tue, 18 Apr 2017 22:26:08 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1148ea8cd3eca9054d76b7ad Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0ZhU-0007Qn-8U for help-guix@gnu.org; Tue, 18 Apr 2017 16:26:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0ZhS-0000Mx-P8 for help-guix@gnu.org; Tue, 18 Apr 2017 16:26:12 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:37112) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d0ZhS-0000MQ-G8 for help-guix@gnu.org; Tue, 18 Apr 2017 16:26:10 -0400 Received: by mail-wm0-x234.google.com with SMTP id u2so6469861wmu.0 for ; Tue, 18 Apr 2017 13:26:10 -0700 (PDT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix --001a1148ea8cd3eca9054d76b7ad Content-Type: text/plain; charset=UTF-8 trying to build Granite https://launchpad.net/granite I get this error validating RUNPATH of 1 binaries in "/gnu/store/c7zrvx10p41g26q0l8jray6xc0lv4qn3-granite-0.4.0.1/bin"... /gnu/store/c7zrvx10p41g26q0l8jray6xc0lv4qn3-granite-0.4.0.1/bin/granite-demo: error: depends on 'libgranite.so.3', which cannot be found in RUNPATH ( "/gnu/store/c7zrvx10p41g26q0l8jray6xc0lv4qn3-granite-0.4.0.1/lib" "/gnu/store/rmjlycdgiq8pfy5hfi42qhw3k7p6kdav-glibc-2.25/lib" "/gnu/store/dhc2iy059hi91fk55dcv79z09kp6500y-gcc-5.4.0-lib/lib" "/gnu/store/33wnpkc00awp59nsr8anmm5d265gcg85-gtk+-3.22.6/lib" "/gnu/store/r1zsyinrpcpfbcym5qrx6zbk6hwzxwnm-pango-1.40.3/lib" "/gnu/store/jkx9mkw8j34jfnv0dqdbbzxdcx3mlfdg-atk-2.22.0/lib" "/gnu/store/i0bjwdqvn0wixcwfpw254w0az17iysga-cairo-1.14.8/lib" "/gnu/store/di54h9fw72m3y31vpkpgk71clccrpwy8-gdk-pixbuf+svg-2.36.3/lib" "/gnu/store/0wps368gx0cn3ynrkbhzq5pxf75rng7y-glib-2.50.3/lib" "/gnu/store/5bx1wrvp15sr8jvwhaxf1x69chmh4w0j-libgee-0.18.1/lib" "/gnu/store/dhc2iy059hi91fk55dcv79z09kp6500y-gcc-5.4.0-lib/lib/gcc/x86_64-unknown-linux-gnu/5.4.0/../../..") I kept the build older (with build -K) and lib/libgranite.so.3 does exist $ /tmp/guix-build-granite-0.4.0.1.drv-0/build$ ls lib/ Application.c Drawing/ granite.vapi libgranite.so.3.0.1 Widgets/ CMakeFiles/ granite.h GtkPatch/ Makefile cmake_install.cmake granite.pc libgranite.so Services/ config.h granite_valac.stamp libgranite.so.3 style-classes.c So I though: if I disable runpath check, lib/libgranite.so.3 will be there, at runtime So: #:validate-runpath? #f in this case the build succeeds but inspecting the built thing in the store I see ~$ ls /gnu/store/zv2c9mbs4q7f75p9xlgxs62fb5wmp3ac-granite-0.4.0.1/ bin/ include/ lib64/ share/ So now the folder is not lib anymore, it's lib64 Will lib/libgranite.so.3 be found ? Thanks ! Ciao --001a1148ea8cd3eca9054d76b7ad Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
trying to bui= ld Granite
https://launchpad.n= et/granite

I get this error

validating RUNPATH of 1= binaries in
"/gnu/store/c7zrvx10p41g26q0l8jray6xc0lv4qn3-granite-= 0.4.0.1/bin"...
/gnu/store/c7zrvx10p41g26q0l8jray6xc0lv4qn3-granite= -0.4.0.1/bin/granite-demo:
error: depends on 'libgranite.so.3',= which cannot be found in RUNPATH
(
"/gnu/store/c7zrvx10p41g26q= 0l8jray6xc0lv4qn3-granite-0.4.0.1/lib"
"/gnu/store/rmjlycdgiq= 8pfy5hfi42qhw3k7p6kdav-glibc-2.25/lib"
"/gnu/store/dhc2iy059h= i91fk55dcv79z09kp6500y-gcc-5.4.0-lib/lib"
"/gnu/store/33wnpkc= 00awp59nsr8anmm5d265gcg85-gtk+-3.22.6/lib"
"/gnu/store/r1zsyi= nrpcpfbcym5qrx6zbk6hwzxwnm-pango-1.40.3/lib"
"/gnu/store/jkx9= mkw8j34jfnv0dqdbbzxdcx3mlfdg-atk-2.22.0/lib"
"/gnu/store/i0bj= wdqvn0wixcwfpw254w0az17iysga-cairo-1.14.8/lib"
"/gnu/store/di= 54h9fw72m3y31vpkpgk71clccrpwy8-gdk-pixbuf+svg-2.36.3/lib"
"/g= nu/store/0wps368gx0cn3ynrkbhzq5pxf75rng7y-glib-2.50.3/lib"
"/= gnu/store/5bx1wrvp15sr8jvwhaxf1x69chmh4w0j-libgee-0.18.1/lib"
&quo= t;/gnu/store/dhc2iy059hi91fk55dcv79z09kp6500y-gcc-5.4.0-lib/lib/gcc/x86_64-= unknown-linux-gnu/5.4.0/../../..")

I kept the build older= (with build -K) and lib/libgranite.so.3 does exist

$ /tmp/guix-buil= d-granite-0.4.0.1.drv-0/build$ ls lib/
Application.c=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 Drawing/=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 granite.vapi=C2=A0=C2=A0=C2=A0=C2=A0 libgran= ite.so.3.0.1=C2=A0 Widgets/
CMakeFiles/=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 granite.h=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 GtkPatch/=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 Makefile
cmake_install.cmake=C2=A0 granite.pc=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 libgranite.so=C2=A0=C2=A0=C2=A0 Ser= vices/
config.h=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 granite_valac.stamp=C2=A0 libgranite.so.3=C2=A0 style-class= es.c

So I though: if I disable runpath check, lib/libgranite.= so.3 will be there, at runtime

So:

#:validate-runpath? = #f

in this case the build succeeds but inspecting the built th= ing in the store I see

~$ ls /gnu/store/zv2c9mbs4q7f75p9xlgxs62fb5wm= p3ac-granite-0.4.0.1/
bin/=C2=A0 include/=C2=A0 lib64/=C2=A0 share/
<= br>
So now the folder is not lib anymore, it's lib64

= Will lib/libgranite.so.3 be found ?

Thanks !
Ciao
--001a1148ea8cd3eca9054d76b7ad--