<!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">
<p class="details" style="font-style: italic; color: #666;">
<a href="https://gitlab.com/cwagner2046">christian wagner</a> created an issue <a href="https://gitlab.com/gnutls/gnutls/-/issues/1088">#1088</a>:
</p>
<div></div>
<p dir="auto">** Summary:</p>
<p dir="auto">On Mac OSX, at least, a null-length arg. is to be given to sed's "-i" option if one
does not require that sed creates a backup file whilst in-place editing.</p>
<p dir="auto">** Steps to reproduce:</p>
<p dir="auto">From the directory where GnuTLS 3.6.15 is extracted:</p>
<ol dir="auto">
<li>issue the command: make -C doc install-info</li>
<li>the processing stumble on:
pkcs11-api.texi abstract-api.texi compat-api.texi dtls-api.texi crypto-api.texi ocsp-api.texi dane-api.texi pkcs7-api.texi; do <br>
./scripts/split-texi.pl functions < $i; <br>
done
/usr/bin/sed -i 's/<a href="https://gitlab.com/anchor" data-group="221146" data-reference-type="user" data-container="body" data-placement="top" class="gfm gfm-project_member js-user-link" title="anchor">@anchor</a>{.<em>//g' functions/</em>
sed: 1: "functions/dane_cert_typ ...": invalid command code f</li>
</ol>
<p dir="auto">** Reason of failure:</p>
<p dir="auto">The reason is that, at least on Max OSX Yosemite, the "-i" option of sed is meant to call
for an in-place editing and to define the extension to use for the backup file.</p>
<p dir="auto">If no backup file is desired, the parameter to the "-i" option is to be of length 0.
The current Makefile specifies extension at all which, on OSX (at least), does <em>not</em> equate
to an 0-length extension.</p>
<p dir="auto">** Possible solution:</p>
<p dir="auto">This diff output shows a possible solution:</p>
<p dir="auto">$ diff -c Makefile.in Makefile.in.orig
*** Makefile.in 2020-09-10 11:53:09.000000000 +0100
--- Makefile.in.orig 2020-09-10 11:51:27.000000000 +0100</p>
<hr>
<p dir="auto">*** 5095,5102 ****
for i in $^; do <br>
$(srcdir)/scripts/split-texi.pl functions < $$i; <br>
done
! $(SED) -i "" 's/<a href="https://gitlab.com/anchor" data-group="221146" data-reference-type="user" data-container="body" data-placement="top" class="gfm gfm-project_member js-user-link" title="anchor">@anchor</a>{.<em>//g' functions/</em>
! $(SED) -i "" 's/@subheading.<em>//g' functions/</em>
cd functions && for i in *;do grep ^"@deftypefun" $$i | $(SED) 's/@deftypefun/@item/g;s/ {/ <a href="https://gitlab.com/var" data-group="181655" data-reference-type="user" data-container="body" data-placement="top" class="gfm gfm-project_member js-user-link" title="var">@var</a>{/;s/ {/ <a href="https://gitlab.com/ref" data-group="215921" data-reference-type="user" data-container="body" data-placement="top" class="gfm gfm-project_member js-user-link" title="ref">@ref</a>{/' > ../functions/$$i.short;done
echo $@ > $@</p>
<p dir="auto">--- 5095,5102 ----
for i in $^; do <br>
$(srcdir)/scripts/split-texi.pl functions < $$i; <br>
done
! $(SED) -i 's/<a href="https://gitlab.com/anchor" data-group="221146" data-reference-type="user" data-container="body" data-placement="top" class="gfm gfm-project_member js-user-link" title="anchor">@anchor</a>{.<em>//g' functions/</em>
! $(SED) -i 's/@subheading.<em>//g' functions/</em>
cd functions && for i in *;do grep ^"@deftypefun" $$i | $(SED) 's/@deftypefun/@item/g;s/ {/ <a href="https://gitlab.com/var" data-group="181655" data-reference-type="user" data-container="body" data-placement="top" class="gfm gfm-project_member js-user-link" title="var">@var</a>{/;s/ {/ <a href="https://gitlab.com/ref" data-group="215921" data-reference-type="user" data-container="body" data-placement="top" class="gfm gfm-project_member js-user-link" title="ref">@ref</a>{/' > ../functions/$$i.short;done
echo $@ > $@</p>
<p dir="auto">** Platform:</p>
<p dir="auto">Macboook running Yosemite (10.10.5)</p>
<p dir="auto">$ uname -a
Darwin ... 14.5.0 Darwin Kernel Version 14.5.0: Sun Jun 4 21:40:08 PDT 2017;
root:xnu-2782.70.3~1/RELEASE_X86_64 x86_64</p>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1088">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/896a4b7a305aedc571a41d763bba6465/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/1088"}}</script>
</p>
</div>
</body>
</html>