diff --git a/srcpkgs/rmlint/patches/do-not-strip.patch b/srcpkgs/rmlint/patches/do-not-strip.patch new file mode 100644 index 00000000000..4edc4f442fd --- /dev/null +++ b/srcpkgs/rmlint/patches/do-not-strip.patch @@ -0,0 +1,31 @@ +Index: rmlint-2.10.1/SConstruct +=================================================================== +--- rmlint-2.10.1.orig/SConstruct ++++ rmlint-2.10.1/SConstruct +@@ -718,25 +718,19 @@ O_DEBUG = 'g' # The optimisation level + O_RELEASE = '2' # The optimisation level for a release build + + # build modes ++O_value = None + if ARGUMENTS.get('DEBUG') == "1": + print("Compiling in debug mode") + conf.env.Append(CCFLAGS=['-DRM_DEBUG', '-fno-inline']) + O_value = ARGUMENTS.get('O', O_DEBUG) + else: + conf.env.Append(CCFLAGS=['-DG_DISABLE_ASSERT', '-DNDEBUG']) +- conf.env.Append(LINKFLAGS=['-s']) +- O_value = ARGUMENTS.get('O', O_RELEASE) + + if O_value == 'debug': + O_value = O_DEBUG + elif O_value == 'release': + O_value = O_RELEASE + +-cc_O_option = '-O' + O_value +- +-print("Using compiler optimisation {} (to change, run scons with O=[0|1|2|3|s|fast])".format(cc_O_option)) +-conf.env.Append(CCFLAGS=[cc_O_option]) +- + if ARGUMENTS.get('SYMBOLS') == '1': + print("Compiling with debugging symbols") + conf.env.Append(CCFLAGS='-g3') diff --git a/srcpkgs/rmlint/template b/srcpkgs/rmlint/template index 2a8787bd1b4..12be638d0d8 100644 --- a/srcpkgs/rmlint/template +++ b/srcpkgs/rmlint/template @@ -1,7 +1,7 @@ # Template file for 'rmlint' pkgname=rmlint version=2.10.1 -revision=7 +revision=8 build_style=scons make_build_args="VERBOSE=1" hostmakedepends="pkg-config python3-Sphinx glib-devel"