##// END OF EJS Templates
beaker: add patch for metadata re-use
marcink -
r447:eb8a667d default
parent child Browse files
Show More
@@ -0,0 +1,13 b''
1 diff -rup Beaker-1.9.1-orig/beaker/ext/database.py Beaker-1.9.1/beaker/ext/database.py
2 --- Beaker-1.9.1-orig/beaker/ext/database.py 2018-05-22 18:22:34.802619619 +0200
3 +++ Beaker-1.9.1/beaker/ext/database.py 2018-05-22 17:07:14.048335196 +0200
4 @@ -91,7 +91,8 @@ class DatabaseNamespaceManager(OpenResou
5 sa.Column('created', types.DateTime, nullable=False),
6 sa.Column('data', types.PickleType, nullable=False),
7 sa.UniqueConstraint('namespace'),
8 - schema=schema_name if schema_name else meta.schema
9 + schema=schema_name if schema_name else meta.schema,
10 + extend_existing=True
11 )
12 cache.create(checkfirst=True)
13 return cache
@@ -1,60 +1,61 b''
1 1 # Overrides for the generated python-packages.nix
2 2 #
3 3 # This function is intended to be used as an extension to the generated file
4 4 # python-packages.nix. The main objective is to add needed dependencies of C
5 5 # libraries and tweak the build instructions where needed.
6 6
7 7 { pkgs, basePythonPackages }:
8 8
9 9 let
10 10 sed = "sed -i";
11 11 in
12 12
13 13 self: super: {
14 14
15 15 beaker = super.beaker.override (attrs: {
16 16 patches = [
17 17 ./patch-beaker-lock-func-debug.diff
18 ./patch-beaker-metadata-reuse.diff
18 19 ];
19 20 });
20 21
21 22 subvertpy = super.subvertpy.override (attrs: {
22 23 # TODO: johbo: Remove the "or" once we drop 16.03 support
23 24 SVN_PREFIX = "${pkgs.subversion.dev or pkgs.subversion}";
24 25 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
25 26 pkgs.aprutil
26 27 pkgs.subversion
27 28 ];
28 29 preBuild = pkgs.lib.optionalString pkgs.stdenv.isDarwin ''
29 30 ${sed} -e "s/'gcc'/'clang'/" setup.py
30 31 '';
31 32 });
32 33
33 34 hgsubversion = super.hgsubversion.override (attrs: {
34 35 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
35 36 pkgs.sqlite
36 37 basePythonPackages.sqlite3
37 38 ];
38 39 });
39 40
40 41 mercurial = super.mercurial.override (attrs: {
41 42 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
42 43 self.python.modules.curses
43 44 ] ++ pkgs.lib.optional pkgs.stdenv.isDarwin
44 45 pkgs.darwin.apple_sdk.frameworks.ApplicationServices;
45 46 });
46 47
47 48 pyramid = super.pyramid.override (attrs: {
48 49 postFixup = ''
49 50 wrapPythonPrograms
50 51 # TODO: johbo: "wrapPython" adds this magic line which
51 52 # confuses pserve.
52 53 ${sed} '/import sys; sys.argv/d' $out/bin/.pserve-wrapped
53 54 '';
54 55 });
55 56
56 57 # Avoid that setuptools is replaced, this leads to trouble
57 58 # with buildPythonPackage.
58 59 setuptools = basePythonPackages.setuptools;
59 60
60 61 }
General Comments 0
You need to be logged in to leave comments. Login now