NetBSD Problem Report #61113

From www@netbsd.org  Wed Dec  2 13:28:59 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 930081A923B
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  2 Dec 2026 13:28:59 +0000 (UTC)
Message-Id: <20261202132858.065EE1A923D@mollari.NetBSD.org>
Date: Wed,  2 Dec 2026 13:28:57 +0000 (UTC)
From: edmund@proteamail.com
Reply-To: edmund@proteamail.com
To: gnats-bugs@NetBSD.org
Subject: rpc/types.h (and the rest of include/rpc/*.h) still have the pre-2010 non-free Sun RPC licence -- please relicense to BSD-3 like FreeBSD
X-Send-Pr-Version: www-1.0
X-From4GNATS: "edmund@proteamail.com via gnats" <gnats-admin@NetBSD.org>

>Number:         61113
>Category:       lib
>Synopsis:       rpc/types.h (and the rest of include/rpc/*.h) still have the pre-2010 non-free Sun RPC licence -- please relicense to BSD-3 like FreeBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 02 13:30:00 +0000 2026
>Last-Modified:  Thu Dec 03 18:25:01 +0000 2026
>Originator:     Edmund
>Release:        11.1
>Organization:
>Environment:
>Description:
src/include/rpc/types.h still has Sun's old restrictive legend ("Users may copy or modify Sun RPC without charge, but are not authorized to license or distribute it to anyone else except as part of a product or program developed by the user."). This text is not DFSG/OSI-free, which is why Debian currently has to strip this file (and ships a substitute) when repackaging software that vendors NetBSD's libc headers, e.g. zig (where it is used for cross-compiling to NetBSD).

This isn't limited to types.h: auth.h, svc.h, and apparently the rest of include/rpc/ carry the identical legend.

Sun announced in 2009 that it would relicense the ONC/Sun RPC code to 3-clause BSD (LWN coverage (https://lwn.net/Articles/319648/)), and Oracle reconfirmed/extended the grant for the remaining files in 2010 (LWN: "The long, sordid tale of Sun RPC" (https://lwn.net/Articles/402312/)).

FreeBSD already picked this up: its sys/rpc/types.h (which still carries NetBSD's own revision tag, $NetBSD: types.h,v 1.13 2000/06/13 01:02:44 thorpej Exp $, as its first line) was relicensed in commit 2e322d379631 (https://github.com/freebsd/freebsd-src/commit/2e322d379631c3bd6107e295f3e5d814c7845fc7) (2013-11-25, "Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, with the explicit permission of Sun Microsystems in 2009").

That commit covered 102 files total: all of FreeBSD's include/rpc/, lib/libc/rpc/, and sys/rpc/ trees. Could NetBSD apply the same relicensed text to its own, still-unrelicensed rpc/*.h headers?

Thank you very much for your time and energy!

Kind regards,

Edmund Lodewijks

>How-To-Repeat:

>Fix:

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/61113 CVS commit: src/include/rpc
Date: Thu, 3 Dec 2026 09:48:56 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Thu Dec  3 14:48:55 UTC 2026

 Modified Files:
 	src/include/rpc: auth.h auth_unix.h clnt.h clnt_soc.h nettype.h
 	    pmap_clnt.h pmap_prot.h pmap_rmt.h raw.h rpc.h rpc_com.h rpc_msg.h
 	    rpcb_clnt.h rpcb_prot.x rpcent.h svc.h svc_auth.h svc_soc.h

 Log Message:
 PR/61113: Edmund: Apply Sun's BSD relicensing, like FreeBSD did in 2013:
 "Replace Sun RPC license in TI-RPC library with a 3-clause BSD license,
 with the explicit permission of Sun Microsystems in 2009"


 To generate a diff of this commit:
 cvs rdiff -u -r1.20 -r1.21 src/include/rpc/auth.h
 cvs rdiff -u -r1.10 -r1.11 src/include/rpc/auth_unix.h
 cvs rdiff -u -r1.24 -r1.25 src/include/rpc/clnt.h
 cvs rdiff -u -r1.5 -r1.6 src/include/rpc/clnt_soc.h
 cvs rdiff -u -r1.3 -r1.4 src/include/rpc/nettype.h src/include/rpc/rpcent.h
 cvs rdiff -u -r1.13 -r1.14 src/include/rpc/pmap_clnt.h
 cvs rdiff -u -r1.9 -r1.10 src/include/rpc/pmap_prot.h \
     src/include/rpc/pmap_rmt.h src/include/rpc/svc_auth.h
 cvs rdiff -u -r1.1 -r1.2 src/include/rpc/raw.h
 cvs rdiff -u -r1.16 -r1.17 src/include/rpc/rpc.h
 cvs rdiff -u -r1.2 -r1.3 src/include/rpc/rpc_com.h
 cvs rdiff -u -r1.15 -r1.16 src/include/rpc/rpc_msg.h
 cvs rdiff -u -r1.4 -r1.5 src/include/rpc/rpcb_clnt.h \
     src/include/rpc/svc_soc.h
 cvs rdiff -u -r1.6 -r1.7 src/include/rpc/rpcb_prot.x
 cvs rdiff -u -r1.33 -r1.34 src/include/rpc/svc.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Edmund Lodewijks <edmund@proteamail.com>
To: gnats-bugs@netbsd.org, lib-bug-people@netbsd.org, gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org
Cc: 
Subject: Re: PR/61113 CVS commit: src/include/rpc
Date: Thu, 3 Dec 2026 19:26:29 +0200

 This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
 --------------BSgAyX6OsoeWM3uPVt3WQI8m
 Content-Type: multipart/mixed; boundary="------------l2mogacvcpQaov0KHe4q9kfc";
  protected-headers="v1"; hp="clear"
 Message-ID: <bf71f516-e502-4854-a735-85e7fc6a7da5@proteamail.com>
 Date: Thu, 3 Dec 2026 19:26:29 +0200
 MIME-Version: 1.0
 Subject: Re: PR/61113 CVS commit: src/include/rpc
 To: gnats-bugs@netbsd.org, lib-bug-people@netbsd.org, gnats-admin@netbsd.org,
  netbsd-bugs@netbsd.org
 References: <pr-lib-61113@gnats.netbsd.org>
  <20261202132858.065EE1A923D@mollari.NetBSD.org>
  <20261203145002.4805C1A923C@mollari.NetBSD.org>
 Content-Language: en-ZA, nl-NL
 X-DKIM-Key-Compromise: NOTE REGARDING DKIM KEY COMPROMISE https://proteamail.com/dkim-rotate/README.txt https://proteamail.com/dkim-rotate/50/50f512d2c70597dcc6c9129374aad63f.pem
 From: Edmund Lodewijks <edmund@proteamail.com>
 In-Reply-To: <20261203145002.4805C1A923C@mollari.NetBSD.org>

 --------------l2mogacvcpQaov0KHe4q9kfc
 Content-Type: text/plain; charset=UTF-8; format=flowed
 Content-Transfer-Encoding: base64

 T24gMjAyNi8xMi8wMyAxNjo1MCwgQ2hyaXN0b3MgWm91bGFzIHdyb3RlOg0KPiBUaGUgZm9s
 bG93aW5nIHJlcGx5IHdhcyBtYWRlIHRvIFBSIGxpYi82MTExMzsgaXQgaGFzIGJlZW4gbm90
 ZWQgYnkgR05BVFMuDQo+IA0KPiBGcm9tOiAiQ2hyaXN0b3MgWm91bGFzIiA8Y2hyaXN0b3NA
 bmV0YnNkLm9yZz4NCj4gVG86IGduYXRzLWJ1Z3NAZ25hdHMuTmV0QlNELm9yZw0KPiBDYzoN
 Cj4gU3ViamVjdDogUFIvNjExMTMgQ1ZTIGNvbW1pdDogc3JjL2luY2x1ZGUvcnBjDQo+IERh
 dGU6IFRodSwgMyBEZWMgMjAyNiAwOTo0ODo1NiAtMDUwMA0KPiANCj4gICBNb2R1bGUgTmFt
 ZToJc3JjDQo+ICAgQ29tbWl0dGVkIEJ5OgljaHJpc3Rvcw0KPiAgIERhdGU6CQlUaHUgRGVj
 ICAzIDE0OjQ4OjU1IFVUQyAyMDI2DQo+ICAgDQo+ICAgTW9kaWZpZWQgRmlsZXM6DQo+ICAg
 CXNyYy9pbmNsdWRlL3JwYzogYXV0aC5oIGF1dGhfdW5peC5oIGNsbnQuaCBjbG50X3NvYy5o
 IG5ldHR5cGUuaA0KPiAgIAkgICAgcG1hcF9jbG50LmggcG1hcF9wcm90LmggcG1hcF9ybXQu
 aCByYXcuaCBycGMuaCBycGNfY29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IC0gc3JjL2NvbW1vbi9pbmNsdWRlL3Jw
 Yy94ZHIuaA0KDQpNYW55IHRoYW5rcyENCg0KICAgICBFZG11bmQgTG9kZXdpamtzDQoNCg0K
 LS0gDQpFZG11bmQgTG9kZXdpamtzIDxlZG11bmRAcHJvdGVhbWFpbC5jb20+DQpUWjogVVRD
 KzIgLyBHTVQrMg0K

 --------------l2mogacvcpQaov0KHe4q9kfc--

 --------------BSgAyX6OsoeWM3uPVt3WQI8m
 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="OpenPGP_signature.asc"

 -----BEGIN PGP SIGNATURE-----

 wnsEABYIACMWIQTnqsIVl5ZcYlkQjW9HHyK94l3WZAUCaxGmRQUDAAAAAAAKCRBHHyK94l3WZImA
 AQDvyhjbfOqwkwMLeM/XZGUPXVQfiVfJdZ/KlXFjylMl8AD/Vp+o+klecUc45Mg37bEIkPN1YF9K
 vahLhBZd0zPGsg8=
 =XyQf
 -----END PGP SIGNATURE-----

 --------------BSgAyX6OsoeWM3uPVt3WQI8m--

From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/61113 CVS commit: src/common/include/rpc
Date: Thu, 3 Dec 2026 13:24:04 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Thu Dec  3 18:24:04 UTC 2026

 Modified Files:
 	src/common/include/rpc: types.h xdr.h

 Log Message:
 PR/61113: Edmund: Apply Sun's BSD relicensing, like FreeBSD did in 2013:
 "Replace Sun RPC license in TI-RPC library with a 3-clause BSD license,
 with the explicit permission of Sun Microsystems in 2009"


 To generate a diff of this commit:
 cvs rdiff -u -r1.4 -r1.5 src/common/include/rpc/types.h
 cvs rdiff -u -r1.3 -r1.4 src/common/include/rpc/xdr.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.