--- /dev/null
+--- rpm-4.0.2/python/Makefile.am.orig Mon Jun 19 01:26:50 2000
++++ rpm-4.0.2/python/Makefile.am Sun Sep 9 00:41:37 2001
+@@ -25,5 +25,5 @@
+ noinst_LTLIBRARIES = librpmmodule.la
+ librpmmodule_la_SOURCES = rpmmodule.c hash.c upgrade.c
+
+-rpmmodule.so: $(librpmmodule_la_OBJECTS)
++rpmmodule.so$(EXEEXT): $(librpmmodule_la_OBJECTS)
+ $(LINK) -o $@ $^ $(rpmmodule_so_LDFLAGS)
--- /dev/null
+diff -Nur rpm-4.0.2.orig/lib/rpminstall.c rpm-4.0.2/lib/rpminstall.c
+--- rpm-4.0.2.orig/lib/rpminstall.c Sat Feb 10 15:07:16 2001
++++ rpm-4.0.2/lib/rpminstall.c Sun Sep 9 00:33:52 2001
+@@ -87,6 +87,13 @@
+ case RPMCALLBACK_INST_OPEN_FILE:
+ fd = Fopen(filename, "r.ufdio");
+ fd = fdLink(fd, "persist (showProgress)");
++ {
++ int oldfl=Fcntl(fd, F_GETFD, 0);
++ if(oldfl >= 0) {
++ oldfl |= FD_CLOEXEC; /* scripts shouldn't inherit rpm file descriptor */
++ Fcntl(fd, F_SETFD, oldfl);
++ }
++ }
+ return fd;
+
+ case RPMCALLBACK_INST_CLOSE_FILE:
+diff -Nur rpm-4.0.2.orig/lib/uninstall.c rpm-4.0.2/lib/uninstall.c
+--- rpm-4.0.2.orig/lib/uninstall.c Mon Jan 22 16:59:13 2001
++++ rpm-4.0.2/lib/uninstall.c Sat Sep 8 23:58:22 2001
+@@ -388,6 +388,9 @@
+ if (Fileno(ts->scriptFd) > STDERR_FILENO) {
+ Fclose (ts->scriptFd);
+ }
++ } else {
++ if (Fileno(out) > STDERR_FILENO)
++ Fclose (out);
+ }
+
+ { const char *ipath = rpmExpand("PATH=%{_install_script_path}", NULL);
Summary(pl): Aplikacja do zarz±dzania pakietami
Name: rpm
Version: 4.0.2
-Release: 33
+Release: 34
License: GPL
Group: Base
Group(de): Gründsätzlich
Patch18: %{name}-noperldir.patch
Patch19: popt-cvs20010530.patch
Patch20: %{name}-noexpand.patch
+Patch21: %{name}-scripts-closefds.patch
+Patch22: %{name}-python-amfix.patch
Patch37: %{name}-short_circuit.patch
Patch38: %{name}-section_test.patch
BuildRequires: gettext-devel >= 0.10.38-3
%patch16 -p0
%patch17 -p1
%patch18 -p1
+%patch19 -p1
+%patch22 -p1
%patch31 -p1
%patch36 -p1
cp platform.in macros.pld.in