diff --git a/libbsd-0.5.1-clearenv.patch b/libbsd-0.5.1-clearenv.patch new file mode 100644 index 0000000..2afbe4e --- /dev/null +++ b/libbsd-0.5.1-clearenv.patch @@ -0,0 +1,12 @@ +diff -up libbsd-0.5.1/src/setproctitle.c.clearenv libbsd-0.5.1/src/setproctitle.c +--- libbsd-0.5.1/src/setproctitle.c.clearenv 2013-06-06 14:01:44.372445400 -0600 ++++ libbsd-0.5.1/src/setproctitle.c 2013-06-06 14:02:37.534419993 -0600 +@@ -59,7 +59,7 @@ spt_min(size_t a, size_t b) + static int + spt_clearenv(void) + { +-#ifdef HAVE_CLEARENV ++#if 0 // was ifdef HAVE_CLEARENV, see Red Hat bug 971513 + return clearenv(); + #else + char **tmp; diff --git a/libbsd.spec b/libbsd.spec index 2ec6960..f2767ee 100644 --- a/libbsd.spec +++ b/libbsd.spec @@ -1,14 +1,14 @@ Name: libbsd Version: 0.5.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Library providing BSD-compatible functions for portability URL: http://libbsd.freedesktop.org/ - -Source0: http://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz - License: BSD and ISC and Copyright only and Public Domain Group: System Environment/Libraries +Source0: http://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz +Patch0: libbsd-0.5.1-clearenv.patch + %description libbsd provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port @@ -26,6 +26,7 @@ Development files for the libbsd library. %prep %setup -q +%patch0 -p1 -b .clearenv %configure @@ -63,6 +64,9 @@ rm %{buildroot}%{_libdir}/%{name}.la %{_libdir}/pkgconfig/%{name}-overlay.pc %changelog +* Thu Jun 06 2013 Eric Smith - 0.5.1-2 +- Add patch to avoid calling clearenv() in setproctitle.c, bug #971513. + * Tue Jun 04 2013 Eric Smith - 0.5.1-1 - Update to latest upstream release.