+++ /dev/null
---- bglibs-1.009/Makefile.orig 2003-04-07 19:47:25.000000000 +0200
-+++ bglibs-1.009/Makefile 2003-06-01 11:57:28.000000000 +0200
-@@ -126,6 +126,15 @@
- ) >compile
- chmod 755 compile
-
-+compile-no-o: compile
-+ ( \
-+ echo '#!/bin/sh'; \
-+ echo 'source=$$1; shift'; \
-+ echo 'base=`echo "$$source" | sed -e s:\\\\.c$$::`'; \
-+ echo exec `head -1 conf-cc` -I. '-c $$source $${1+"$$@"}'; \
-+ ) >compile-no-o
-+ chmod 755 compile-no-o
-+
- conf_home.c: conf-home
- head -1 conf-home | \
- sed -e 's/"/\\"/g' \
-@@ -679,7 +688,7 @@
- pwcmp/module.o: compile pwcmp/module.c pwcmp/module.h
- ./compile pwcmp/module.c
-
--selftests: selftests.sh
-+selftests: selftests.sh compile-no-o
- sh selftests.sh
-
- str/alloc.o: compile str/alloc.c str/str.h selftest.c iobuf/iobuf.h msg/msg.h str/str.h
---- bglibs-1.009/selftests.sh.orig 2003-04-07 19:47:25.000000000 +0200
-+++ bglibs-1.009/selftests.sh 2003-06-01 11:56:44.000000000 +0200
-@@ -14,7 +14,7 @@
- rm -f $t/*
- sed -e '1,/^#ifdef SELFTEST_EXP$/d' -e '/^#endif/,$d' $1 >$t/test.exp
-
-- ./compile $1 -DSELFTEST_MAIN -o $t/test.o || {
-+ ./compile-no-o $1 -DSELFTEST_MAIN -o $t/test.o || {
- echo "=====> Compile failed! <====="
- return 1
- }
--- /dev/null
+--- bglibs-1.010/unix/selfpipe.c.orig 2003-11-17 21:16:37.000000000 +0100
++++ bglibs-1.010/unix/selfpipe.c 2003-11-18 19:55:42.436533008 +0100
+@@ -69,9 +69,10 @@
+ {
+ int buf;
+ int fd = selfpipe_init();
++/* let it be kernel business which descriptors pipe returns (it failed on 2.6)
+ puti("FD[0]", fds[0]);
+ puti("FD[1]", fds[1]);
+- puti("Returned FD", fd);
++ puti("Returned FD", fd); */
+ puti("read before SIGCHLD", read(fd, &buf, sizeof buf));
+ puti("errno is EAGAIN", errno == EAGAIN);
+ kill(0, SIGCHLD);
+@@ -87,9 +88,6 @@
+ }
+ #endif
+ #ifdef SELFTEST_EXP
+-FD[0]: 3
+-FD[1]: 4
+-Returned FD: 3
+ read before SIGCHLD: -1
+ errno is EAGAIN: 1
+ read after SIGCHLD: 1
Summary: Bruce Guenter's Libraries Collection
Summary(pl): Zestaw bibliotek Bruce'a Guentera
Name: bglibs
-Version: 1.009
+Version: 1.010
Release: 1
License: GPL
Group: Development/Libraries
-# Source0-md5: 486ac7cc8166441261a6569c4ec5a87d
Source0: http://untroubled.org/bglibs/%{name}-%{version}.tar.gz
-Patch0: %{name}-gcc-nodoubleo.patch
+# Source0-md5: 2502cb6ee9099cda13e282fe17eb7584
+Patch0: %{name}-pipe.patch
URL: http://untroubled.org/bglibs/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)