<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:-apple-system;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">I think if you have the rpm already pre-built, you can probably bypass building  StarlingX and just try to run the patch-build command<o:p></o:p></p>
<p class="MsoNormal">You just need to make sure the tool can find the rpm.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Someone else on this channel might have info about the build problems and environment setup<o:p></o:p></p>
<p class="MsoNormal">Al<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> LiuYongfu <114769003@qq.com> <br>
<b>Sent:</b> Wednesday, March 8, 2023 7:08 AM<br>
<b>To:</b> Bailey, Henry Albert (Al) <Al.Bailey@windriver.com>; starlingx-discuss <starlingx-discuss@lists.starlingx.io><br>
<b>Subject:</b> Re<span style="font-family:"MS Gothic"">:</span>RE: [Starlingx-discuss] how to install my own rpm<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:solid #9C6500 1.0pt;padding:2.0pt 2.0pt 2.0pt 2.0pt">
<p class="MsoNormal" style="background:#FCFC03"><b><span style="color:black">CAUTION: This email comes from a non Wind River email account!</span></b><span style="color:black"><br>
</span><span style="font-size:10.0pt;color:black">Do not click links or open attachments unless you recognize the sender and know the content is safe.</span><o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033">Hi</span><span style="font-size:10.5pt;font-family:"MS Gothic";color:#2E3033">,</span><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033">    thanks very much . so I need to make a pach  and install it .  my first step is to build the starlingx .when I build this.  It has some problems as below:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033">could you please help me ? thanks very much.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033"><img width="1686" height="1010" style="width:17.5625in;height:10.5208in" id="_x0000_i1029" src="cid:image001.png@01D9519E.F28B5340"></span><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033"><o:p></o:p></span></p>
</div>
<div>
<div class="MsoNormal" align="center" style="margin-bottom:7.5pt;text-align:center">
<hr size="0" width="50" style="width:37.5pt" noshade="" style="color:#2E3033" align="center">
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:7.5pt"><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033"><br>
<br>
<o:p></o:p></span></p>
</div>
<div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="40" valign="top" style="width:30.0pt;padding:7.5pt 15.0pt 0in 0in">
<div style="border:solid white 1.0pt;padding:0in 0in 0in 0in;border-radius:50%;box-shadow: 0 0 10px 0 rgba(127,152,178,0.14)">
<p class="MsoNormal" style="vertical-align:top"><span style="border:solid windowtext 1.0pt;padding:0in"><img width="100" height="100" style="width:1.0416in;height:1.0416in" id="Picture_x0020_3" src="cid:~WRD0002.jpg" alt="Image removed by sender."></span><o:p></o:p></p>
</div>
</td>
<td valign="top" style="padding:7.5pt 0in 6.0pt 7.5pt">
<div>
<p class="MsoNormal" style="line-height:15.0pt"><span style="font-size:10.5pt;color:#33312E">LiuYongfu<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt"><span style="font-size:9.0pt;color:#999896">114769003@qq.com<o:p></o:p></span></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<o:p></o:p></p>
<div>
<div>
<p style="line-height:22.5pt"><span style="font-size:9.0pt;color:#959DA6">Original<o:p></o:p></span></p>
</div>
<div>
<p style="line-height:15.0pt;background:#F5F6F7"><span style="font-size:9.0pt;color:#5C6166">From:</span><span style="font-size:9.0pt;color:black">"Bailey, Henry Albert (Al)"</span><span style="font-size:9.0pt;color:#959DA6">< Al.Bailey@windriver.com >;</span><span style="font-size:9.0pt"><o:p></o:p></span></p>
<p style="line-height:15.0pt;background:#F5F6F7"><span style="font-size:9.0pt;color:#5C6166">Date:</span><span style="font-size:9.0pt;color:black">2023/2/18 5:05</span><span style="font-size:9.0pt"><o:p></o:p></span></p>
<p style="line-height:15.0pt;background:#F5F6F7"><span style="font-size:9.0pt;color:#5C6166">To:</span><span style="font-size:9.0pt;color:black">"LiuYongfu"</span><span style="font-size:9.0pt;color:#959DA6">< 114769003@qq.com >;</span><span style="font-size:9.0pt;color:black">"starlingx-discuss"</span><span style="font-size:9.0pt;color:#959DA6"><
 starlingx-discuss@lists.starlingx.io >;</span><span style="font-size:9.0pt"><o:p></o:p></span></p>
