<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Maybe we can use macros from Fedora to not reinvent a wheel<br>
<br>
<a class="moz-txt-link-freetext" href="https://pagure.io/fedora-rust/rust2rpm/tree/main">https://pagure.io/fedora-rust/rust2rpm/tree/main</a><br>
<br>
<a class="moz-txt-link-freetext" href="https://src.fedoraproject.org/rpms/rust-srpm-macros/blob/rawhide/f/rust-srpm-macros.spec">https://src.fedoraproject.org/rpms/rust-srpm-macros/blob/rawhide/f/rust-srpm-macros.spec</a><br>
<br>
They are complex, though</p>
<p>(please don't loose devel-en@ from the "To" / "CC" filed )<br>
</p>
<div class="moz-cite-prefix">29.05.2022 12:40, abf only пишет:<br>
</div>
<blockquote type="cite"
cite="mid:ECF03E48-0CE5-4E2F-BBD0-D8C7B1B61725@getmailspring.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>Ok I got it , I guess, beside build the source tarball wit
-g flag, it has to be build all targets with debug simbols,</div>
<div>so instead of:</div>
<blockquote> RUSTFLAGS=-g cargo build ,</blockquote>
<div>should be</div>
<blockquote>RUSTFLAGS=-g cargo build --all-targets</blockquote>
<div>also --offline flag is a must ,since on abf the wrokers don't
have online build enabled,</div>
<div>( sometimes --frozen flag is usefull if the build use a local
index of the crates, to avoid</div>
<div>search for new online crates located outside crates-io-index
tree, like gitlab )</div>
<div>and just add in your .cargo/config.toml:</div>
<br>
<blockquote>[source.<a class="moz-txt-link-rfc2396E" href="https:/gitlab.com/xyz.git">"https:/gitlab.com/xyz.git"</a>]</blockquote>
<blockquote>git = <a class="moz-txt-link-rfc2396E" href="https://gitlab.com/xyz.git">"https://gitlab.com/xyz.git"</a></blockquote>
<blockquote>replace-with = "vendored-sources"</blockquote>
<br>
<div>Thanks again, take care.</div>
<br>
<br>
<br>
<br>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div><signature
id="initial">
<div>
<table
cellspacing="0"
cellpadding="0">
<tbody>
<tr>
<td
colspan="2">
<div
style="padding-bottom:15px">
<div><strong>Symbianflo</strong></div>
<div>= MRB
ain't no shit.
Keep safe use
Linux.=</div>
</div>
</td>
</tr>
<tr>
<td
style="vertical-align:top"><img
alt=""
src="https://user-generated.getmailspring.com/asset/N2NjZjM5ZmMtNDlmMS00NzUxLTg5NjYtYWNkZmIzNmI1NWQwL3NpZy1pbml0aWFsLnBuZw.png?t=1623269216573&msw=225&msh=225"
style="max-width:200px;max-height:60px" moz-do-not-send="true"
width="60"
height="60"></td>
<td>
<div
style="font-size:0.9em;white-space:nowrap;border-left:2px
solid
gray;margin-left:20px;padding-left:20px">
<div>
<div><span>W:
</span><a
href=" =
https://abf.io/platforms/rosalinuxro_personal
="
moz-do-not-send="true"
class="moz-txt-link-freetext">=
https://abf.io/platforms/rosalinuxro_personal
=</a></div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</signature></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="gmail_quote_attribution">On mag 29 2022, at 10:09 am,
abf only <a class="moz-txt-link-rfc2396E" href="mailto:abfonly@gmail.com"><abfonly@gmail.com></a> wrote:</div>
<blockquote>
<div>Already done that.. calling -g , flag to compiler
won't call the debug symbols...</div>
<div>g approach seems not working.. sadly</div>
<br>
<br>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">Esecuzione(%build) in
corso: /bin/sh -e /var/tmp/rpm-tmp.YExN6U</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">+ umask 022</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">+ cd
/home/symbianflo/rpmbuild/BUILD</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">+ cd joshuto-0.9.3</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">+ '[' 1 -eq 1 ']'</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">+ '[' 1 -eq 1 ']'</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">++ pwd</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">+ export
CARGO_HOME=/home/symbianflo/rpmbuild/BUILD/joshuto-0.9.3/.cargo</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">+
CARGO_HOME=/home/symbianflo/rpmbuild/BUILD/joshuto-0.9.3/.cargo</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">+ RUSTFLAGS=-g</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">+ cargo build --release
--offline --frozen</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">###############################################</span></font></div>
<br>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">Elaborazione file:
joshuto-debugsource-0.9.3-1.x86_64</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">errore: Empty %files file
/home/symbianflo/rpmbuild/BUILD/joshuto-0.9.3/debugsourcefiles.list</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">Elaborazione file:
joshuto-debuginfo-0.9.3-1.x86_64</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">Provides:
debuginfo(build-id) =
c186b59ac92054e9e44615e473326b5f3041f4a9 joshuto-debuginfo
= 0.9.3-1 joshuto-debuginfo(x86-64) = 0.9.3-1</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">Requires(rpmlib):
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">Recommends:
joshuto-debugsource(x86-64) = 0.9.3-1</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">Controllo per file non
pacchettizzati in corso: /usr/lib/rpm/check-files
/home/symbianflo/rpmbuild/BUILDROOT/joshuto-0.9.3-1.x86_64</span></font></div>
<br>
<br>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)">Errori di compilazione RPM:</span></font></div>
<div><font style="font-family:monospace"><span
style="color:rgb(24, 178, 24)"> Empty %files file
/home/symbianflo/rpmbuild/BUILD/joshuto-0.9.3/debugsourcefiles.list</span></font></div>
<br>
<br>
<div><font style="font-family:monospace">I would wait for advice
before push rust apps in contrib, with no debugging.</font></div>
<br>
<div><font style="font-family:monospace">THANKS.</font></div>
<br>
<br>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<table
cellspacing="0"
cellpadding="0">
<tbody>
<tr>
<td
colspan="2">
<div
style="padding-bottom:15px">
<div><strong>Symbianflo</strong></div>
<div>= MRB
ain't no shit.
Keep safe use
Linux.=</div>
</div>
</td>
</tr>
<tr>
<td
style="vertical-align:top"><img
alt=""
src="https://user-generated.getmailspring.com/asset/N2NjZjM5ZmMtNDlmMS00NzUxLTg5NjYtYWNkZmIzNmI1NWQwL3NpZy1pbml0aWFsLnBuZw.png?t=1623269216573&msw=225&msh=225"
style="max-width:200px;max-height:60px" moz-do-not-send="true"
width="60"
height="60"></td>
<td>
<div
style="font-size:0.9em;white-space:nowrap;border-left:2px
solid
gray;margin-left:20px;padding-left:20px">
<div>
<div><span>W:
</span><a
href=" =
https://abf.io/platforms/rosalinuxro_personal
="
moz-do-not-send="true"
class="moz-txt-link-freetext">=
https://abf.io/platforms/rosalinuxro_personal
=</a></div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="gmail_quote_attribution">On mag 28 2022, at 10:09
pm, Mikhail Novosyolov <a class="moz-txt-link-rfc2396E" href="mailto:m.novosyolov@rosalinux.ru"><m.novosyolov@rosalinux.ru></a>
wrote:</div>
<blockquote>
<div> </div>
<div>
<div>Try RUSTFLAGS=-g cargo build</div>
</div>
<br>
<div class="moz-cite-prefix">
<div>28.05.2022 23:01, abf only пишет:</div>
</div>
<blockquote><br>
<div>Yes , of course, none of cargo build /install won't
create debug/debuginfo, at least not for me.</div>
<div>Also , since rust is coming up strong ( see
kernel.org), some rust/cargo macros would be needed,</div>
<div>IMHO.</div>
<div>Thx for reply</div>
<br>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<table
cellspacing="0"
cellpadding="0">
<tbody>
<tr>
<td
colspan="2">
<div
style="padding-bottom:15px">
<div><strong>Symbianflo</strong></div>
<div>= MRB
ain't no shit.
Keep safe use
Linux.=</div>
</div>
</td>
</tr>
<tr>
<td
style="vertical-align:top"><img
alt=""
src="https://user-generated.getmailspring.com/asset/N2NjZjM5ZmMtNDlmMS00NzUxLTg5NjYtYWNkZmIzNmI1NWQwL3NpZy1pbml0aWFsLnBuZw.png?t=1623269216573&msw=225&msh=225"
style="max-width:200px;max-height:60px" moz-do-not-send="true"
width="60"
height="60"></td>
<td>
<div
style="font-size:0.9em;white-space:nowrap;border-left:2px
solid
gray;margin-left:20px;padding-left:20px">
<div>
<div><span>W:
</span><a
href=" =
https://abf.io/platforms/rosalinuxro_personal
="
class="moz-txt-link-freetext"
moz-do-not-send="true">= https://abf.io/platforms/rosalinuxro_personal =</a></div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="gmail_quote_attribution">On mag 28 2022, at 9:56
pm, Mikhail Novosyolov <a
href="mailto:m.novosyolov@rosalinux.ru"
title="mailto:m.novosyolov@rosalinux.ru"
moz-do-not-send="true"><m.novosyolov@rosalinux.ru></a> wrote:</div>
<blockquote>
<div>
<div>28.05.2022 15:27, abf only пишет:</div>
<div>> Hi</div>
<div>> Do we have somebody wich can help with rust,
( cargo build),</div>
<div>> I really don't know how to enable debugging in
cargo.</div>
<div>> Please advice.</div>
<div>> Thanks.</div>
<div>Hi! Do you mean debuginfo subpackages?</div>
<div>_______________________________________________</div>
<div>Devel-en mailing list</div>
<div><a href="mailto:Devel-en@lists.rosalinux.ru"
title="mailto:Devel-en@lists.rosalinux.ru"
moz-do-not-send="true" class="moz-txt-link-freetext">Devel-en@lists.rosalinux.ru</a></div>
<div><a
href="http://lists.rosalinux.ru/mailman/listinfo/devel-en"
title="http://lists.rosalinux.ru/mailman/listinfo/devel-en"
moz-do-not-send="true" class="moz-txt-link-freetext">http://lists.rosalinux.ru/mailman/listinfo/devel-en</a></div>
</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</body>
</html>