- add file(1) as /usr/lib/rpm/rpmfile.
- enable transaction coloring for s390x/ppc64.
- file: check size read from elf header (#85297).
+ - fix: memory leak (85522).
4.0.4 -> 4.1:
- loosely wire beecrypt library into rpm.
pkginc_HEADERS = rpmbuild.h rpmfc.h rpmfile.h rpmspec.h
noinst_HEADERS = buildio.h
+LDFLAGS = -L$(DESTDIR)$(usrlibdir)
+
usrlibdir = $(libdir)@MARK64@
usrlib_LTLIBRARIES = librpmbuild.la
librpmbuild_la_SOURCES = \
mylibs = librpm.la
LIBS =
+LDFLAGS = -L$(DESTDIR)$(usrlibdir)
+
usrlibdir = $(libdir)@MARK64@
usrlib_LTLIBRARIES = librpm.la
librpm_la_SOURCES = \
_("only V3 signatures can be verified, skipping V%u signature\n"),
dig->signature.version);
rpmtsCleanDig(ts);
- sig = _free(sig);
goto verifyinfo_exit;
}
_("only V3 signatures can be verified, skipping V%u signature\n"),
dig->signature.version);
rpmtsCleanDig(ts);
- sig = _free(sig);
goto verifyinfo_exit;
}
/*@fallthrough@*/
break;
default:
+ sig = _free(sig);
break;
}
/*@=boundswrite@*/
rpmtsCleanDig(ts);
+ if (info->tag == RPMTAG_SHA1HEADER)
+ sig = _free(sig);
return rc;
}
psm->countCorrection = -1;
if (!(rpmtsFlags(ts) & RPMTRANS_FLAG_NOTRIGGERUN)) {
- /* Run triggers in other package(s) this package sets off. */
- rc = rpmpsmStage(psm, PSM_TRIGGERS);
- if (rc) break;
-
/* Run triggers in this package other package(s) set off. */
rc = rpmpsmStage(psm, PSM_IMMED_TRIGGERS);
if (rc) break;
+
+ /* Run triggers in other package(s) this package sets off. */
+ rc = rpmpsmStage(psm, PSM_TRIGGERS);
+ if (rc) break;
}
if (!(rpmtsFlags(ts) & RPMTRANS_FLAG_NOPREUN))
int_32 rpmtsSigtype(const rpmts ts)
{
- int_32 sigtag = 0;
+ int_32 sigtype = 0;
if (ts != NULL)
- sigtag = ts->sigtag;
- return sigtag;
+ sigtype = ts->sigtype;
+ return sigtype;
}
const void * rpmtsSig(const rpmts ts)
%build
# XXX rpm needs functioning nptl for configure tests
-unset LD_ASSUME_KERNEL
+unset LD_ASSUME_KERNEL || :
%if %{with_python_subpackage}
WITH_PYTHON="--with-python=%{with_python_version}"
%install
# XXX rpm needs functioning nptl for configure tests
-unset LD_ASSUME_KERNEL
+unset LD_ASSUME_KERNEL || :
rm -rf $RPM_BUILD_ROOT
DB3LOBJS = $(shell cat $(top_builddir)/$(WITH_DB_SUBDIR)/db3lobjs)
+LDFLAGS = -L$(DESTDIR)$(usrlibdir)
+
usrlibdir = $(libdir)@MARK64@
usrlib_LTLIBRARIES = librpmdb.la
librpmdb_la_SOURCES = \
BEECRYPTLOBJS = $(shell cat $(top_builddir)/beecrypt/listobjs)
+LDFLAGS = -L$(DESTDIR)$(usrlibdir)
+
usrlibdir = $(libdir)@MARK64@
usrlib_LTLIBRARIES = librpmio.la
librpmio_la_SOURCES = \
--- /dev/null
+# Perl specific macro definitions.
+# To make use of these macros insert the following line into your spec file:
+# %include /usr/lib/rpm/macros.perl
+
+%define __find_requires /usr/lib/rpm/find-perl-requires
+%define __find_provides /usr/lib/rpm/find-perl-provides
+
+%define perl_sitelib %(eval "`perl -V:installsitelib`"; echo $installsitelib)
+%define perl_sitearch %(eval "`perl -V:installsitearch`"; echo $installsitearch)
+%define perl_archlib %(eval "`perl -V:installarchlib`"; echo $installarchlib)
+%define perl_privlib %(eval "`perl -V:installprivlib`"; echo $installprivlib)
+
--- /dev/null
+# Perl specific macro definitions.
+# To make use of these macros insert the following line into your spec file:
+# %include /usr/lib/rpm/macros.php
+
+%define __find_requires /usr/lib/rpm/find-php-requires
+%define __find_provides /usr/lib/rpm/find-php-provides
+
+%define php_pear_dir %{_datadir}/pear
+
--- /dev/null
+# Python specific macro definitions.
+# To make use of these macros insert the following line into your spec file:
+# %include /usr/lib/rpm/macros.python
+
+# python main version
+%define py_ver %(echo `python -c "import sys; print sys.version[:3]"`)
+
+# directories
+%define py_prefix %(echo `python -c "import sys; print sys.prefix"`)
+%define py_libdir %{py_prefix}/lib/python%{py_ver}
+%define py_incdir /usr/include/python%{py_ver}
+%define py_sitedir %{py_libdir}/site-packages
+%define py_dyndir %{py_libdir}/lib-dynload
+
+# pure python modules compilation
+%define py_comp python -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
+
+%define py_ocomp python -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"