<p style="line-height:15.0pt;background:#F5F6F7"><span style="font-size:9.0pt;color:#5C6166">Subject:</span><span style="font-size:9.0pt;color:black">RE: [Starlingx-discuss] how to install my own rpm</span><span style="font-size:9.0pt"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">With StarlingX, the way to add an rpm to the platform is through a patch.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Within the StarlingX patching system it will install the rpm, and will prevent it from being removed by a reboot.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">There is a video from the Open Infrastructure Foundation that shows an example of creating your own patch to allow an rpm to be installed.  It uses the
<a href="https://urldefense.com/v3/__http:/patch_build.sh__;!!AjveYdw8EvQ!fJfSLJYP1YcZ5YQQYf1WMuBson7TGFUBOC76OcjDZ0tSBLFo2uDFIYULDf0SN_hGP_qb9o_8G1FS32Fr3Wg$">
patch_build.sh</a> command<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="https://urldefense.com/v3/__https:/www.youtube.com/watch?v=vwqhxpgaxXE__;!!AjveYdw8EvQ!fJfSLJYP1YcZ5YQQYf1WMuBson7TGFUBOC76OcjDZ0tSBLFo2uDFIYULDf0SN_hGP_qb9o_8G1FSRIDIU8M$">https://www.youtube.com/watch?v=vwqhxpgaxXE</a><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">For example, if I wanted to add an RPM for pyflame  my patch_build.sh   syntax would look something like this:<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i># Run this script from within $MY_WORKSPACE</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>PATH=$MY_REPO/stx/update/extras/scripts:$PATH</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>PATCH_ID=PYFLAME</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>DIR=std/rpmbuild/RPMS</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>PYFLAME=pyflame-1.6.6-4.el7.tis.1.x86_64.rpm</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i> </i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i><a href="https://urldefense.com/v3/__http:/patch_build.sh__;!!AjveYdw8EvQ!fJfSLJYP1YcZ5YQQYf1WMuBson7TGFUBOC76OcjDZ0tSBLFo2uDFIYULDf0SN_hGP_qb9o_8G1FS32Fr3Wg$">patch_build.sh</a>
 \</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>--id ${PATCH_ID} \</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>--reboot-required=Y \</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>--summary "New pyflame rpm " \</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>--desc "Adds a new pyflame rpm "\</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>--controller ${DIR}/${PYFLAME} \</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>--controller-worker ${DIR}/${PYFLAME} \</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><i>--controller-worker-lowlatency ${DIR}/${PYFLAME}</i></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Be aware that in this example,  I am ‘adding’ an rpm  rather than updating one, so I needed to include special fields<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">(--controller ,  --controller-worker ,  --controller-worker-lowlatency ) so that the platform knows that the rpm belongs on controller and AIO hosts (and in this example it will
 not install it on worker or storage nodes)<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">The video (and my example) assume you have a development environment setup with your variables, etc..  already defined.  If that is not the case, you may need to ensure you have
 the starlingx/update repo checked out and make the appropriate changes to the commands.  
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Al<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b>From:</b> LiuYongfu <114769003@qq.com>
<br>
<b>Sent:</b> Saturday, February 11, 2023 5:52 AM<br>
<b>To:</b> starlingx-discuss <starlingx-discuss@lists.starlingx.io><br>
<b>Subject:</b> [Starlingx-discuss] how to install my own rpm<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div style="border:solid #9C6500 1.0pt;padding:2.0pt 2.0pt 2.0pt 2.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#FCFC03">
<b><span style="color:black">CAUTION: This email comes from a non Wind River email account!</span></b><span style="color:black"><br>
</span><span style="font-size:10.0pt;color:black">Do not click links or open attachments unless you recognize the sender and know the content is safe.</span><o:p></o:p></p>
</div>
<div>
<div>
<div>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:.2in;margin-left:0in;background:white">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Brief Description<br>
-----------------</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:.2in;margin-left:0in;background:white">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">when I install my private(own) rpm to the compute node. when the node is restarted .my private rpm is deleted.<br>
so I want to know : are there some ways to install my own rpm on compute nodes or is it just a bug?</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:.2in;margin-left:0in;background:white">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Steps to Reproduce<br>
------------------<br>
I installed my GPU rpm packages on the compute node,and it worked right.</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:.2in;margin-left:0in;background:white">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Expected Behavior<br>
------------------</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:.2in;margin-left:0in;background:white">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">the rpm packages works correctly all the time.</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:.2in;margin-left:0in;background:white">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Actual Behavior<br>
when reboot the compute nodes .my gpu rpm packages are removed by the system.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033"><br>
thanks very much.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt;font-family:-apple-system;color:#2E3033"><br>
<br>
<br>
</span><o:p></o:p></p>
</div>
<div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="40" valign="top" style="width:30.0pt;padding:7.5pt 15.0pt 0in 0in">
<div style="border:solid white 1.0pt;padding:0in 0in 0in 0in;border-radius:50%;box-shadow: 0 0 10px 0 rgba(127,152,178,0.14)">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;vertical-align:top">
<span style="border:solid windowtext 1.0pt;padding:0in"><img border="0" width="100" height="100" style="width:1.0416in;height:1.0416in" id="Picture_x0020_1" src="cid:~WRD0002.jpg"></span><o:p></o:p></p>
</div>
</td>
<td valign="top" style="padding:7.5pt 0in 6.0pt 7.5pt">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:15.0pt">
<span style="font-size:10.5pt;color:#33312E">LiuYongfu</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:13.5pt">
<span style="font-size:9.0pt;color:#999896">114769003@qq.com</span><o:p></o:p></p>
</div>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>