[Lunar-commits] <moonbase-other> slim: make patch more readable

v4hn me at v4hn.de
Tue Nov 4 11:41:24 CET 2014


commit 3463b2dd7db4816193706c0b373943e9cd08b64e
Author: v4hn <me at v4hn.de>
Date: Tue, 04 Nov 2014 11:27:38 +0100
URL: https://github.com/lunar-linux/moonbase-other/commit/3463b2dd7db4816193706c0b373943e9cd08b64e

slim: make patch more readable

Do not depend on "line 126" (which only applies _after_ our other patches)
---
  x11-utils/slim/PRE_BUILD | +2/-1     
  1 file changed, 2 insertions(+), 1 deletion(-)

--- a/x11-utils/slim/PRE_BUILD
+++ b/x11-utils/slim/PRE_BUILD
@@ -5,7 +5,8 @@ patch_it $SOURCE3 1 &&
 
 sedit 's at FREETYPE_INCLUDE_DIR_freetype2@FREETYPE_INCLUDE_DIR_ft2build@' CMakeLists.txt &&
 
-sedit '126 i target_link_libraries(libslim ${PAM_LIBRARY})' CMakeLists.txt &&
+# link against pam with USE_PAM
+sedit '/target_link_libraries(${PROJECT_NAME} ${PAM_LIBRARY})/ a target_link_libraries(libslim ${PAM_LIBRARY})' CMakeLists.txt &&
 
 # fix their broken sample configuration
 sedit 's/^sessions.*/#\0/; T; a sessiondir /usr/share/xsessions' slim.conf &&




More information about the Lunar-commits mailing list