<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<div style="">
<p dir="auto">Tthe shebang conversion worked well. It was performed after <code>configure</code>.</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">echo "Patching Shell Scripts"</span>
<span id="LC2" class="line" lang="plaintext">for file in $(find "$PWD" -name '*.sh')</span>
<span id="LC3" class="line" lang="plaintext">do</span>
<span id="LC4" class="line" lang="plaintext">    # Fix shell</span>
<span id="LC5" class="line" lang="plaintext">    cp -p "$file" "$file.fixed"</span>
<span id="LC6" class="line" lang="plaintext">    sed -e 's|#!/bin/sh|#!/usr/bin/env bash|g' "$file" > "$file.fixed"</span>
<span id="LC7" class="line" lang="plaintext">    mv "$file.fixed" "$file"</span>
<span id="LC8" class="line" lang="plaintext">done</span></code></pre>
<p dir="auto">The <code>cp -p</code> retained the original filetimes so Autotools did not do its shit.</p>
<hr>
<p dir="auto">After the change the <code>netsat</code> issue remains. It looks like the <code>-l</code> (lower el) option is not available.</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">usage: /usr/bin/netstat [-anuvR] [-f address_family] [-P protocol]</span>
<span id="LC2" class="line" lang="plaintext">       /usr/bin/netstat [-n] [-f address_family] [-P protocol] [-T d|u] [-g | -p | -s [interval [count]]]</span>
<span id="LC3" class="line" lang="plaintext">       /usr/bin/netstat -m [-v] [-T d|u] [interval [count]]</span>
<span id="LC4" class="line" lang="plaintext">       /usr/bin/netstat -i [-I interface] [-an] [-f address_family] [-T d|u] [interval [count]]</span>
<span id="LC5" class="line" lang="plaintext">       /usr/bin/netstat -r [-anv] [-f address_family|filter] [-T d|u]</span>
<span id="LC6" class="line" lang="plaintext">       /usr/bin/netstat -M [-ns] [-f address_family] [-T d|u]</span>
<span id="LC7" class="line" lang="plaintext">       /usr/bin/netstat -D [-I interface] [-f address_family] [-T d|u]</span>
<span id="LC8" class="line" lang="plaintext">try 1</span>
<span id="LC9" class="line" lang="plaintext">/usr/bin/netstat: illegal option -- l</span>
<span id="LC10" class="line" lang="plaintext">...</span></code></pre>
<p dir="auto">The <a href="https://linux.die.net/man/8/netstat" rel="nofollow noreferrer noopener" target="_blank"><code>-l</code> option</a> lists listening sockets. It looks like <code>netstat -a | grep -i -E 'listen'</code> will handle that:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">$ netstat -a</span>
<span id="LC2" class="line" lang="plaintext">...</span>
<span id="LC3" class="line" lang="plaintext"></span>
<span id="LC4" class="line" lang="plaintext">TCP: IPv4</span>
<span id="LC5" class="line" lang="plaintext">   Local Address        Remote Address     Swind  Send-Q  Rwind  Recv-Q    State</span>
<span id="LC6" class="line" lang="plaintext">-------------------- -------------------- ------- ------ ------- ------ -----------</span>
<span id="LC7" class="line" lang="plaintext">solaris3.5999              *.*                  0      0  128000      0 LISTEN</span>
<span id="LC8" class="line" lang="plaintext">solaris3.4999              *.*                  0      0  128000      0 LISTEN</span>
<span id="LC9" class="line" lang="plaintext">      *.sunrpc             *.*                  0      0  128000      0 LISTEN</span>
<span id="LC10" class="line" lang="plaintext">      *.*                  *.*                  0      0  128000      0 IDLE</span>
<span id="LC11" class="line" lang="plaintext">      *.sunrpc             *.*                  0      0  128000      0 LISTEN</span>
<span id="LC12" class="line" lang="plaintext">      *.*                  *.*                  0      0  128000      0 IDLE</span>
<span id="LC13" class="line" lang="plaintext">...</span>
<span id="LC14" class="line" lang="plaintext"></span>
<span id="LC15" class="line" lang="plaintext">TCP: IPv6</span>
<span id="LC16" class="line" lang="plaintext">   Local Address                     Remote Address                  Swind  Send-Q  Rwind  Recv-Q   State      If</span>
<span id="LC17" class="line" lang="plaintext">--------------------------------- --------------------------------- ------- ------ ------- ------ ----------- -----</span>
<span id="LC18" class="line" lang="plaintext">solaris3.5999                           *.*                               0      0  128000      0 LISTEN</span>
<span id="LC19" class="line" lang="plaintext">      *.sunrpc                          *.*                               0      0  128000      0 LISTEN</span>
<span id="LC20" class="line" lang="plaintext">      *.*                               *.*                               0      0  128000      0 IDLE</span>
<span id="LC21" class="line" lang="plaintext">...</span></code></pre>
</div>


</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/785#note_179147218">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/58e32ff5741e15e25696d0de9a003fea/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/issues/785#note_179147218"}}</script>

</p>
</div>
</body>
</html>