chiark / gitweb /
webstead: add Emscripten and musl copyright notices
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 5 Oct 2025 09:03:15 +0000 (10:03 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Tue, 13 Jan 2026 21:42:18 +0000 (21:42 +0000)
Programs compiled with Emscripten end up statically linked against the
Emscripten runtime, which includes musl libc.  So we need to comply with
their licences by including a copy of the licence and the relevant
copyright notices.  I think putting them on the webstead page in small
print is probably the best approach.

This might need updating each release to match the version of Emscripten
that I build the editor with.

bedstead.css
webstead.xhtml

index 23020b6fd9d3fd9fe435919f3b8b82d22451e90b..ba24f5d0719786f9aad9938f457df90f47bfc455 100644 (file)
@@ -63,6 +63,10 @@ img {
     max-width: 100%;
 }
 
+.smallprint {
+    font-size: 0.5em;
+}
+
 /*
  * When we're using text as a sample of Bedstead, it should be hidden
  * from browsers without font support, and the image sample should
@@ -93,7 +97,7 @@ body, .fade {
     color: #33ff88;
 }
 
-:link, kbd, code, tt {
+:link, kbd, code, tt, .smallprint {
   color: #38bf66;
 }
 :visited {
index 919d17ba515a61244873356df4d64523faaa9225..03b115272b7e2644105c48a8de8dc4a11908a156 100644 (file)
     </div>
     <p><pre id="c"></pre></p>
     <p><code id="charstring"></code></p>
+    <div class="smallprint">
+      <p>This editor contains code from Emscripten and musl libc under
+        the following licence:</p>
+      <p>Copyright 2010-2022 The Emscripten Authors</p>
+      <p>Copyright © 2005-2020 Rich Felker, et al.</p>
+      <p>Copyright (C) 2011 by Valentin Ochs</p>
+      <p>Permission is hereby granted, free of charge, to any person obtaining
+        a copy of this software and associated documentation files (the
+        "Software"), to deal in the Software without restriction, including
+        without limitation the rights to use, copy, modify, merge, publish,
+        distribute, sublicense, and/or sell copies of the Software, and to
+        permit persons to whom the Software is furnished to do so, subject to
+        the following conditions:</p>
+
+      <p>The above copyright notice and this permission notice shall be
+        included in all copies or substantial portions of the Software.</p>
+
+      <p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+        EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+        MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+        IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+        CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+        TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+        SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
+    </div>
   </body>
 </html>