Changes of Revision 13
[-] | Changed | mercurial.spec |
x 1
2 License: GPL 3 Group: Development/Tools 4 Source: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz 5 +Patch: mercurial-glibc-24-older.patch 6 URL: http://www.selenic.com/mercurial 7 BuildRoot: /tmp/build.%{name}-%{version}-%{release} 8 9
10 %prep 11 rm -rf $RPM_BUILD_ROOT 12 %setup -q 13 +%if 0%{?suse_version} <= 1010 14 +%patch0 15 +%endif 16 17 %build 18 make all 19 |
||
[+] | Added | mercurial-glibc-24-older.patch ^ |
@@ -0,0 +1,14 @@ +--- setup.py.orig 2008-09-19 16:44:32.000000000 +0200 ++++ setup.py 2008-09-19 16:50:51.000000000 +0200 +@@ -98,9 +98,10 @@ + + try: + import posix ++ import platform + ext_modules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'])) + +- if sys.platform == 'linux2' and os.uname()[2] > '2.6': ++ if sys.platform == 'linux2' and os.uname()[2] > '2.6' and platform.libc_ver > '2.4': + # The inotify extension is only usable with Linux 2.6 kernels. + # You also need a reasonably recent C library. + cc = new_compiler() |