<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Bonjour,<br>
</p>
<p>Je viens d'essayer un "debuild -b" dans une VM minimale (Debian
de base).</p>
<ol>
<li>config réseau</li>
<li>installation de git</li>
<li>git clone mccode</li>
<li>apt install <dependencies in control file></li>
<li>debuild -b</li>
</ol>
<p>Ca se passe bien, comme avec un build local dans un système
complet. Les paquets contiennent bien tous les fichiers, y compris
le "general.c" pris par "recode".</p>
<p>Et pourtant il manque quelque chose en passant par le sbuild : ca
s'arrete sur le "recode general.c" car ce fichier n'est pas
présent dans l'arborescence du paquet. Et il en manque plein
d'autre aussi.</p>
<p>Je penche pour une exécution incomplète de
cmake/Modules/InstallMCCODE.cmake<br>
</p>
<p>Emmanuel.<br>
</p>
<div class="moz-cite-prefix">Le 25/06/2024 à 17:42, Emmanuel FARHI a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:a9f5802f-7607-4dac-aa7b-c8d7d1ffac1b@synchrotron-soleil.fr">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Je suis en train de comparer la procédure de build de 'mccode'
en local et avec le sbuild.</p>
<p>Ca plante en sbuild (depuis salsa), mais ca passe en local
depuis un git clone.<br>
</p>
<p>Il semble que avec le sbuild on a par exemple:</p>
<blockquote><font face="monospace"># Performing mcstas install in
packages<br>
cd BUILD/mcstas && make install
DESTDIR=/<<PKGBUILDDIR>>/debian/mcstas<br>
make[2]: Entering directory
'/<<PKGBUILDDIR>>/BUILD/mcstas'<br>
make[3]: Entering directory
'/<<PKGBUILDDIR>>/BUILD/mcstas'<br>
make[4]: Entering directory
'/<<PKGBUILDDIR>>/BUILD/mcstas'<br>
make[4]: Leaving directory
'/<<PKGBUILDDIR>>/BUILD/mcstas'<br>
[ 50%] Built target mcstas<br>
make[4]: Entering directory
'/<<PKGBUILDDIR>>/BUILD/mcstas'<br>
make[4]: Leaving directory
'/<<PKGBUILDDIR>>/BUILD/mcstas'<br>
[100%] Built target mcstas-pygen<br>
make[3]: Leaving directory
'/<<PKGBUILDDIR>>/BUILD/mcstas'<br>
Install the project...<br>
-- Install configuration: ""<br>
-- Installing:
/<<PKGBUILDDIR>>/debian/mcstas/usr/share/mcstas/info/COPYING<br>
-- Installing:
/<<PKGBUILDDIR>>/debian/mcstas/usr/bin/mcstas<br>
-- Installing:
/<<PKGBUILDDIR>>/debian/mcstas/usr/bin/mcstas-pygen<br>
-- Installing:
/<<PKGBUILDDIR>>/debian/mcstas/usr/share/mcstas/mcstas-environment<br>
-- Installing:
/<<PKGBUILDDIR>>/debian/mcstas/usr/share/mcstas/mcstas-labenv<br>
-- Installing:
/<<PKGBUILDDIR>>/debian/mcstas/usr/share/mcstas/mcstas-module<br>
make[2]: Leaving directory
'/<<PKGBUILDDIR>>/BUILD/mcstas'</font><br>
</blockquote>
<p>Et en local manuel debuild -b:</p>
<blockquote><font face="monospace"># Performing mcstas install in
packages<br>
cd BUILD/mcstas && make install
DESTDIR=/home/experiences/grades/farhie/dev/mccode/debian/mcstas<br>
make[2] : on entre dans le répertoire
« /home/experiences/grades/farhie/dev/mccode/BUILD/mcstas »<br>
make[3] : on entre dans le répertoire
« /home/experiences/grades/farhie/dev/mccode/BUILD/mcstas »<br>
make[4] : on entre dans le répertoire
« /home/experiences/grades/farhie/dev/mccode/BUILD/mcstas »<br>
make[4] : on quitte le répertoire
« /home/experiences/grades/farhie/dev/mccode/BUILD/mcstas »<br>
[ 50%] Built target mcstas<br>
make[4] : on entre dans le répertoire
« /home/experiences/grades/farhie/dev/mccode/BUILD/mcstas »<br>
make[4] : on quitte le répertoire
« /home/experiences/grades/farhie/dev/mccode/BUILD/mcstas »<br>
[100%] Built target mcstas-pygen<br>
make[3] : on quitte le répertoire
« /home/experiences/grades/farhie/dev/mccode/BUILD/mcstas »<br>
Install the project...<br>
-- Install configuration: ""<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/info/COPYING<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/adapt_tree-lib.h<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/interoff-lib.h<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/interpolation-lib.h<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/mccode-r.h<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/metadata-r.h<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/opencl-lib.h<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/r-interoff-lib.h<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/read_table-lib.h<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/adapt_tree-lib.c<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/interoff-lib.c<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/interpolation-lib.c<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/mccode-r.c<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/mccode_main.c<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/metadata-r.c<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/opencl-lib.c<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/r-interoff-lib.c<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/read_table-lib.c<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/general.h<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/intersection.h<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/mcstas-r.h<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/pol-lib.h<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/ref-lib.h<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/vitess-lib.h<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/general.c<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/intersection.c<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/mcstas-r.c<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/pol-lib.c<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/ref-lib.c<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/vitess-lib.c<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/bin/mcstas<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/bin/mcstas-pygen<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/mcstas-environment<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/mcstas-labenv<br>
-- Installing:
/home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/mcstas-module<br>
make[2] : on quitte le répertoire
« /home/experiences/grades/farhie/dev/mccode/BUILD/mcstas »</font><br>
</blockquote>
<p>Donc on a des fichiers qui ne sont pas installé avec le
sbuild... Et ca se reproduit pour d'autres parties.</p>
<p>Je ne sais pas ce qu'il se passe là !</p>
<p>Emmanuel.<br>
</p>
<div class="moz-cite-prefix">Le 25/06/2024 à 09:50, PICCA
Frederic-Emmanuel a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:1172297250.65027432.1719301853339.JavaMail.zimbra@synchrotron-soleil.fr">
<pre class="moz-quote-pre" wrap="">En fait il faut configurer sbuild pour entrer dans le chroot en cas de failure et à ce moment là il est possible d'explorer tout le build :)
dgit --gbp sbuild --build-failed-commands '%SBUILD_SHELL'
</pre>
</blockquote>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type"
content="text/html; charset=UTF-8">
<title>signature</title>
<div
style="font-family: arial, helvetica, sans-serif; font-size:
12pt; color: rgb(0, 0, 0);">
<meta http-equiv="content-type"
content="text/html; charset=UTF-8">
<div>
<div><span
style="font-family: courier new, courier, monaco,
monospace, sans-serif;"><span style="color: rgb(0, 0, 255);">/
___|<span style="color: rgb(255, 153, 0);">__/\_</span>|
| | ____|_ _| |</span> FARHI Emmanuel</span><br>
<span
style="font-family: courier new, courier, monaco,
monospace, sans-serif;"><span style="color: rgb(0, 0, 255);">\___
\<span style="color: rgb(255, 153, 0);">\ </span>|
| | _| | || |</span> Div Exp/Data Reduction
and Analysis Team</span><br>
<span
style="font-family: courier new, courier, monaco,
monospace, sans-serif;"><span style="color: rgb(0, 0, 255);"> ___)
<span style="color: rgb(255, 153, 0);">/_ _</span>|
|___| |___ | || |___</span> Tel : <span
class="Object" role="link"
id="OBJ_PREFIX_DWT373_com_zimbra_phone"><a
href="callto:+33%20%281%29%2069%2035%2096%2004"
onclick="window.top.Com_Zimbra_Phone.unsetOnbeforeunload()"
moz-do-not-send="true">+33 (1) 69 35 96 04</a></span></span><br>
<span
style="font-family: courier new, courier, monaco,
monospace, sans-serif;"><span style="color: rgb(0, 0, 255);">|____/
<span style="color: rgb(255, 153, 0);"> \/</span>
|_____|_____|___|_____|</span> Saint-Aubin BP 48 -
91192 GIF/YVETTE CEDEX</span><br>
<span
style="font-family: courier new, courier, monaco,
monospace, sans-serif;"> <span
style="color: rgb(0, 0, 255);">SYNCHROTRON</span> <span
class="Object" role="link"
id="OBJ_PREFIX_DWT374_com_zimbra_url"><a
target="_blank"
href="http://www.synchrotron-soleil.fr"
class="moz-txt-link-freetext" moz-do-not-send="true">http://www.synchrotron-soleil.fr</a></span></span></div>
</div>
</div>
</div>
</blockquote>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>signature</title>
<div
style="font-family: arial, helvetica, sans-serif; font-size:
12pt; color: rgb(0, 0, 0);">
<meta http-equiv="content-type"
content="text/html; charset=UTF-8">
<div>
<div><span
style="font-family: courier new, courier, monaco,
monospace, sans-serif;"><span style="color: rgb(0, 0, 255);">/
___|<span style="color: rgb(255, 153, 0);">__/\_</span>|
| | ____|_ _| |</span> FARHI Emmanuel</span><br>
<span
style="font-family: courier new, courier, monaco,
monospace, sans-serif;"><span style="color: rgb(0, 0, 255);">\___
\<span style="color: rgb(255, 153, 0);">\ </span>| |
| _| | || |</span> Div Exp/Data Reduction and
Analysis Team</span><br>
<span
style="font-family: courier new, courier, monaco,
monospace, sans-serif;"><span style="color: rgb(0, 0, 255);"> ___)
<span style="color: rgb(255, 153, 0);">/_ _</span>|
|___| |___ | || |___</span> Tel : <span
class="Object" role="link"
id="OBJ_PREFIX_DWT373_com_zimbra_phone"><a
href="callto:+33%20%281%29%2069%2035%2096%2004"
onclick="window.top.Com_Zimbra_Phone.unsetOnbeforeunload()"
moz-do-not-send="true">+33 (1) 69 35 96 04</a></span></span><br>
<span
style="font-family: courier new, courier, monaco,
monospace, sans-serif;"><span style="color: rgb(0, 0, 255);">|____/
<span style="color: rgb(255, 153, 0);"> \/</span>
|_____|_____|___|_____|</span> Saint-Aubin BP 48 -
91192 GIF/YVETTE CEDEX</span><br>
<span
style="font-family: courier new, courier, monaco,
monospace, sans-serif;"> <span
style="color: rgb(0, 0, 255);">SYNCHROTRON</span> <span
class="Object" role="link"
id="OBJ_PREFIX_DWT374_com_zimbra_url"><a target="_blank"
href="http://www.synchrotron-soleil.fr"
class="moz-txt-link-freetext" moz-do-not-send="true">http://www.synchrotron-soleil.fr</a></span></span></div>
</div>
</div>
</div>
</body>
</html>