<div dir="ltr">Hi,<br><br><br>Ive taken the liberty of changing the crontab entry for the creation of the cppcheck report on vm140 from this :<br><br>/home/buildslave/source/dev-tools/cppcheck/cppcheck-report.sh -s /home/buildslave/source/libo-core -c /home/buildslave/source/cppcheck -w /home/buildslave/tmp/www >/tmp/cppcheck-report.log 2>&1<br><br>to this :<br><br>cd /home/buildslave/source/dev-tools && git pull && /home/buildslave/source/dev-tools/cppcheck/cppcheck-report.sh -s /home/buildslave/source/libo-core -c /home/buildslave/source/cppcheck -w /home/buildslave/tmp/www >/tmp/cppcheck-report.log 2>&1<br><br>in order to make any future updates to the script automatically be used by means of a git pull of the corresponding dev-tools repo before running the script. Ive tested this on a local vm with the same Linux distro (Mageia 4), and it seems to work.<br><br><br>By the way, searching through the mailing list archives it seems that the emails to the list reporting the success or failure of the cppcheck-report.sh run have stopped.<br><br>Trying out the command (sendEmail) used (with the addition of '-vv') from the commandline on the vm, I get the following error :<br><br><br>Jun 23 17:49:30 vm140 sendEmail[2910]: DEBUG => Connecting to <a href="http://smtp.gmail.com:587">smtp.gmail.com:587</a><br>Jun 23 17:49:30 vm140 sendEmail[2910]: DEBUG => My IP address is: 89.238.68.140<br>Jun 23 17:49:30 vm140 sendEmail[2910]: DEBUG => evalSMTPresponse() - Found SMTP success code: 220<br>Jun 23 17:49:30 vm140 sendEmail[2910]: SUCCESS => Received:     220 <a href="http://smtp.gmail.com">smtp.gmail.com</a> ESMTP x194sm4488242wmf.13 - gsmtp<br>Jun 23 17:49:30 vm140 sendEmail[2910]: INFO => Sending:         EHLO <a href="http://vm140.documentfoundation.org">vm140.documentfoundation.org</a><br>Jun 23 17:49:30 vm140 sendEmail[2910]: DEBUG => evalSMTPresponse() - Found SMTP success code: 250<br>Jun 23 17:49:30 vm140 sendEmail[2910]: SUCCESS => Received:     <a href="http://250-smtp.gmail.com">250-smtp.gmail.com</a> at your service, [89.238.68.140], 250-SIZE 35882577, 250-8BITMIME, 250-STARTTLS, 250-ENHANCEDSTATUSCODES, 250-PIPELINING, 250-CHUNKING, 250 SMTPUTF8<br>Jun 23 17:49:30 vm140 sendEmail[2910]: DEBUG => The remote SMTP server supports TLS :)<br>Jun 23 17:49:30 vm140 sendEmail[2910]: DEBUG => Starting TLS<br>Jun 23 17:49:30 vm140 sendEmail[2910]: INFO => Sending:         STARTTLS<br>Jun 23 17:49:30 vm140 sendEmail[2910]: DEBUG => evalSMTPresponse() - Found SMTP success code: 220<br>Jun 23 17:49:30 vm140 sendEmail[2910]: SUCCESS => Received:     220 2.0.0 Ready to start TLS<br>Jun 23 17:49:30 vm140 sendEmail[2910]: ERROR => TLS setup failed: SSL connect attempt failed because of handshake problems error:1409442E:SSL routines:SSL3_READ_BYTES:tlsv1 alert protocol version<br><br><br>I googled the (last line) error, and this page [1] seems to suggest to install different/better/more maintained/updated perl modules, and then update the sendEmail perl script (which was last updated in 2009) to use those perl modules.<br><br>So as far as I can see, *if* receiving failed/succeeded email messages is still wanted, there are the following options :<br><br><br>A.)<br>modify the sendEmail perl script and use different more recent perl modules. I have absolutely zero perl skills, so someone else would have to spend some time to update the script in this scenario.<br><br>B.)<br>drop sendEmail, install mail/mailx and install&configure something like sendmail/postfix/exim on vm140 and see if the cppcheck-report.sh script can be modified to use mail/mailx instead. I do have some shell skills, so I could spend some time on that myself to see if I can make that work. But I will need some help with the sendmail/postfix/exim configuration part. (and I guess if vm140 cannot receive mail, then the account used to send the email would need to be approved for sending to the mailing list in some other manner than 'the normal way').<br><br>C.)<br>leave it 'as-is': receiving email fail/succeed notifications isnt really considered important enough.<br><br><br><br>- Maarten<br><br><br><br>[1]<br><a href="https://stackoverflow.com/questions/37277583/send-mail-through-gmail-using-perl">https://stackoverflow.com/questions/37277583/send-mail-through-gmail-using-perl</a><br><br><br><br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 12, 2016 at 3:04 PM, Maarten Hoes <span dir="ltr"><<a href="mailto:hoes.maarten@gmail.com" target="_blank">hoes.maarten@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Caolán McNamara wrote<br>
> On Sun, 2016-02-28 at 01:35 +0000,<br>
<br>
> cppcheck.libreoffice@<br>
<br>
>  <br>
>>> Note:<br>
>>>     The script generating this report was run at :<br>
>>>         2016-28-02_02:35:42 with user buildslave at host vm140 as<br>
>>> /home/buildslave/source/dev-tools/cppcheck/cppcheck-report.sh -s<br>
>>> /home/buildslave/source/libo-core -c /home/buildslave/source/cppcheck<br>
>>> -w /home/buildslave/tmp/www<br>
>>><br>
>>>     It can be found and improved here:<br>
>>>         <a href="https://gerrit.libreoffice.org/gitweb?p=dev-" rel="noreferrer" target="_blank">https://gerrit.libreoffice.org/gitweb?p=dev-</a><br>
>>> tools.git;a=blob;f=cppcheck/cppcheck-report.sh<br>
><br>
>> cppcheck-report.sh (since Feb 15) has --inline-suppr enabled in it so I<br>
>> would have expected <a href="http://dev-builds.libreoffice.org/cppcheck_reports/" rel="noreferrer" target="_blank">http://dev-builds.libreoffice.org/cppcheck_reports/</a><br>
>> master/382.html#line-240 not to appear.<br>
><br>
>> Is that inline suppression markup wrong. Or does something need to be<br>
>> done to refresh from git the cppcheck-report.sh used to build these<br>
>> reports ?<br>
>><br>
><br>
> Hi,<br>
><br>
><br>
> A little late, and really only by accident that I ran into your post, but<br>
> ...<br>
><br>
><br>
> The git version of 'cppcheck-report.sh' seems indeed to have been updated<br>
> on 2016-02-15 by you to include the '--inline-suppr' you mentioned.<br>
> However, 'for reasons', the (git) version of the script that is located on<br>
> <a href="http://vm140.documentfoundation.org" rel="noreferrer" target="_blank">vm140.documentfoundation.org</a> isnt updated by 'git pull' on a regular<br>
> basis. (I guess a cron job or something similar could be used to update<br>
> the repo on a regular basis). So the older version was still used for<br>
> creating the report.<br>
><br>
> I just logged into vm140 (I still seems to have ssh-key access, which may<br>
> or may not be what was intended) and did a 'git pull' for you, updating<br>
> the repo to the latest version of 'cppcheck-report.sh', so the next run<br>
> should include your changes.<br>
><br>
> Hope this helps and I didnt inadvertently mess something up.<br>
><br>
><br>
> - Maarten<br>
><br>
><br>
><br>
><br>
><br>
><br>
> C.<br>
> _______________________________________________<br>
> LibreOffice mailing list<br>
<br>
> LibreOffice@.freedesktop<br>
<br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/libreoffice" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://nabble.documentfoundation.org/CppCheck-Report-Update-tp4176815p4185951.html" rel="noreferrer" target="_blank">http://nabble.documentfoundation.org/CppCheck-Report-Update-tp4176815p4185951.html</a><br>
Sent from the Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/libreoffice" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
</blockquote></div><br></div>