[RFE] calm needs to know about ZStandard compressed archives

Achim Gratz Stromeko@nexgo.de
Mon Jan 4 18:35:50 GMT 2021


Jon Turney writes:
>> I think the right thing to do is to stop having actual packages for
>> OBSOLETES and just emit the obsoltes: hint instead.
>
> Yeah, this change to cygport should be made and we can turn off
> support for setup versions which don't understand the obsoletes: hint.

The obsolete hints are already generated for some time, so at least the
newer packages should have them.  The older packages would need to
retroactively get them (or keep their equally old obsoleteion packages
around still).

So I think this is what's left to do in cygport (untested, on top of my
to-upstream branch):

--8<---------------cut here---------------start------------->8---
>From 0491ea2934d83c656ba5dacf7f02c31f02b46a38 Mon Sep 17 00:00:00 2001
Subject: [PATCH] lib/pkg_pkg.cygpart: stop generating packages for obsoletions

---
 lib/pkg_pkg.cygpart | 46 ---------------------------------------------
 1 file changed, 46 deletions(-)

diff --git a/lib/pkg_pkg.cygpart b/lib/pkg_pkg.cygpart
index 2b2f8bc..80003e9 100644
--- a/lib/pkg_pkg.cygpart
+++ b/lib/pkg_pkg.cygpart
@@ -828,32 +828,6 @@ _EOF
 			warning "${pkg_hint[${n}]%.hint}.hint is missing";
 		fi
 
-		for obspkg in ${!pkg_obsoletes_var}
-		do
-			if [ ${obspkg} = ${PN} ]
-			then
-				obssubdir= ;
-			else
-				obssubdir=${obspkg};
-			fi
-
-			mkdir -p ${distdir}/${PN}/${obssubdir};
-			${CYGPORT_TAR_CMD-tar -J} -cf ${distdir}/${PN}/${obssubdir}/${obspkg}-${PVR}${CYGPORT_TAR_EXT-.tar.xz} --files-from /dev/null
-
-			__step "${pkg_name[${n}]} OBSOLETES: ${obspkg}"
-
-			cat > ${distdir}/${PN}/${obssubdir}/${obspkg}-${PVR}.hint <<-_EOF
-category: _obsolete
-requires: ${pkg_name[${n}]}
-sdesc: "Obsoleted by ${pkg_name[${n}]}"
-ldesc: "The ${obspkg} package is obsolete.  Selecting this package for
-installation will cause the ${pkg_name[${n}]} package, which replaces this
-one, to be installed instead."
-${obssubdir:+external-source: ${PN}}
-${pkg_tag}
-_EOF
-		done
-
 		n+=1;
 	done
 
@@ -887,26 +861,6 @@ _EOF
 			fi
 		fi
 
-		for obspkg in ${!dbg_obsoletes_var}
-		do
-			mkdir -p ${distdir}/${PN}/${obspkg};
-			${CYGPORT_TAR_CMD-tar -J} -cf ${distdir}/${PN}/${obspkg}/${obspkg}-${PVR}${CYGPORT_TAR_EXT-.tar.xz} --files-from /dev/null
-
-			__step "${PN}-debuginfo OBSOLETES: ${obspkg}"
-
-			cat > ${distdir}/${PN}/${obspkg}/${obspkg}-${PVR}.hint <<-_EOF
-category: _obsolete
-requires: ${PN}-debuginfo
-sdesc: "Obsoleted by ${PN}-debuginfo"
-ldesc: "The ${obspkg} package is obsolete.  Selecting this package for
-installation will cause the ${PN}-debuginfo package, which replaces this
-one, to be installed instead."
-external-source: ${PN}
-${pkg_tag}
-_EOF
-		done
-	fi
-
 	# source package hint
 	if [ ! -f ${distdir}/${PN}/${PN}-${PVR}-src.hint ]
 	then
-- 
2.29.2
--8<---------------cut here---------------end--------------->8---



Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada


More information about the Cygwin-apps mailing list