From dcbd1af5fae83081984b53791594a1f44775fe3b Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Tue, 18 Aug 2026 17:17:40 -0400 Subject: [PATCH 1/4] sdist format: qualify pax compatibility Signed-off-by: William Woodruff --- source/specifications/source-distribution-format.rst | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/specifications/source-distribution-format.rst b/source/specifications/source-distribution-format.rst index cc0a310ea..5fb891601 100644 --- a/source/specifications/source-distribution-format.rst +++ b/source/specifications/source-distribution-format.rst @@ -74,10 +74,19 @@ at their respective paths relative to the root directory of the sdist No other content of a sdist is required or defined. Build systems can store whatever information they need in the sdist to build the project. -The tarball must use the modern POSIX.1-2001 pax tar format, which specifies +The tarball MUST use the modern POSIX.1-2001 pax tar format, which specifies UTF-8 based file names. In particular, source distribution files must be readable using the standard library tarfile module with the open flag 'r:gz'. +Source distributions MUST NOT use non-pax features, even if those features are +structurally compatible with the pax standard. Installers and other consumers MAY +reject source distributions that are not strictly pax-conforming. + +Examples of non-pax features include GNU-style or legacy ("V7")-style tar members +and sparse member encodings (e.g. ``GNU.sparse`` extensions or ``S`` typeflag members). + +The use of pax-style vendor extensions (such as ``SCHILY.xattr`` or ``LIBARCHIVE.xattr``) +is NOT RECOMMENDED for interoperability reasons. .. _sdist-archive-features: From 6d2050c8d2151d502f095105c79e34b8da20c8d4 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Wed, 19 Aug 2026 12:35:11 -0400 Subject: [PATCH 2/4] Strengthen Signed-off-by: William Woodruff --- source/specifications/source-distribution-format.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/specifications/source-distribution-format.rst b/source/specifications/source-distribution-format.rst index 5fb891601..64ad4c2d0 100644 --- a/source/specifications/source-distribution-format.rst +++ b/source/specifications/source-distribution-format.rst @@ -75,11 +75,11 @@ No other content of a sdist is required or defined. Build systems can store whatever information they need in the sdist to build the project. The tarball MUST use the modern POSIX.1-2001 pax tar format, which specifies -UTF-8 based file names. In particular, source distribution files must be readable +UTF-8 based file names. In particular, source distribution files MUST be readable using the standard library tarfile module with the open flag 'r:gz'. Source distributions MUST NOT use non-pax features, even if those features are -structurally compatible with the pax standard. Installers and other consumers MAY +structurally compatible with the pax standard. Installers and other consumers SHOULD reject source distributions that are not strictly pax-conforming. Examples of non-pax features include GNU-style or legacy ("V7")-style tar members From 29a2928827374af1ae3b372de744f92d73971f3d Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Mon, 2 Nov 2026 17:28:10 -0500 Subject: [PATCH 3/4] Loosen Signed-off-by: William Woodruff --- source/specifications/source-distribution-format.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/specifications/source-distribution-format.rst b/source/specifications/source-distribution-format.rst index 64ad4c2d0..72d1c53b7 100644 --- a/source/specifications/source-distribution-format.rst +++ b/source/specifications/source-distribution-format.rst @@ -79,8 +79,8 @@ UTF-8 based file names. In particular, source distribution files MUST be readabl using the standard library tarfile module with the open flag 'r:gz'. Source distributions MUST NOT use non-pax features, even if those features are -structurally compatible with the pax standard. Installers and other consumers SHOULD -reject source distributions that are not strictly pax-conforming. +structurally compatible with the pax standard. Installers and other consumers MAY +warn on source distributions that are not strictly pax-conforming. Examples of non-pax features include GNU-style or legacy ("V7")-style tar members and sparse member encodings (e.g. ``GNU.sparse`` extensions or ``S`` typeflag members). From fc1330a9755984c4b553def047649404fc053ff3 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Mon, 2 Nov 2026 17:32:14 -0500 Subject: [PATCH 4/4] NOT RECOMMENDED -> MUST NOT Signed-off-by: William Woodruff --- source/specifications/source-distribution-format.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/specifications/source-distribution-format.rst b/source/specifications/source-distribution-format.rst index 72d1c53b7..569173f9d 100644 --- a/source/specifications/source-distribution-format.rst +++ b/source/specifications/source-distribution-format.rst @@ -78,6 +78,9 @@ The tarball MUST use the modern POSIX.1-2001 pax tar format, which specifies UTF-8 based file names. In particular, source distribution files MUST be readable using the standard library tarfile module with the open flag 'r:gz'. +The tarball MUST NOT use pax-style vendor extensions (such as ``SCHILY.xattr`` +or ``LIBARCHIVE.xattr``) for interoperability reasons. + Source distributions MUST NOT use non-pax features, even if those features are structurally compatible with the pax standard. Installers and other consumers MAY warn on source distributions that are not strictly pax-conforming. @@ -85,9 +88,6 @@ warn on source distributions that are not strictly pax-conforming. Examples of non-pax features include GNU-style or legacy ("V7")-style tar members and sparse member encodings (e.g. ``GNU.sparse`` extensions or ``S`` typeflag members). -The use of pax-style vendor extensions (such as ``SCHILY.xattr`` or ``LIBARCHIVE.xattr``) -is NOT RECOMMENDED for interoperability reasons. - .. _sdist-archive-features: Source distribution archive features