git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Solaris and sed: Too many commands, last: s/\n//

From
JWJeffrey Walton <noloader@gmail.com>
Date
Mar 11, 2019, 21:43 UTC
Message-ID
<CAH8yC8=jtBURyr-mFJSe_cd4zNJfJDt672jZ+izo=z75ZBheug@mail.gmail.com>
In-Reply-To
<CAPig+cTCOfDCv=L3EWUqgVZx1VCdqt5ZjmSQMwHLX=R4C4hgTA@mail.gmail.com>
On Mon, Mar 11, 2019 at 5:15 PM Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 9 quoted lines
>
> [cc:+Ævar]
>
> On Mon, Mar 11, 2019 at 4:32 PM Jeffrey Walton <noloader@gmail.com> wrote:
> > I enabled self tests for Solaris. Solaris has some anemic utilities so
> > I put /usr/gnu/bin first on-path.
>
> The first question is if you are really running GNU 'sed'? My guess is
> "no, it's still picking up Solaris's 'sed'".
I believe so. After modifying PATH, command -v returns:
    Solaris tools:
         sed: /usr/gnu/bin/sed
         awk: /usr/gnu/bin/awk
        grep: /usr/gnu/bin/grep
(This was added to my scripts to confirm).
Maybe Git would benefit from SED, AWK and GREP variables like PERL.
Show 8 quoted lines
> ...
> > Solaris in a VM sucks. I can provide SSH access to the hardware if
> > anyone is interested. It is just an Solaris i86pc on an older Ivy
> > Bridge.
>
> I wouldn't mind taking a look at it, though I don't promise anything,
> and I suspect the only way forward is by ensuring that the GNU or XPG
> tools are used instead of the Solaris ones.
Send over your authorized_keys. You will connect with:
    esunshine@151.196.22.177 -p 1523

I'm in a dynamic IP address block. You will have to ping me on occasion to get the updated IP address.

Some other machines you may be interested in:
  * PowerMac G5, PPC big-endian with OS X 10.5 (port 1522)
  * MacBook late 2012, x86_64 with OS X 10.9 (port 1524)
  * Intel Goldmont with SHA extensions (port 1526)
Andy Polyakov uses the PowerMac for tuning his ASM used in OpenSSL.

If you want to speedup SHA-1 (re: unaligned accesses) then try the Goldmont machine. SHA-1 runs at 1.8 cycles per byte on Goldmont. Here's the compression function ready for copy/paste: https://github.com/noloader/SHA-Intrinsics

Jeff
Previous: Eric SunshineNext: Eric Sunshine
Message 3 of 13 in “Solaris and sed: Too many commands, last: s/\n//”
  1. Jeffrey WaltonMar 11, 2019
  2. Eric SunshineMar 11, 2019
  3. Jeffrey WaltonMar 11, 2019
  4. Eric SunshineMar 11, 2019
  5. Jeffrey WaltonMar 12, 2019
  6. Jeffrey WaltonMar 12, 2019
  7. Jeffrey WaltonMar 12, 2019
  8. Jeffrey WaltonMar 12, 2019
  9. Eric SunshineMar 12, 2019
  10. Jeffrey WaltonMar 12, 2019
  11. Jeffrey WaltonMar 11, 2019
  12. Jeffrey WaltonMar 12, 2019
  13. Ævar Arnfjörð BjarmasonMar 12, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.