From 828fd62b92d265aa7331d86ddc17379456dcfc1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Thu, 18 Feb 2010 13:09:19 +0000 Subject: [PATCH] - reuse the fact that each parts has unique location and fetch patch from that place git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32778 20353a03-c40f-0410-a6d1-a30d3c3de9de --- buildout/patches/README.txt | 1 - buildout/patches/python2.4-dbm.patch | 11 ----------- buildout/software-profiles/python-2.4.cfg | 8 +++++++- 3 files changed, 7 insertions(+), 13 deletions(-) delete mode 100644 buildout/patches/README.txt delete mode 100644 buildout/patches/python2.4-dbm.patch diff --git a/buildout/patches/README.txt b/buildout/patches/README.txt deleted file mode 100644 index f7764a6539..0000000000 --- a/buildout/patches/README.txt +++ /dev/null @@ -1 +0,0 @@ -python2.4-dbm.patch took from http://bugs.gentoo.org/165268 diff --git a/buildout/patches/python2.4-dbm.patch b/buildout/patches/python2.4-dbm.patch deleted file mode 100644 index 82a5f83358..0000000000 --- a/buildout/patches/python2.4-dbm.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- setup.py.orig 2007-02-04 03:04:59.000000000 +0100 -+++ setup.py 2007-02-04 03:09:46.000000000 +0100 -@@ -684,7 +684,7 @@ - and find_file("gdbm/ndbm.h", inc_dirs, []) is not None): - exts.append( Extension('dbm', ['dbmmodule.c'], - define_macros=[('HAVE_GDBM_NDBM_H',None)], -- libraries = ['gdbm'] ) ) -+ libraries = ['gdbm_compat', 'gdbm'] ) ) - elif db_incs is not None: - exts.append( Extension('dbm', ['dbmmodule.c'], - library_dirs=dblib_dir, diff --git a/buildout/software-profiles/python-2.4.cfg b/buildout/software-profiles/python-2.4.cfg index acd1eef1fb..b89a4c6d67 100644 --- a/buildout/software-profiles/python-2.4.cfg +++ b/buildout/software-profiles/python-2.4.cfg @@ -6,6 +6,12 @@ parts = python pythonbin +[python2.4-dbm-patch] +recipe = hexagonit.recipe.download +url = http://bugs.gentoo.org/attachment.cgi?id=109117 +download-only = true +filename = attachment.cgi + [python] recipe = hexagonit.recipe.cmmi python_version_minor = 6 @@ -22,7 +28,7 @@ configure-options = --with-ssl --with-bz2 -patches = ${buildout:directory}/patches/python2.4-dbm.patch +patches = ${python2.4-dbm-patch:location}/${python2.4-dbm-patch:filename} [pythonbin] depends = ${python:recipe} -- 2.30.9