From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uOyKAoRgfmDXfQEAgWs5BA (envelope-from ) for ; Tue, 20 Apr 2021 07:03:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6HAAOINgfmCGLQAAB5/wlQ (envelope-from ) for ; Tue, 20 Apr 2021 05:02:59 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 60E9D14F71 for ; Tue, 20 Apr 2021 07:02:59 +0200 (CEST) Received: from localhost ([::1]:58226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYiXK-0005cJ-JB for larch@yhetil.org; Tue, 20 Apr 2021 01:02:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYiWn-0005bd-BU for emacs-orgmode@gnu.org; Tue, 20 Apr 2021 01:02:25 -0400 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:34488) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYiWk-0006hJ-Ew for emacs-orgmode@gnu.org; Tue, 20 Apr 2021 01:02:25 -0400 Received: by mail-pg1-x534.google.com with SMTP id z16so25781202pga.1 for ; Mon, 19 Apr 2021 22:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=HYlUl9ApypCal3Cz0B9epmr5ToD3Yrvcl2l5r6spUuQ=; b=Xa9knyCyMr/zqfOl+gbM4eEgalN66LeZSjEJQtthnHArUzo8kgvJXvAdSUXOmFiXiZ MExRnjQOXxlAyBGLjEUqB8n3iL2kdAq76fmNWEp5fqES9kU5LMpXpGVOv278Fees+Jma eNCYzAqtmaydYJtCGL5Ko+cEDwii+p6eoHLFRg9D8LaW5apb7ur2ylc9jEd6bMY2eTUR cf16Jfr3U5o+2Utbxr9GVqQH9ATObumYX/mzo+cC5l+GxacN3Al7GPHN39JBmj72mYZf czZo+Fy9cs1R07t8lS/+rHTIPkmKDwq9SRJRQrKs5wSOCtRmnsVOZebWDuXnvSFczDf9 BIDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=HYlUl9ApypCal3Cz0B9epmr5ToD3Yrvcl2l5r6spUuQ=; b=C0GoPleaqrFr5x4GPwC0rz1eJ0CxmTyPghF1oobKnmdb7pa34aLDkrxSX5ATuWapED v1fYipGgrvaWZ0U2WC+zgSx3+ZQ4Vrs81mSC/kcAI2dc9Mj6J3JbtFPuefUbR196189h P0akpDHBmNXIZy6OKb8+06u9prJQalVsoQ/V8fZKn+SeoL5cXwhDDbmWkEoDc6+HSd6X /Zqkz5fcV6kVlBsF1hVULmKEIkgHkuXtwhEJm9nfXbAUEw4rn4y4NgS96WUhz3CuyMZg 9R7Ss8Guc5IunAqd8sitTE7aKZlBMwlzvA3mws/n30A6N3b27XofJkf4zhrdHRLGWTMB saxg== X-Gm-Message-State: AOAM530XG7GHeTVbsRWJgPlB6eNC/Hv/mjGa1tThJ+ZzCE/pqOY2wERA WQ1rjikBkA9w7ABzsNFWLCUu3tahBhM= X-Google-Smtp-Source: ABdhPJx4fExL4XwOkg/BmEK6iVyVRy9RBJXCE8hEgnhxmbOLDSPwfE8tr9zfHgu+zsrFKdAV3Qz+eA== X-Received: by 2002:a63:1111:: with SMTP id g17mr15089669pgl.267.1618894937316; Mon, 19 Apr 2021 22:02:17 -0700 (PDT) Received: from tim-desktop (106-69-146-43.dyn.iinet.net.au. [106.69.146.43]) by smtp.gmail.com with ESMTPSA id gt22sm1016103pjb.7.2021.04.19.22.02.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Apr 2021 22:02:16 -0700 (PDT) References: <877dl2rn5i.fsf@disroot.org> <87czupy7mn.fsf@kyleam.com> User-agent: mu4e 1.5.11; emacs 28.0.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: Bug: JavaScript in HTML export not recognized by LibreJS as free [9.4.5 (9.4.5-16-g94be20-elpaplus @ /home/jorge/.config/emacs/elpa/org-plus-contrib-20210412/)] Date: Tue, 20 Apr 2021 14:55:39 +1000 In-reply-to: <87czupy7mn.fsf@kyleam.com> Message-ID: <877dkxk0q3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=theophilusx@gmail.com; helo=mail-pg1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618894979; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=HYlUl9ApypCal3Cz0B9epmr5ToD3Yrvcl2l5r6spUuQ=; b=KNWQqORbE3R6xHeu/wkJLd0JwYvP9UTjd09D/BoYhJ94g2tNfK5q1/VlVV/c6rzerCFz1F rtZjXraC23yhOlpqMzJJDsSXhbPsxJanCfrq6EfVpEVNK0ye1ACfUcYnoN2Q6MTguRKIRP Ao8oLxXMmuO8ZnaTW1guf4O20VH4NX9bq1cN31R6xgpEshrGiOwS5g/4j/dj89pK8M1HgS rqj2vhv8fxuBsSOLHPVtrhOo7qPmV6ZcY+wIgoSmynBjf/CaeG2ydVxflCZA7KI6mqVogJ XbmpytY3+lCzJKRuc4WyDlDjhKmu6so/EA5y1GrPLZMlsUvzm5zZPyd6iVP9zA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618894979; a=rsa-sha256; cv=none; b=cg1eGwWMmfFXceofQKphmt/Hda/ZAknqkGFARbmfcgInHPh/8mBjm0BgInuQmN27rgNfRp Kzw+jJOohaVCMuXTiF7JoJi4SO6LjDVfF9w2biDOHordlCn9zjHWMq/6kChIA1YqMqvVX7 o16flSkn0cDpCXnDzFB94rdh50COicsjCjwJJD6u1svfrv2uBD/x48IwEhsVsURaMJnES4 04Dgd+lJSIklyXo4pUur9lehVUpq1O81RNNfGeCU44LlFZseCFeGsY8Ba+8JyA1ogl3DZE j/QdvVgpLD0tx+iB6zII9clH2c3lCGN91GJC0aoMDQX/EMboagsm/cwzKXCpJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Xa9knyCy; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Xa9knyCy; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 60E9D14F71 X-Spam-Score: -3.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9+uudauojgfW Kyle Meyer writes: > Jorge P. de Morais Neto writes: > >> Hi. The HTML export has JavaScript that LibreJS does not recognize as >> free. > > Thanks for noting this. That's certainly not ideal. > >> My first attempt at an workaround (inspired by the Org Mode mailing >> list) was merely encoding the ampersand in the magnet link, but that >> *did not make LibreJS happy*. Then I checked LibreJS manual and saw >> this excerpt: >> >> https://www.gnu.org/software/librejs/manual/librejs.html#Free-Licenses-Detection-1 >> >> Public domain is not a license (see >> https://www.gnu.org/licenses/license-list.html#PublicDomain). If >> you want to release your work to the public domain, the FSF >> recommends using CC0. >> >> Then I came up with a successful workaround. I included the following >> code in my Org Mode customization file: > > Hmm, the public domain switched happen with 471054136 (ox-html.el: Use > classList and put in the public domain, 2020-09-05) and the associated > thread is > > https://orgmode.org/list/20200617002335.l4lg3slfxm74vx3h@silver/ > > (+cc author and committer) > >> ;; [2021-04-16 sex]: HACK Work around a bug that confuses LibreJS >> (with-eval-after-load 'ox-html >> (setq org-html-scripts >> (string-replace "\ >> // @license magnet:?xt=urn:btih:e95b018ef3580986a04669f1b5879592219e2a7a&dn=public-domain.txt Public Domain" >> "\ >> // @license magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08&dn=cc0.txt CC0-1.0" >> org-html-scripts))) >> >> This works; it makes LibreJS happy. > > Okay. Anthony/Bastien/others, thoughts on using CC0 instead? The error from libreJS is correct - public domain is not a valid license. As this is a GNU project and correct licensing is important, I don't think there is any option other than to change the line to reference the CC license (or any appropriate free license). If 'public domain' was used due to some other issue, either we have to verify the code is covered by a free (not just open source) license or replace it with code that is and is acceptable by the FSF. -- Tim Cross