- add brp-strip-static-archive build root policy helper.
- add -lelf to rpm LDFLAGS, not LDADD, since there is no libelf.la now.
- fix: obscure corner case(s) with rpmvercmp (#50977).
+ - file: *really* read elf64 notes correctly.
+ - python: restore thread context on errorCB (#80744).
4.0.4 -> 4.1:
- loosely wire beecrypt library into rpm.
? getu32(fm, ph32.p_offset) \
: getu64(fm, ph64.p_offset))
#define ph_align (fm->cls == ELFCLASS32 \
- ? getu32(fm, ph32.p_align) \
- : getu64(fm, ph64.p_align))
+ ? (ph32.p_align ? getu32(fm, ph32.p_align) : 4) \
+ : (ph64.p_align ? getu64(fm, ph64.p_align) : 4))
#define nh_size (fm->cls == ELFCLASS32 \
? sizeof *nh32 \
: sizeof *nh64)
char nbuf[BUFSIZ];
int bufsize;
size_t offset, nameoffset;
- off_t savedoffset;
if (lseek(fm->fd, off, SEEK_SET) == -1) {
error(EXIT_FAILURE, 0, "lseek failed (%s).\n", strerror(errno));
error(EXIT_FAILURE, 0, "read failed (%s).\n", strerror(errno));
/*@notreached@*/
}
- if ((savedoffset = lseek(fm->fd, 0, SEEK_CUR)) == -1) {
- error(EXIT_FAILURE, 0, "lseek failed (%s).\n", strerror(errno));
- /*@notreached@*/
- }
switch (ph_type) {
case PT_DYNAMIC:
/* Content of note is always 0 */
}
}
- if ((lseek(fm->fd, savedoffset + offset, SEEK_SET)) == -1) {
+ if ((lseek(fm->fd, ph_offset + offset, SEEK_SET)) == -1) {
error(EXIT_FAILURE, 0, "lseek failed (%s).\n", strerror(errno));
/*@notreached@*/
}
*/
static PyObject * errorCB = NULL;
static PyObject * errorData = NULL;
+static PyThreadState * errorThread = NULL;
/**
*/
{
PyObject * result, * args = NULL;
+ PyEval_RestoreThread(errorThread);
+
if (errorData)
args = Py_BuildValue("(O)", errorData);
PyErr_Print();
PyErr_Clear();
}
+
+ errorThread = PyEval_SaveThread();
+
Py_DECREF (result);
}
errorCB = newCB;
errorData = newData;
+ errorThread = PyEval_SaveThread();
Py_INCREF (errorCB);
Py_XINCREF (errorData);
%define version @VERSION@
Version: %{version}
%{expand: %%define rpm_version %{version}}
-Release: 0.55
+Release: 0.56
Group: System Environment/Base
Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/rpm-%{rpm_version}.tar.gz
Copyright: GPL
%{__includedir}/popt.h
%changelog
+* Sun Jan 12 16:17:17 EST 2003
+- file: *really* read elf64 notes correctly.
+- python: restore thread context on errorCB (#80744).
+
* Fri Jan 10 2003 Jeff Johnson <jbj@redhat.com> 4.2-0.55
- fix: obscure corner case(s) with rpmvercmp (#50977).