Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
network:ha-clustering:Unstable
drbd10
suse-coccinelle.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File suse-coccinelle.patch of Package drbd10
diff -Naur drbd-10.0.0+git.ca0cc187.orig/drbd/Makefile drbd-10.0.0+git.ca0cc187/drbd/Makefile --- drbd-10.0.0+git.ca0cc187.orig/drbd/Makefile 2019-09-16 13:35:44.924985503 +0800 +++ drbd-10.0.0+git.ca0cc187/drbd/Makefile 2019-09-19 19:05:42.847540070 +0800 @@ -170,6 +170,9 @@ ifeq ($(DRBD_BUILD_FROM_GIT),yes) sources := $(filter-out drbd_strings.c drbd_buildtag.c,$(wildcard *.c)) sources += $(wildcard drbd-headers/linux/*.h) +else ifeq ($(ALWAYS_WANT_SPATCH),yes) + sources := $(filter-out drbd_strings.c drbd_buildtag.c,$(wildcard *.c)) + sources += $(wildcard drbd-headers/linux/*.h) else sources := endif @@ -196,13 +199,27 @@ fi \ done @echo " SPATCH $(chksum)" + $(eval libpath := $(shell rpm -ql coccinelle|grep standard.h|xargs dirname)) + @echo " sources: $(sources)" + @echo " libpath: $(libpath)" @touch $@.tmp @if [ -e $(incdir)/.compat.cocci ]; then \ + echo " GENCOCCIRULES .compat.cocci"; \ + cat $(incdir)/.compat.cocci; \ spatch --sp-file $(incdir)/.compat.cocci \ $(sources) \ - --macro-file drbd-kernel-compat/cocci_macros.h >> $@.tmp 2> $(incdir)/.spatch.stderr; \ + --macro-file drbd-kernel-compat/cocci_macros.h \ + --macro-file-builtins $(libpath)/standard.h \ + --iso-file $(libpath)/standard.iso >> $@.tmp 2> $(incdir)/.spatch.stderr; \ + fi + @if [ -e $@.tmp ]; then \ + echo " GENSPATCHFILE $@.tmp"; \ + cat $@.tmp; \ + fi + @if [ -e $(incdir)/.spatch.stderr ]; then \ + echo " GENSPATCHERR .spatch.stderr"; \ + cat $(incdir)/.spatch.stderr; \ fi - @if [ -e $(incdir)/.compat.patch ]; then \ cat $(incdir)/.compat.patch >> $@.tmp; \ fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor