|
15 | 15 |
|
16 | 16 | '''
|
17 | 17 | How to create this patch:
|
18 |
| - 1) put `import ipdb; ipdb.set_trace()` in make_alpine_image, after `open(patch_name)..` |
19 |
| - 2) run the script |
20 |
| - 3) in temporary folder run `cp Dockerfile Dockerfile.1 && vim Dockerfile.1 && diff -Naur Dockerfile Dockerfile.1 > ./cassert.patch` |
21 |
| - 4) contents of cassert.patch put to variable below |
22 |
| - 5) change Dockerfile.1 to Dockerfile in text, change `\` symbols to `\\` |
| 18 | + * put `import ipdb; ipdb.set_trace()` in make_alpine_image, just before `open(patch_name)..` |
| 19 | + * run the script |
| 20 | + * in temporary folder run `cp Dockerfile Dockerfile.1 && vim Dockerfile.1` |
| 21 | + * uncomment --enable-debug, add --enable-cassert, add `CFLAGS="-g3 -O0"` before ./configure |
| 22 | + * run `diff -Naur Dockerfile Dockerfile.1 > ./cassert.patch` |
| 23 | + * contents of cassert.patch put to variable below |
| 24 | + * change Dockerfile.1 to Dockerfile in text, change `\` symbols to `\\` |
23 | 25 | '''
|
24 | 26 | ALPINE_PATCH = b'''
|
25 |
| ---- Dockerfile 2017-07-27 14:54:10.403971867 +0300 |
26 |
| -+++ Dockerfile 2017-07-27 14:56:01.132503106 +0300 |
27 |
| -@@ -79,7 +79,7 @@ |
| 27 | +--- Dockerfile 2017-09-25 12:01:24.597813507 +0300 |
| 28 | ++++ Dockerfile 2017-09-25 12:09:06.104059704 +0300 |
| 29 | +@@ -79,15 +79,15 @@ |
28 | 30 | && wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb' \\
|
29 | 31 | # configure options taken from:
|
30 | 32 | # https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
|
31 | 33 | - && ./configure \\
|
32 |
| -+ && CFLAGS="-O0" ./configure \\ |
| 34 | ++ && CFLAGS="-g3 -O0" ./configure \\ |
33 | 35 | --build="$gnuArch" \\
|
34 | 36 | # "/usr/src/postgresql/src/backend/access/common/tupconvert.c:105: undefined reference to `libintl_gettext'"
|
35 | 37 | # --enable-nls \\
|
36 |
| -@@ -87,7 +87,7 @@ |
| 38 | + --enable-integer-datetimes \\ |
37 | 39 | --enable-thread-safety \\
|
38 | 40 | --enable-tap-tests \\
|
39 |
| - # skip debugging info -- we want tiny size instead |
| 41 | +-# skip debugging info -- we want tiny size instead |
40 | 42 | -# --enable-debug \\
|
41 | 43 | + --enable-debug \\
|
| 44 | ++ --enable-cassert \\ |
42 | 45 | --disable-rpath \\
|
43 | 46 | --with-uuid=e2fs \\
|
44 | 47 | --with-gnu-ld \\
|
|
0 commit comments