SPECS: rpm-whiteout.spec (NEW) - start keeping record of packages with loop...

glen glen at pld-linux.org
Thu May 29 20:53:30 CEST 2008


Author: glen                         Date: Thu May 29 18:53:29 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- start keeping record of packages with loop errors
  this will solve .rpmsave/.rpmnew creation on transactions that install
  packages with dependency loops.

---- Files affected:
SPECS:
   rpm-whiteout.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/rpm-whiteout.spec
diff -u /dev/null SPECS/rpm-whiteout.spec:1.1
--- /dev/null	Thu May 29 20:53:30 2008
+++ SPECS/rpm-whiteout.spec	Thu May 29 20:53:24 2008
@@ -0,0 +1,57 @@
+# $Revision$, $Date$
+%define		rev	%(R="$Revision$"; RR="${R##: }"; echo ${RR%%?})
+Summary:	PLD Linux RPM macros dealing with loop errors
+Name:		rpm-whiteout
+Version:	%{rev}
+Release:	0.2
+License:	GPL
+Group:		Base
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+PLD Linux RPM macros dealing with loop errors in RPM packages in PLD Linux
+Distribution that can't solved easily or at all.
+
+%prep
+%setup -qcT
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/rpm
+cat <<'EOF' > $RPM_BUILD_ROOT/etc/rpm/macros.whiteout
+#	Relations between package names that cause dependency loops
+#	with legacy packages that cannot be fixed. Relations are
+#	specified as
+#		p>q
+#	where package p has a Requires: on something that package q Provides:
+#	so q is installed before p normally.
+#
+# XXX	Note: that there cannot be any whitespace within the string "p>q",
+#	and that both p and q are package names (i.e. no version/release).
+
+%%_dependency_whiteout	\
+	php-pear-Console_Getopt>php-pear-PEAR-core \
+	vim>vim-rt
+
+EOF
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+# these should be replaced with an upgrade
+%config %verify(not md5 mtime size) /etc/rpm/macros.whiteout
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008-05-29 18:53:24  glen
+- start keeping record of packages with loop errors
+  this will solve .rpmsave/.rpmnew creation on transactions that install
+  packages with dependency loops.
+
================================================================


More information about the pld-cvs-commit mailing list