Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4bdc792

Browse files
committed
Update make_images.py
1 parent bc4d271 commit 4bdc792

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

make_images.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,33 @@
1515

1616
'''
1717
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 `\\`
2325
'''
2426
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 @@
2830
&& wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb' \\
2931
# configure options taken from:
3032
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
3133
- && ./configure \\
32-
+ && CFLAGS="-O0" ./configure \\
34+
+ && CFLAGS="-g3 -O0" ./configure \\
3335
--build="$gnuArch" \\
3436
# "/usr/src/postgresql/src/backend/access/common/tupconvert.c:105: undefined reference to `libintl_gettext'"
3537
# --enable-nls \\
36-
@@ -87,7 +87,7 @@
38+
--enable-integer-datetimes \\
3739
--enable-thread-safety \\
3840
--enable-tap-tests \\
39-
# skip debugging info -- we want tiny size instead
41+
-# skip debugging info -- we want tiny size instead
4042
-# --enable-debug \\
4143
+ --enable-debug \\
44+
+ --enable-cassert \\
4245
--disable-rpath \\
4346
--with-uuid=e2fs \\
4447
--with-gnu-ld \\

0 commit comments

Comments
 (0)