diff --git a/.ci b/.ci index 261f218e0..b5dc0f98d 160000 --- a/.ci +++ b/.ci @@ -1 +1 @@ -Subproject commit 261f218e094e39550e3a7c54b98e34adcf42ad9b +Subproject commit b5dc0f98d43f2dfd66f22213c6dd70040271691c diff --git a/configure/CONFIG_BASE_VERSION b/configure/CONFIG_BASE_VERSION index a05861956..cd632dfa7 100644 --- a/configure/CONFIG_BASE_VERSION +++ b/configure/CONFIG_BASE_VERSION @@ -48,7 +48,7 @@ EPICS_VERSION = 7 EPICS_REVISION = 0 # EPICS_MODIFICATION must be a number >=0 and <256 -EPICS_MODIFICATION = 10 +EPICS_MODIFICATION = 11 # EPICS_PATCH_LEVEL must be a number (win32 resource file requirement) # Not included in the official EPICS version number if zero diff --git a/configure/CONFIG_CA_VERSION b/configure/CONFIG_CA_VERSION index de8fd6ba1..712be8e56 100644 --- a/configure/CONFIG_CA_VERSION +++ b/configure/CONFIG_CA_VERSION @@ -2,7 +2,7 @@ EPICS_CA_MAJOR_VERSION = 4 EPICS_CA_MINOR_VERSION = 15 -EPICS_CA_MAINTENANCE_VERSION = 1 +EPICS_CA_MAINTENANCE_VERSION = 2 # Development flag, set to zero for release versions diff --git a/configure/CONFIG_DATABASE_VERSION b/configure/CONFIG_DATABASE_VERSION index 94f4872e7..599199c2a 100644 --- a/configure/CONFIG_DATABASE_VERSION +++ b/configure/CONFIG_DATABASE_VERSION @@ -1,7 +1,7 @@ # Version number for the database APIs and shared library EPICS_DATABASE_MAJOR_VERSION = 3 -EPICS_DATABASE_MINOR_VERSION = 25 +EPICS_DATABASE_MINOR_VERSION = 26 EPICS_DATABASE_MAINTENANCE_VERSION = 1 # Development flag, set to zero for release versions diff --git a/configure/CONFIG_LIBCOM_VERSION b/configure/CONFIG_LIBCOM_VERSION index 405906813..fa4652d10 100644 --- a/configure/CONFIG_LIBCOM_VERSION +++ b/configure/CONFIG_LIBCOM_VERSION @@ -2,7 +2,7 @@ EPICS_LIBCOM_MAJOR_VERSION = 3 EPICS_LIBCOM_MINOR_VERSION = 25 -EPICS_LIBCOM_MAINTENANCE_VERSION = 1 +EPICS_LIBCOM_MAINTENANCE_VERSION = 2 # Development flag, set to zero for release versions diff --git a/configure/RULES.Db b/configure/RULES.Db index 53dc81037..efc8d78c8 100644 --- a/configure/RULES.Db +++ b/configure/RULES.Db @@ -209,9 +209,9 @@ build: $(COMMON_DBS) $(INSTALL_DBS) \ clean: db_clean db_clean: - @$(RM) $(COMMONS) $(DBDDEPENDS_FILES) - @$(RM) *_registerRecordDeviceDriver.cpp - @$(RM) $(TARGETS) + $(RM) $(COMMONS) $(DBDDEPENDS_FILES) + $(RM) *_registerRecordDeviceDriver.cpp + $(RM) $(TARGETS) .PHONY: db_clean @@ -221,91 +221,91 @@ realclean: clean # Dependency files %Record.h$(DEP): $(COMMON_DIR)/%Record.dbd $(DBDTORECTYPEH_dep) - @$(RM) $@ - @$(DBTORECORDTYPEH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout - @echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout - @$(MV) $@.stdout $@ + $(RM) $@ + $(DBTORECORDTYPEH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout + echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout + $(MV) $@.stdout $@ %Record.h$(DEP): %Record.dbd $(DBDTORECTYPEH_dep) - @$(RM) $@ - @$(DBTORECORDTYPEH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout - @echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout - @$(MV) $@.stdout $@ + $(RM) $@ + $(DBTORECORDTYPEH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout + echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout + $(MV) $@.stdout $@ %Record.h$(DEP): ../%Record.dbd $(DBDTORECTYPEH_dep) - @$(RM) $@ - @$(DBTORECORDTYPEH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout - @echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout - @$(MV) $@.stdout $@ + $(RM) $@ + $(DBTORECORDTYPEH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout + echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout + $(MV) $@.stdout $@ menu%.h$(DEP): $(COMMON_DIR)/menu%.dbd $(DBDTOMENUH_dep) - @$(RM) $@ - @$(DBTOMENUH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout - @echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout - @$(MV) $@.stdout $@ + $(RM) $@ + $(DBTOMENUH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout + echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout + $(MV) $@.stdout $@ menu%.h$(DEP): menu%.dbd $(DBDTOMENUH_dep) - @$(RM) $@ - @$(DBTOMENUH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout - @echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout - @$(MV) $@.stdout $@ + $(RM) $@ + $(DBTOMENUH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout + echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout + $(MV) $@.stdout $@ menu%.h$(DEP): ../menu%.dbd $(DBDTOMENUH_dep) - @$(RM) $@ - @$(DBTOMENUH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout - @echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout - @$(MV) $@.stdout $@ + $(RM) $@ + $(DBTOMENUH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout + echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout + $(MV) $@.stdout $@ %.dbd$(DEP): %.dbd.pod - @$(RM) $@ - @echo $(COMMONDEP_TARGET): ../Makefile > $@.stdout - @$(MV) $@.stdout $@ + $(RM) $@ + echo $(COMMONDEP_TARGET): ../Makefile > $@.stdout + $(MV) $@.stdout $@ %.dbd$(DEP): %Include.dbd - @$(RM) $@ - @$(DBEXPAND) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout - @echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout - @$(MV) $@.stdout $@ + $(RM) $@ + $(DBEXPAND) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout + echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout + $(MV) $@.stdout $@ %.dbd$(DEP): ../%Include.dbd - @$(RM) $@ - @$(DBEXPAND) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout - @echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout - @$(MV) $@.stdout $@ + $(RM) $@ + $(DBEXPAND) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout + echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout + $(MV) $@.stdout $@ %.dbd$(DEP): $($*_DBD) - @$(RM) $@ - @$(DBEXPAND) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $($*_DBD) > $@.stdout - @echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout - @$(MV) $@.stdout $@ + $(RM) $@ + $(DBEXPAND) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $($*_DBD) > $@.stdout + echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout + $(MV) $@.stdout $@ %.db$(DEP): %$(SUBST_SUFFIX) - @$(RM) $@ + $(RM) $@ $(MSI3_15) -D $(DBFLAGS) -o $(COMMONDEP_TARGET) -S$< $(TEMPLATE_FILENAME) > $@.stdout - @$(MV) $@.stdout $@ + $(MV) $@.stdout $@ %.db$(DEP): ../%$(SUBST_SUFFIX) - @$(RM) $@ + $(RM) $@ $(MSI3_15) -D $(DBFLAGS) -o $(COMMONDEP_TARGET) -S$< $(TEMPLATE_FILENAME) > $@.stdout - @$(MV) $@.stdout $@ + $(MV) $@.stdout $@ %.db$(DEP): %$(TEMPL_SUFFIX) - @$(RM) $@ + $(RM) $@ $(MSI3_15) -D $(DBFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout - @$(MV) $@.stdout $@ + $(MV) $@.stdout $@ %.db$(DEP): ../%$(TEMPL_SUFFIX) - @$(RM) $@ + $(RM) $@ $(MSI3_15) -D $(DBFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout - @$(MV) $@.stdout $@ + $(MV) $@.stdout $@ %.acf$(DEP): %.acs - @$(RM) $@ - @$(ACFDEPENDS_CMD) + $(RM) $@ + $(ACFDEPENDS_CMD) %.acf$(DEP): ../%.acs - @$(RM) $@ - @$(ACFDEPENDS_CMD) + $(RM) $@ + $(ACFDEPENDS_CMD) .PRECIOUS: %$(DEP) @@ -317,17 +317,17 @@ menu%.h$(DEP): ../menu%.dbd $(DBDTOMENUH_dep) ifdef CREATESUBSTITUTIONS $(COMMON_DIR)/%$(SUBST_SUFFIX): $(ECHO) "Create substitutions" - @$(RM) $@ + $(RM) $@ $(CREATESUBSTITUTIONS) $@ endif $(INSTALL_DB)/%$(SUBST_SUFFIX): %$(SUBST_SUFFIX) $(ECHO) "Installing substitution file $@" - @$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) + $(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) $(INSTALL_DB)/%$(SUBST_SUFFIX): ../%$(SUBST_SUFFIX) $(ECHO) "Installing substitution file $@" - @$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) + $(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) .PRECIOUS: $(COMMON_DIR)/%$(SUBST_SUFFIX) @@ -336,11 +336,11 @@ $(INSTALL_DB)/%$(SUBST_SUFFIX): ../%$(SUBST_SUFFIX) $(INSTALL_DB)/%$(TEMPL_SUFFIX): %$(TEMPL_SUFFIX) $(ECHO) "Installing template file $@" - @$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) + $(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) $(INSTALL_DB)/%$(TEMPL_SUFFIX): ../%$(TEMPL_SUFFIX) $(ECHO) "Installing template file $@" - @$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) + $(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) .PRECIOUS: $(COMMON_DIR)/%$(TEMPL_SUFFIX) @@ -348,34 +348,34 @@ $(INSTALL_DB)/%$(TEMPL_SUFFIX): ../%$(TEMPL_SUFFIX) # INC files $(COMMON_DIR)/%Record.h: $(COMMON_DIR)/%Record.dbd $(DBDTORECTYPEH_dep) - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(DBTORECORDTYPEH) $(DBDFLAGS) -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/%Record.h: %Record.dbd $(DBDTORECTYPEH_dep) - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(DBTORECORDTYPEH) $(DBDFLAGS) -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/%Record.h: ../%Record.dbd $(DBDTORECTYPEH_dep) - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(DBTORECORDTYPEH) $(DBDFLAGS) -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/menu%.h: $(COMMON_DIR)/menu%.dbd $(DBDTOMENUH_dep) - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(DBTOMENUH) $(DBDFLAGS) -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/menu%.h: menu%.dbd $(DBDTOMENUH_dep) - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(DBTOMENUH) $(DBDFLAGS) -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/menu%.h: ../menu%.dbd $(DBDTOMENUH_dep) - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(DBTOMENUH) $(DBDFLAGS) -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ .PRECIOUS: $(COMMON_DIR)/%.h @@ -384,26 +384,26 @@ $(COMMON_DIR)/menu%.h: ../menu%.dbd $(DBDTOMENUH_dep) $(COMMON_DIR)/bpt%.dbd: bpt%.data $(ECHO) "Converting data from $<" - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(MAKEBPT) $< $(notdir $@) - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/%.dbd: %.dbd.pod - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(PERL) $(TOOLS)/podRemove.pl -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/%.dbd: %Include.dbd $(ECHO) "Expanding dbd file $<" - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(DBEXPAND) $(DBDFLAGS) -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/%.dbd: ../%Include.dbd $(ECHO) "Expanding dbd file $<" - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(DBEXPAND) $(DBDFLAGS) -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ # Make DBDCAT file x depend on x_DBD source files define DBDCAT_template @@ -413,32 +413,32 @@ $(foreach name,$(subst .dbd,,$(DBDCAT)), $(eval $(call DBDCAT_template,$(name))) $(COMMON_DBDCATS):$(COMMON_DIR)/%.dbd: $(ECHO) "Creating dbd file $(notdir $@)" - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(DBDCAT_COMMAND) - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/%.dbd: $($*_DBD) $(ECHO) "Creating dbd file $(notdir $@)" - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(DBEXPAND) $(DBDFLAGS) -o $(notdir $@) $($*_DBD) - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(INSTALL_DBD)/%: $(COMMON_DIR)/% $(ECHO) "Installing created dbd file $@" - @$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) + $(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) $(INSTALL_DBD)/%: % $(ECHO) "Installing dbd file $@" - @$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) + $(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) $(INSTALL_DBD)/%: ../% $(ECHO) "Installing dbd file $@" - @$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) + $(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) define DBD_INSTALLS_template $$(INSTALL_DBD)/$$(notdir $(1)): $(1) $(ECHO) "Installing $$@" - @$$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$^ $$(INSTALL_DBD) + $$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$^ $$(INSTALL_DBD) endef $(foreach file, $(DBD_INSTALLS), $(eval $(call DBD_INSTALLS_template, $(file)))) @@ -448,19 +448,19 @@ $(foreach file, $(DBD_INSTALLS), $(eval $(call DBD_INSTALLS_template, $(file)))) # Markdown files $(COMMON_DIR)/%.md: %.dbd.pod $(DBDTOMD_pl) - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(DBDTOMD) $(DBDFLAGS) -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/%.md: %.pod $(PODTOMD_pl) - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(PODTOMD) -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/%.md: ../%.pl $(PODTOMD_pl) - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(PODTOMD) -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ .PRECIOUS: $(COMMON_DIR)/%.md @@ -468,30 +468,30 @@ $(COMMON_DIR)/%.md: ../%.pl $(PODTOMD_pl) # HTML files $(COMMON_DIR)/%.html: %.dbd.pod $(DBDTOHTML_pl) - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(DBDTOHTML) $(DBDFLAGS) -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/%.html: %.pod $(PODTOHTML_dep) - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(PODTOHTML) -s -s -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/%.html: %.pm $(PODTOHTML_dep) - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(PODTOHTML) -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/%.html: ../%.pm $(PODTOHTML_dep) - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(PODTOHTML) -s -o $(notdir $@) $< - @$(MKDIR) $(dir $@) - @$(MV) $(notdir $@) $@ + $(MKDIR) $(dir $@) + $(MV) $(notdir $@) $@ $(COMMON_DIR)/%.html: ../%.pl $(PODTOHTML_dep) - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(PODTOHTML) -s -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ .PRECIOUS: $(COMMON_DIR)/%.html @@ -500,62 +500,62 @@ $(COMMON_DIR)/%.html: ../%.pl $(PODTOHTML_dep) $(COMMON_DIR)/%.db: $(COMMON_DIR)/%.edf $(E2DB) $(E2DB_SYSFLAGS) $(E2DB_FLAGS) -n $*.VAR $< - @$(REPLACEVAR) < $*.VAR > $@.stdout - @$(RM) $*.VAR - @$(MV) $@.stdout $@ + $(REPLACEVAR) < $*.VAR > $@.stdout + $(RM) $*.VAR + $(MV) $@.stdout $@ $(COMMON_DIR)/%.db: %$(SUBST_SUFFIX) $(ECHO) "Inflating database from $< $(TEMPLATE_FILENAME)" - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(MSI3_15) $(DBFLAGS) -o $(notdir $@) -S$< $(TEMPLATE_FILENAME) - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/%.db: ../%$(SUBST_SUFFIX) $(ECHO) "Inflating database from $< $(TEMPLATE_FILENAME)" - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(MSI3_15) $(DBFLAGS) -o $(notdir $@) -S$< $(TEMPLATE_FILENAME) - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/%.db: %$(TEMPL_SUFFIX) $(ECHO) "Inflating database from $<" - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(MSI3_15) $(DBFLAGS) -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/%.db: ../%$(TEMPL_SUFFIX) $(ECHO) "Inflating database from $<" - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(MSI3_15) $(DBFLAGS) -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/%.acf: %.acs $(ECHO) "Creating acf file $@" - @$(RM) $@ + $(RM) $@ $(ACF_CMD) $(COMMON_DIR)/%.acf: ../%.acs $(ECHO) "Creating acf file $@" - @$(RM) $@ + $(RM) $@ $(ACF_CMD) .PRECIOUS: $(COMMON_DIR)/%.acf $(INSTALL_DB)/%: % $(ECHO) "Installing $@" - @$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) + $(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) $(INSTALL_DB)/%: ../% $(ECHO) "Installing $@" - @$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) + $(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) $(INSTALL_DB)/%.db: $(COMMON_DIR)/%.db $(ECHO) "Installing created db file $@" - @$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) + $(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) define DB_INSTALLS_template $$(INSTALL_DB)/$$(notdir $(1)): $(1) $(ECHO) "Installing $$@" - @$$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$^ $$(INSTALL_DB) + $$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$^ $$(INSTALL_DB) endef $(foreach file, $(DB_INSTALLS), $(eval $(call DB_INSTALLS_template, $(file)))) @@ -566,17 +566,17 @@ $(foreach file, $(DB_INSTALLS), $(eval $(call DB_INSTALLS_template, $(file)))) # register record,device,driver support %_registerRecordDeviceDriver.cpp: $(COMMON_DIR)/%.dbd $(REGRECDEVDRV_dep) - @$(RM) $@ + $(RM) $@ $(REGISTERRECORDDEVICEDRIVER) $(REGRDDFLAGS) -o $@ \ $< $(basename $@) $(IOCS_APPL_TOP) %_registerRecordDeviceDriver.cpp: %.dbd $(REGRECDEVDRV_dep) - @$(RM) $@ + $(RM) $@ $(REGISTERRECORDDEVICEDRIVER) $(REGRDDFLAGS) -o $@ \ $< $(basename $@) $(IOCS_APPL_TOP) %_registerRecordDeviceDriver.cpp: ../%.dbd $(REGRECDEVDRV_dep) - @$(RM) $@ + $(RM) $@ $(REGISTERRECORDDEVICEDRIVER) $(REGRDDFLAGS) -o $@ \ $< $(basename $@) $(IOCS_APPL_TOP) diff --git a/configure/RULES_BUILD b/configure/RULES_BUILD index ab7241a6a..caebe2168 100644 --- a/configure/RULES_BUILD +++ b/configure/RULES_BUILD @@ -197,7 +197,7 @@ clean: build_clean build_clean: $(ECHO) "Cleaning" - @$(RM) *.i *$(OBJ) *.a \ + $(RM) *.i *$(OBJ) *.a \ $(LIBNAME) $(TESTLIBNAME) $(SHRLIBNAME) $(TESTSHRLIBNAME) \ $(DLLSTUB_LIBNAME) $(TESTDLLSTUB_LIBNAME) \ $(LOADABLE_SHRLIBNAME) \ @@ -206,7 +206,7 @@ build_clean: $(COMMON_INC) $(HDEPENDS_FILES) $(PRODTARGETS) $(TESTPRODTARGETS) \ $(TESTSCRIPTS) $(TAPFILES) $(JUNITFILES) ifdef RES - @$(RM) *$(RES) + $(RM) *$(RES) endif # Sort directories to remove duplicates & make parents first @@ -245,24 +245,24 @@ $(LOADABLE_SHRLIBNAME): FINAL_DIR=$(INSTALL_SHRLIB) $(TESTPRODNAME) $(PRODNAME): $(PRODUCT_OBJS) $(PROD_RESS) $(PROD_DEPLIBS) $(TESTPRODNAME) $(PRODNAME): %$(EXE): - @$(RM) $@ + $(RM) $@ $(LINK.cpp) $(MT_EXE_COMMAND) %_ctdt$(OBJ): %_ctdt.c - @$(RM) $@ + $(RM) $@ $(COMPILE.ctdt) $< %$(DEP):%.c - @$(RM) $@ + $(RM) $@ $(HDEPENDS.c) $< %$(DEP):%.cc - @$(RM) $@ + $(RM) $@ $(HDEPENDS.cpp) $< %$(DEP):%.cpp - @$(RM) $@ + $(RM) $@ $(HDEPENDS.cpp) $< # Cancel GNUMake's built-in rules, which don't have our _INC @@ -273,20 +273,20 @@ $(TESTPRODNAME) $(PRODNAME): %$(EXE): # Include files are order-only prerequisites for compilation: %$(OBJ): %.c | $(COMMON_INC) $(INSTALL_INC) - @$(RM) $@ + $(RM) $@ $(COMPILE.c) -c $< %$(OBJ): %.cc | $(COMMON_INC) $(INSTALL_INC) - @$(RM) $@ + $(RM) $@ $(COMPILE.cpp) -c $< %$(OBJ): %.cpp | $(COMMON_INC) $(INSTALL_INC) - @$(RM) $@ + $(RM) $@ $(COMPILE.cpp) -c $< # Windows resource compiler %$(RES): %.rc - @$(RM) $@ + $(RM) $@ $(RCCMD) YACCOPT ?= $($*_YACCOPT) @@ -295,8 +295,8 @@ YACCOPT ?= $($*_YACCOPT) # are creating it # %.c: %.y - @$(RM) $*.tab.c - @$(RM) $*.tab.h + $(RM) $*.tab.c + $(RM) $*.tab.h $(YACC) -b$* $(YACCOPT) $< $(MV) $*.tab.c $*.c $(if $(findstring -d, $(YACCOPT)),$(MV) $*.tab.h $*.h,) @@ -306,7 +306,7 @@ YACCOPT ?= $($*_YACCOPT) %.h: %.c %.y %.c: %.l - @$(RM) $@ + $(RM) $@ $(LEX) $(LEXOPT) -o$@ $< #--------------------------------------------------------------- @@ -315,7 +315,7 @@ YACCOPT ?= $($*_YACCOPT) $(LIBNAME) $(TESTLIBNAME): $(LIBRARY_OBJS) $(filter-out $(DLLSTUB_LIBNAME) $(TESTDLLSTUB_LIBNAME), $(LIBNAME) $(TESTLIBNAME)): $(LIB_PREFIX)%$(LIB_SUFFIX): - @$(RM) $@ + $(RM) $@ $(ARCMD) ifneq ($(strip $(RANLIB)),) $(RANLIB) $@ @@ -330,20 +330,20 @@ $(SHRLIBNAME) $(DLLSTUB_LIBNAME) $(TESTSHRLIBNAME) $(TESTDLLSTUB_LIBNAME): \ # the target requires a separate stub library file. $(DLLSTUB_LIBNAME): | $(SHRLIBNAME); $(SHRLIBNAME): $(SHRLIB_PREFIX)%$(SHRLIB_SUFFIX): - @$(RM) $@ + $(RM) $@ $(LINK.shrlib) $(MT_DLL_COMMAND) $(TESTDLLSTUB_LIBNAME): | $(TESTSHRLIBNAME); $(TESTSHRLIBNAME): $(SHRLIB_PREFIX)%$(SHRLIB_SUFFIX): - @$(RM) $@ + $(RM) $@ $(LINK.shrlib) $(MT_DLL_COMMAND) $(LOADABLE_SHRLIBNAME): $(LIBRARY_OBJS) $(LIBRARY_RESS) $(SHRLIB_DEPLIBS) $(LOADABLE_SHRLIBNAME): $(LOADABLE_SHRLIB_PREFIX)%$(LOADABLE_SHRLIB_SUFFIX): - @$(RM) $@ + $(RM) $@ $(LINK.shrlib) $(MT_DLL_COMMAND) @@ -355,33 +355,33 @@ $(LOADABLE_SHRLIBNAME): $(LOADABLE_SHRLIB_PREFIX)%$(LOADABLE_SHRLIB_SUFFIX): $(MV) $@.stdout $@ %.nm: %$(OBJ) - @$(RM) $@ + $(RM) $@ $(NM) $< > $@.stdout $(MV) $@.stdout $@ %_ctdt.c: %.nm $(TOOLS)/munch.pl - @$(RM) $@ + $(RM) $@ $(PERL) $(TOOLS)/munch.pl -o $@ $< $(MUNCHNAME): %$(MUNCH_SUFFIX): $(MUNCH_DEPENDS) %$(EXE) - @$(RM) $@ + $(RM) $@ $(MUNCH_CMD) $(TESTMUNCHNAME): %$(MUNCH_SUFFIX): $(MUNCH_DEPENDS) %$(EXE) - @$(RM) $@ + $(RM) $@ $(MUNCH_CMD) #--------------------------------------------------------------- # GeSys modules for RTEMS $(MODNAME): %$(MODEXT): %$(EXE) @echo "Building module $@" - @$(RM) $@ + $(RM) $@ $(LINK.mod) #--------------------------------------------------------------- # Generate Perl include path module %ModuleDirs.pm: $(wildcard $(TOP)/configure/RELEASE*) - @$(MKDIR) $(dir $@) + $(MKDIR) $(dir $@) $(CONVERTRELEASE) -T $(TOP) $@ #--------------------------------------------------------------- @@ -391,8 +391,7 @@ runtests: run-tap-tests run-tap-tests: | build ifneq ($(TESTSCRIPTS.t),) ifdef RUNTESTS_ENABLED - $(ECHO) "$(PROVE) $(TESTSCRIPTS.t)" - @$(PROVE) $(TESTSCRIPTS.t) || $(PROVE_FAILURE) + $(PROVE) $(TESTSCRIPTS.t) || $(PROVE_FAILURE) endif endif @@ -406,7 +405,7 @@ tap-results: $(TAPFILES) ifneq ($(strip $(TAPFILES)),) ifdef RUNTESTS_ENABLED $(ECHO) "$(PROVE.tap) $(TAPFILES)" - @$(PROVE.tap) $(TAPFILES) || $(PROVE_FAILURE) + $(PROVE.tap) $(TAPFILES) || $(PROVE_FAILURE) endif CURRENT_TAPFILES := $(wildcard $(TAPFILES)) @@ -425,7 +424,7 @@ endif $(TAPFILES.t): %.tap: %.t | build ifdef RUNTESTS_ENABLED $(ECHO) "$(PERL) $< -tap > $@" - @$(PERL) $< -tap > $@ || $(TAPFILE_FAILURE) + $(PERL) $< -tap > $@ || $(TAPFILE_FAILURE) endif $(JUNITFILES.t): %-results.xml: %.tap @@ -433,13 +432,13 @@ $(JUNITFILES.t): %-results.xml: %.tap # If there's a perl test script (.plt) available, use it %.t: ../%.plt - @$(RM) $@ + $(RM) $@ $(EXPAND_TOOL) -t $(INSTALL_LOCATION) -a $(T_A) $< $@ # Test programs (.t files) must be written in Perl. # Generate a perl program to exec the real test binary. %.t: %$(EXE) $(TOOLS)/makeTestfile.pl - @$(RM) $@ + $(RM) $@ $(PERL) $(TOOLS)/makeTestfile.pl $(T_A) $(EPICS_HOST_ARCH) $@ $< #--------------------------------------------------------------- @@ -456,7 +455,7 @@ $(filter-out $(INSTALL_API_HEADERS), $(INSTALL_INC)) $(HDEPENDS_FILES): \ # How to make one $(COMMON_DIR)/%API.h: $(TOOLS)/makeAPIheader.pl - @$(RM) $@ + $(RM) $@ $(PERL) $(TOOLS)/makeAPIheader.pl -o $@ $(@:$(COMMON_DIR)/%API.h=%) endif @@ -473,14 +472,14 @@ endif define BIN_INSTALLS_template $$(INSTALL_BIN)/$$(notdir $(1)): $(1) $(ECHO) "Installing $$( $$@ + echo $1: > $$@ endef $(foreach asy, $(sort $(COMMON_ASSEMBLIES) $(ASSEMBLIES)), \ $(eval $(call ASSEMBLY_DEP_template,$(strip $(asy))))) diff --git a/configure/RULES_FILE_TYPE b/configure/RULES_FILE_TYPE index 5936fd5e0..63ceb97db 100644 --- a/configure/RULES_FILE_TYPE +++ b/configure/RULES_FILE_TYPE @@ -51,10 +51,10 @@ INSTALLS_$(1) = $$($(1):%=$$(INSTALL_$(1))/%) $$(INSTALL_$(1))/%: ../% $(ECHO) "Installing $(1) file $$@" - @$$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$< $$(dir $$@) + $$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$< $$(dir $$@) $$(INSTALL_$(1))/%: % $(ECHO) "Installing $(1) file $$@" - @$$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$< $$(dir $$@) + $$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$< $$(dir $$@) buildInstall: $$(INSTALLS_$(1)) endef @@ -66,6 +66,6 @@ $(foreach type, $(FILE_TYPE), \ clean: file_type_clean file_type_clean: - @$(RM) $(foreach type, $(FILE_TYPE), $($(type))) + $(RM) $(foreach type, $(FILE_TYPE), $($(type))) .PHONY : file_type_clean diff --git a/configure/RULES_MODULES b/configure/RULES_MODULES index ce52ae3a6..d53fa0841 100644 --- a/configure/RULES_MODULES +++ b/configure/RULES_MODULES @@ -52,8 +52,8 @@ $(RELEASE_LOCAL): Makefile $(CONFIG)/CONFIG_SITE \ $(wildcard $(CONFIG)/CONFIG_SITE.local) $(ECHO) "Creating $@ with" $(ECHO) " $(PARENT_MODULE) = $(INSTALL_ABSOLUTE)" - @echo $(PARENT_MODULE) = $(INSTALL_ABSOLUTE)> $@.stdout - @$(MV) $@.stdout $@ + echo $(PARENT_MODULE) = $(INSTALL_ABSOLUTE)> $@.stdout + $(MV) $@.stdout $@ .PHONY: RELEASE.host @@ -62,4 +62,4 @@ TESTS_FAILED_LOGS = $(wildcard $(addsuffix /$(TESTS_FAILED_LOG), \ $(LIVE_SUBMODULES))) runtests test-results: % : | $(addsuffix $(DIVIDER)%, $(LIVE_SUBMODULES)) $(if $(TESTS_FAILED_LOGS), \ - @$(CAT) $(TESTS_FAILED_LOGS)>> $(TESTS_FAILED_PATH)) + $(CAT) $(TESTS_FAILED_LOGS)>> $(TESTS_FAILED_PATH)) diff --git a/configure/RULES_OCTAVE b/configure/RULES_OCTAVE index 1ec4cc7b2..17c636e15 100644 --- a/configure/RULES_OCTAVE +++ b/configure/RULES_OCTAVE @@ -32,7 +32,7 @@ clean: octave_clean #This clean works from O.* dirs. octave_clean: - @$(RM) *.mex *.m + $(RM) *.mex *.m .PHONY: octave_clean diff --git a/configure/os/CONFIG.Common.RTEMS b/configure/os/CONFIG.Common.RTEMS index 9a2f4823b..432df25c5 100644 --- a/configure/os/CONFIG.Common.RTEMS +++ b/configure/os/CONFIG.Common.RTEMS @@ -149,6 +149,11 @@ OP_SYS_LDLIBS += -lrtemsCom -lCom OP_SYS_LDLIBS += $(OP_SYS_LDLIBS_$(OS_API)_NET_$(RTEMS_HAS_NETWORKING)) OP_SYS_LDLIBS += -lrtemscpu -lc -lm +OP_SYS_DEPLIBS = rtemsCom +PROD_DEPLIBS += $(foreach lib, $(OP_SYS_DEPLIBS), \ + $(firstword $(wildcard $(addsuffix /$(LIB_PREFIX)$(lib)$(LIB_SUFFIX), \ + $($(lib)_DIR) $(SHRLIB_SEARCH_DIRS))))) + OP_SYS_LDFLAGS_posix = -u POSIX_Init OP_SYS_LDFLAGS_score = -u Init \ $(PROJECT_RELEASE)/lib/no-dpmem.rel \ diff --git a/configure/os/CONFIG_SITE.Common.RTEMS b/configure/os/CONFIG_SITE.Common.RTEMS index c050f92a3..fc79392dd 100644 --- a/configure/os/CONFIG_SITE.Common.RTEMS +++ b/configure/os/CONFIG_SITE.Common.RTEMS @@ -49,3 +49,9 @@ USE_GESYS = NO COMMANDLINE_LIBRARY = EPICS #COMMANDLINE_LIBRARY = LIBTECLA #COMMANDLINE_LIBRARY = READLINE + +# +# Override the microseconds per tick using +# +#OP_SYS_CFLAGS += -DCONFIGURE_MICROSECONDS_PER_TICK=1000 +# diff --git a/documentation/Makefile b/documentation/Makefile index 517c294e6..7c5be52f9 100644 --- a/documentation/Makefile +++ b/documentation/Makefile @@ -85,7 +85,7 @@ else ifneq ($(NOTES_PATH),) $(NOTES_PATH): $(NEW_NOTES) $(MAKENOTES) - @$(RM) $@ + $(RM) $@ $(PERL) $(MAKENOTES) -o $@ -V $(EPICS_SHORT_VERSION) \ -d $(abspath $(NEW_DIR)) $(OLD_NOTES) release-git: $(NOTES_PATH) @@ -112,13 +112,13 @@ else ifeq ($(wildcard ../$(NOTES_FILE)),) # No RELEASE-.md file, add new-notes to RELEASE_NOTES.md $(COMMON_DIR)/RELEASE_NOTES.md: $(REL_DEPS) $(NEW_NOTES) $(MAKENOTES) - @$(RM) $@ + $(RM) $@ $(PERL) $(MAKENOTES) -o $@ -V $(EPICS_SHORT_VERSION) $(DEV_FLAG) \ -d $(abspath $(NEW_DIR)) $(OLD_NOTES) $(NOTES_PATH) else # RELEASE-.md exists, we're building a tagged version $(COMMON_DIR)/RELEASE_NOTES.md: ../$(NOTES_FILE) - @$(RM) $@ + $(RM) $@ $(PERL) $(MAKENOTES) -o $@ -V $(EPICS_SHORT_VERSION) $(OLD_NOTES) endif @@ -126,15 +126,15 @@ else $(EXPAND_TOOL) -t $(INSTALL_LOCATION) -DHEADER=$* $< $@ $(API_RST_FILES): %-api.rst: ../%-API.rst - @$(RM) $@ - @$(ECHO) Creating $@ - @$(CP) $< $@ - @$(foreach h, $($*_HEADERS), \ + $(ECHO) Creating $@ + $(RM) $@ + $(CP) $< $@ + $(foreach h, $($*_HEADERS), \ echo " $h_h.rst" >> $@;) DOX = doxygen doxygen: Doxyfile - @$(MKDIR) $(RTD_SRC) + $(MKDIR) $(RTD_SRC) $(DOXYGEN) # Use "make sphinx DOX=" to skip running doxygen diff --git a/documentation/RELEASE-7.0.11.md b/documentation/RELEASE-7.0.11.md new file mode 100644 index 000000000..32a102c42 --- /dev/null +++ b/documentation/RELEASE-7.0.11.md @@ -0,0 +1,223 @@ +# Release Notes + +This document describes the changes that were included in the release of EPICS +noted below. Release entries are now provided in a separate document for each +version in the EPICS 7 series, but all are combined into a single page for +publishing on the EPICS website. Separate release documents are also included +from the older Base 3.15 and 3.16 series. + +The external PVA submodules continue to maintain their own release notes files +as before, but the entries describing changes in those submodules since version +7.0.5 have been copied into the associated EPICS Release Notes files; they will +also be manually added to new EPICS Release Notes published in the future. + +## EPICS Release 7.0.11 + +The changes described below have been merged into EPICS +since the last published release. + +### CA Server Hardening + +In response to several independent reports of security vulnerabilities, +the CA server in the IOC (RSRV) will more strictly validate messages. +**These changes introduce an added risk of interoperability issues with +older CA clients.** + +Sites using older versions of libca or CAJ, +or with other CA client implementations, +are advised to do extra testing prior to deploying this release. + +### Add GDB Helper Script + +A new [Debugging with GDB](gdb.md) document which is linked under the +"General Information" heading in the side-bar provides information on +how to debug C/C++ code in an IOC running on a workstation OS. + +This release added a GDB helper script that pretty-prints some of the +common database types. +Tested with GDB 16.3. +Compatible with python 3. + +### Fix undefined timestamp for NORD field + +When monitoring non-val fields such as `NORD` for several record types updates +are not sent out correctly resulting in incorrect timestamps. This fixes this +for the record types `aai`, `aao`, `subArray`. + +Note that support modules that already implement this in the device support +layer will need to be updated to avoid doubled monitor updates. If those modules +are to be built against older versions of EPICS base then they will need to use +the defined macros `AAO_POSTS_NORD`, `AAI_POSTS_NORD`, `SA_POSTS_NORD`, or +`WF_POSTS_NORD` as appropriate to detect this change. + +### iocInit wait for local CA links to connect + +PR [768](https://github.com/epics-base/epics-base/pull/768) + +During iocInit(), wait for local CA links to connect. +With this change, database authors can be certain that +any local CA link is connected prior to `initHookAfterIocRunning` +and `field(PINI, RUNNING)`. + +### epicsThreadGetCPUs and callbackParallelThreads + +On systems that support it (e.g. recent Linux systems), `epicsThreadGetCPUs()` +now takes the current cpu affinity mask of the calling thread into acount. +That fixes the problem that an IOC which was started with a limited affinity +mask (e.g. using `taskset`) and that called `callbackParallelThreads` with an +argument of 0 in the startup script, had started more parallel callback +threads than it has CPU cores available. + +The iocsh function `callbackParallelThreads` now also accepts positive or +negative percentages for `count`, referring to the availabple number of cores +and always rounding the number of used cores down with a minimum of 1. + +#### Examples + +```text +# use up to 25% of available cpu cores for callback threads +callbackParallelThreads 25% +# keep at least 10% of available cpu cores unused for callback threads +callbackParallelThreads -10% +``` + +### errlogInit can be run more than once + +Previously, running `errlogInit` after initialisation would silently fail. It is +now possible to call `errlogInit` or `errlogInit2` multiple times in order to +increase the buffer size. + +Note that it is not possible to _shrink_ the buffer size. + +### Expose `dbCreateRecord` in IOC shell + +Add a new IOC shell command `dbCreateRecord` allowing for records to be created +from the shell. + +Only works when called before `iocInit` and will fail if called afterwards. + +The pdbbase variable, a record type, and the new record's name should be passed +as arguments. + +Example usage: + +```sh +dbCreateRecord(pdbbase, "ai", "example:ai") +iocInit() +``` + +### AFTC for bi record + +The bi record now also supports the AFTC parameter. +The AFTC field sets the time constant on a low-pass filter that delays the +reporting of limit alarms until the signal has been within the alarm range for +that number of seconds (the default AFTC value of zero retains the previous +behavior). One has to make sure that the bi record is processed at a reasonably fast rate +when using AFTC, so that the record can respond to changes in the input signal +within the time constant. + +### AFTC and LALM fix for mbbi record + +Fixed two issues in the mbbi record where the AFTC and LALM fields were not operating as expected. + +### Static network configuration for RTEMS targets using libBSD + +GitHub [PR #853](https://github.com/epics-base/epics-base/pull/853) + +RTEMS targets built against the libBSD network stack can now use a static +network configuration in addition to DHCP. + +When a static IP address and netmask can be read from the board's boot +configuration, the first non-loopback interface is configured with that static +address; otherwise the target falls back to DHCP as before. + +The boot configuration is read using the mechanism appropriate to the board: + + * MOTLOAD boards read the NVRAM Global Environment Variables (GEV), falling + back to the parameters in the `mot-script-boot` boot script. + * PPCBUG boards read their PPCBUG NVRAM. + * ColdFire (`mcf528x`) boards read their bootloader environment variables. + +### Template fix for modules with `cfg/RULES*` files + +EPICS modules that installed custom build `RULES*` files into +`$(INSTALL_CFG)` weren't loading them properly when the module +was built with `INSTALL_LOCATION` set in `configure/CONFIG_SITE` +or `configure/CONFIG_SITE.local`. +This release provides a fix in the template `configure/CONFIG` +file to solve the issue for new modules created from the +`makeBaseApp` template. + +Maintainers of old modules that provide special build rules for +IOC applications should check their `configure` directory. +Assuming a `configure/CONFIG` file is present, replace it with +the `templates/makeBaseApp/top/configure/CONFIG` file from this +release. If any changes were made to the old file they would +need to be merged into the new file. + +If the module's `configure` directory contains a file named +`CONFIG_APP` and no `CONFIG_SITE` file, the application must +date back to before March 2006; the files in the `configure` +directory should all be replaced in this case. + +### macOS: Drop the `-flat_namespace` linker flag + +It's not clear when this flag was no longer required on macOS, we +tried dropping it +[in 2019](https://github.com/epics-base/epics-base/commit/cbb13bf6b170c6ba6660d594bdd9ca44a5bdaea5) +but had to [restore it](https://github.com/epics-base/epics-base/commit/8c3c5a9731887c6d8b1918394090564af38461b5). +XCode 15 seems a safe version though. See discussion in issue +[#895](https://github.com/epics-base/epics-base/issues/895) for +more details. + +### Fix registration of DRVETs + +The C++ code generated in an IOC's `RecordDeviceDriver.cpp` file can fail +to compile if the Makefile building the IOC defines the `USE_TYPED_DRVET` +macro. Compiler errors caused by this bug will look something like this: + +``` +test_registerRecordDeviceDriver.cpp:198:15: error: +typedef 'drvet' cannot be referenced with the 'struct' specifier + 198 | static struct drvet *drvsl[] = { + | ^ +/epics/base-7.0/include/drvSup.h:38:21: note: declared here + 38 | typedef typed_drvet drvet; + | ^ +1 error generated. +``` + +[This PR](https://github.com/epics-base/epics-base/pull/902) +modifies the generated C++ code to resolve that problem, and adds a +driver to the example IOC template to catch regressions. + +### pvAccess Module + +Changes to this module since the previous release: + +#### Release 7.1.9 + +- pvget: Add `-S` option to `pvget` and `pvmonitor` to + stringify byte arrays (Jeremy Lorelli) + + +### pvData Module + +Changes to this module since the previous release: + +#### Release 8.0.9 + +- Add a max string len param to + epics::pvData::SerializeHelper::deserializeString() (Andrew Johnson) +- Add method + epics::pvData::PVStructure::Formatter::arrayAsString() (Jeremy Lorelli) + + +### pva2pva Module + +Changes to this module since the previous release: + +#### Release 1.4.2 + +- Minor bug fixes + diff --git a/documentation/ReleaseChecklist.md b/documentation/ReleaseChecklist.md index 416917d48..2a27fd739 100644 --- a/documentation/ReleaseChecklist.md +++ b/documentation/ReleaseChecklist.md @@ -115,7 +115,7 @@ Reach a consensus that the software is ready to release. 5. Tag the submodule (replace `ANJ` with your initials): ``` - git tag -m "ANJ: Tag for EPICS 7.0.11" + git tag -m "ANJ: Tag for EPICS 7.0.12" ``` 6. Generate documentation for modules with @@ -221,7 +221,7 @@ Reach a consensus that the software is ready to release. `new-notes/*.md` files, then deletes the files and prepares a Git commit to apply those changes permanently to the repository. - Run these commands to generate the `RELEASE-7.0.11.md` + Run these commands to generate the `RELEASE-7.0.12.md` file and remove the individual release note entry files: ``` @@ -236,7 +236,7 @@ Reach a consensus that the software is ready to release. ``` git status git diff --staged - git commit -m "Generate RELEASE-7.0.11.md notes file" + git commit -m "Generate RELEASE-7.0.12.md notes file" ``` If you need to undo those Git actions before committing and confirm @@ -249,7 +249,7 @@ Tag the epics-base module in Git (replace `ANJ` with your initials): ``` cd base-7.0 -git tag -m "ANJ: Tagged for release" R7.0.11 +git tag -m "ANJ: Tagged for release" R7.0.12 ``` Don't push to GitHub yet. @@ -280,14 +280,14 @@ continuous integration: ``` cd base-7.0 -./.tools/make-tar.sh R7.0.11 ../base-7.0.11.tar.gz base-7.0.11/ +./.tools/make-tar.sh R7.0.12 ../base-7.0.12.tar.gz base-7.0.12/ ``` Create a GPG signature file of the tarfile as follows: ``` cd .. -gpg --armor --sign --detach-sig base-7.0.11.tar.gz +gpg --armor --sign --detach-sig base-7.0.12.tar.gz ``` **Release Manager:** @@ -302,9 +302,29 @@ git push --follow-tags upstream 7.0 ---- +### Build the tagged documentation + +The read-the-docs build process isn't automatic when the tag doesn't +point to the last commit in a push, so building the release docs +must be triggered by hand after pushing as follows: + +- Go to [read-the-docs versions page](https://app.readthedocs.org/projects/epics-base/) +- Look for a R7.0.12 version tag in the list. If present with a + green check-mark it has already been built: click on the Book icon + ("View documentation for ...") link to check the result. +- If R7.0.12 is not present, click the "+ Add version" button and + type `7.0.12` into the "Search versions" box there, then click that + entry to bring up an "Edit version" dialog. +- I like to edit the suggested "Slug" to remove the `r` from the + start. +- Click the "Active" slider to turn that on, then "Update version". +- Wait for the documentation to be built, and check the result. + +---- + ### Publish the Release -These stages don't have to happen in this particular order. +The steps below don't have to happen in this particular order. #### A. Publish to epics.anl.gov @@ -333,14 +353,14 @@ updating the front page and sidebar. Add an entry to the website News page, linking to the new version webpage. -### B. Publish to epics-controls.org +#### B. Publish to epics-controls.org **Website Editor:** Upload the tar file and its `.asc` signature file to the epics-controls web-server. ``` -scp base-7.0.11.tar.gz base-7.0.11.tar.gz.asc epics-controls:download/base +scp base-7.0.12.tar.gz base-7.0.12.tar.gz.asc epics-controls:download/base ``` **Website Editor:** @@ -355,11 +375,11 @@ Not covered in the instructions on the website: Go to Posts, find a previous release and use "Duplicate Post", then edit the result and publish it. This generates the News item. -### C. Publish to GitHub +#### C. Publish to GitHub **Release Manager:** Go to the GitHub -[Create release from tag R7.0.11](https://github.com/epics-base/epics-base/releases/new?tag=R7.0.11) +[Create release from tag R7.0.12](https://github.com/epics-base/epics-base/releases/new?tag=R7.0.12) page. Upload the tar file and its `.asc` signature file to the new GitHub release page, or just drag-n-drop them into the page. Copy/paste the text from the previous release and edit. Submit. diff --git a/documentation/new-notes/PR-359.md b/documentation/new-notes/PR-359.md deleted file mode 100644 index 266823c07..000000000 --- a/documentation/new-notes/PR-359.md +++ /dev/null @@ -1,11 +0,0 @@ -### Fix undefined timestamp for NORD field - -When monitoring non-val fields such as `NORD` for several record types updates -are not sent out correctly resulting in incorrect timestamps. This fixes this -for the record types `aai`, `aao`, `subArray`. - -Note that support modules that already implement this in the device support -layer will need to be updated to avoid doubled monitor updates. If those modules -are to be built against older versions of EPICS base then they will need to use -the defined macros `AAO_POSTS_NORD`, `AAI_POSTS_NORD`, `SA_POSTS_NORD`, or -`WF_POSTS_NORD` as appropriate to detect this change. diff --git a/documentation/new-notes/PR-768.md b/documentation/new-notes/PR-768.md deleted file mode 100644 index 7815ee52b..000000000 --- a/documentation/new-notes/PR-768.md +++ /dev/null @@ -1,8 +0,0 @@ -### iocInit wait for local CA links to connect - -PR [768](https://github.com/epics-base/epics-base/pull/768) - -During iocInit(), wait for local CA links to connect. -With this change, database authors can be certain that -any local CA link is connected prior to `initHookAfterIocRunning` -and `field(PINI, RUNNING)`. diff --git a/documentation/new-notes/PR-788.md b/documentation/new-notes/PR-788.md deleted file mode 100644 index d5b83c296..000000000 --- a/documentation/new-notes/PR-788.md +++ /dev/null @@ -1,21 +0,0 @@ -### epicsThreadGetCPUs and callbackParallelThreads - -On systems that support it (e.g. recent Linux systems), `epicsThreadGetCPUs()` -now takes the current cpu affinity mask of the calling thread into acount. -That fixes the problem that an IOC which was started with a limited affinity -mask (e.g. using `taskset`) and that called `callbackParallelThreads` with an -argument of 0 in the startup script, had started more parallel callback -threads than it has CPU cores available. - -The iocsh function `callbackParallelThreads` now also accepts positive or -negative percentages for `count`, referring to the availabple number of cores -and always rounding the number of used cores down with a minimum of 1. - -#### Examples - -```text -# use up to 25% of available cpu cores for callback threads -callbackParallelThreads 25% -# keep at least 10% of available cpu cores unused for callback threads -callbackParallelThreads -10% -``` diff --git a/documentation/new-notes/PR-930.md b/documentation/new-notes/PR-930.md new file mode 100644 index 000000000..55cd68713 --- /dev/null +++ b/documentation/new-notes/PR-930.md @@ -0,0 +1,15 @@ +### Hardening of the iocsh command `dbReportDeviceConfig` + +This command had a tiny chance that its internal buffers could overflow and +write over parts of the stack, although that required an unusually long device +support name and huge engineering unit limits. Both these issues have been +remediated, and the output format of the report improved. + +A header line is now shown (in BOLD) at the top of the report. + +`DTYP` strings in the 3rd column are now shortened by replacing characters from +the middle of the string with an ellipsis `...`. + +Any ai and ao records with `LINEAR` conversions have their `EGUL` and `EGUF` +fields shown in a `cvt(EGUL, EGUF)` format after the record name. +These two values are now displayed with limited precision. diff --git a/modules/ca/src/perl/Makefile b/modules/ca/src/perl/Makefile index 77130d5b5..7914e5856 100644 --- a/modules/ca/src/perl/Makefile +++ b/modules/ca/src/perl/Makefile @@ -81,5 +81,5 @@ ifdef T_A $(INSTALL_PERL_MODULES)/$(PERL_ARCHPATH)/%: % $(ECHO) "Installing loadable shared library $@" - @$(INSTALL_LIBRARY) -d -m $(LIB_PERMISSIONS) $< $(INSTALL_PERL_MODULES)/$(PERL_ARCHPATH) + $(INSTALL_LIBRARY) -d -m $(LIB_PERMISSIONS) $< $(INSTALL_PERL_MODULES)/$(PERL_ARCHPATH) endif diff --git a/modules/database/src/ioc/db/RULES b/modules/database/src/ioc/db/RULES index 842596aa8..0c2c35a74 100644 --- a/modules/database/src/ioc/db/RULES +++ b/modules/database/src/ioc/db/RULES @@ -15,16 +15,16 @@ THESE_RULES := $(IOCDIR)/db/RULES dbCommon.h$(DEP): $(COMMON_DIR)/dbCommonRecord.dbd $(THESE_RULES) \ $(DBDTORECTYPEH_dep) - @$(DBTORECORDTYPEH) -D -I ../db -I $(COMMON_DIR) -o $(COMMONDEP_TARGET) $< > $@.stdout + $(DBTORECORDTYPEH) -D -I ../db -I $(COMMON_DIR) -o $(COMMONDEP_TARGET) $< > $@.stdout $(MV) $@.stdout $@ $(COMMON_DIR)/dbCommonRecord.html: ../db/dbCommon.dbd.pod $(COMMON_DIR)/dbCommon.h: $(COMMON_DIR)/dbCommonRecord.dbd $(THESE_RULES) \ $(DBDTORECTYPEH_dep) - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(DBTORECORDTYPEH) -I ../db -I $(COMMON_DIR) -o $(notdir $@) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ $(COMMON_DIR)/menuGlobal.dbd: $(IOCDIR)/db/Makefile $(THESE_RULES) diff --git a/modules/database/src/ioc/dbStatic/dbStaticLib.c b/modules/database/src/ioc/dbStatic/dbStaticLib.c index 73d627a78..84dca89c9 100644 --- a/modules/database/src/ioc/dbStatic/dbStaticLib.c +++ b/modules/database/src/ioc/dbStatic/dbStaticLib.c @@ -22,6 +22,7 @@ #include "dbDefs.h" #include "dbmf.h" #include "ellLib.h" +#include "epicsMath.h" #include "epicsPrint.h" #include "epicsStdio.h" #include "epicsStdlib.h" @@ -3591,11 +3592,12 @@ void dbReportDeviceConfig(dbBase *pdbbase, FILE *report) status = dbFirstRecord(pdbentry); while (!status) { int ilink; + int titlesPrinted = 0; for (ilink=0; ilink maxlen) /* elide the middle */ + epicsSnprintf(dtypValue, sizeof(dtypValue), "%.*s...%s", + (int) (maxlen - 3) / 2, dtyp, + dtyp + srclen - (maxlen - 2) / 2); + else + strcpy(dtypValue, dtyp); } - else { - if (strcmp(dbGetString(pdbentry), "LINEAR") != 0) { - cvtValue[0] = 0; - } - else { - strcpy(cvtValue,"cvt("); - status = dbFindField(pdbentry, "EGUL"); - if (!status) - strcat(cvtValue, dbGetString(pdbentry)); - status = dbFindField(pdbentry, "EGUF"); - if (!status) { - strcat(cvtValue, ","); - strcat(cvtValue, dbGetString(pdbentry)); - } - strcat(cvtValue, ")"); - } + if (!dbFindField(pdbentry, "LINR") && + strcmp(dbGetString(pdbentry), "LINEAR") == 0) { + epicsFloat64 egul = epicsNAN, eguf = epicsNAN; + + if (!dbFindField(pdbentry, "EGUL") && + pdbentry->pflddes->field_type == DBF_DOUBLE) + egul = *(epicsFloat64 *) pdbentry->pfield; + if (!dbFindField(pdbentry, "EGUF") && + pdbentry->pflddes->field_type == DBF_DOUBLE) + eguf = *(epicsFloat64 *) pdbentry->pfield; + epicsSnprintf(cvtValue, sizeof(cvtValue), + "\n cvt(%.8g, %.8g)", egul, eguf); } - fprintf(stream,"%-8s %-20s %-20s %-20s %-s\n", + if (!titlesPrinted++) + fprintf(stream, ANSI_BOLD("%-8s %-20s %-30s %-20s") "\n", + "Type", "INP/OUT", "DTYP", "Record"); + fprintf(stream,"%-8s %-20s %-30s %s %s\n", bus[linkType], linkValue, dtypValue, dbGetRecordName(pdbentry), cvtValue); break; diff --git a/modules/database/src/ioc/dbStatic/dbYacc.y b/modules/database/src/ioc/dbStatic/dbYacc.y index aad7ca33d..1dbbdae46 100644 --- a/modules/database/src/ioc/dbStatic/dbYacc.y +++ b/modules/database/src/ioc/dbStatic/dbYacc.y @@ -378,7 +378,7 @@ static int yyerror(char *str) dbIncludePrint(); yyFailed = TRUE; } - fprintf(stderr, "\n %d | %s\n", pinputFileNow->line_num, my_buffer); + fprintf(stderr, "\n %d | %s\n", pinputFileNow ? pinputFileNow->line_num : -1, my_buffer); return(0); } static long pvt_yy_parse(void) diff --git a/modules/database/src/std/rec/RULES b/modules/database/src/std/rec/RULES index dc1a61960..ea470a139 100644 --- a/modules/database/src/std/rec/RULES +++ b/modules/database/src/std/rec/RULES @@ -8,7 +8,7 @@ # This is a Makefile fragment, see src/ioc/Makefile. stdRecords.dbd$(DEP): $(STDDIR)/rec/Makefile $(STDDIR)/rec/RULES - @echo "$(COMMON_DIR)/stdRecords.dbd:" > $@.stdout + echo "$(COMMON_DIR)/stdRecords.dbd:" > $@.stdout $(MV) $@.stdout $@ $(COMMON_DIR)/stdRecords.dbd: $(STDDIR)/rec/Makefile $(STDDIR)/rec/RULES diff --git a/modules/database/src/std/rec/biRecord.c b/modules/database/src/std/rec/biRecord.c index 932e84541..3f9b2821c 100644 --- a/modules/database/src/std/rec/biRecord.c +++ b/modules/database/src/std/rec/biRecord.c @@ -23,6 +23,7 @@ #include "dbDefs.h" #include "epicsPrint.h" +#include "epicsMath.h" #include "alarm.h" #include "callback.h" #include "dbAccess.h" @@ -40,6 +41,9 @@ #undef GEN_SIZE_OFFSET #include "epicsExport.h" +/* Hysteresis for alarm filtering: 1-1/e */ +#define THRESHOLD 0.6321 + /* Create RSET - Record Support Entry Table*/ #define report NULL #define initialize NULL @@ -80,7 +84,7 @@ rset biRSET={ }; epicsExportAddress(rset,biRSET); -static void checkAlarms(biRecord *); +static void checkAlarms(biRecord *, epicsTimeStamp *); static void monitor(biRecord *); static long readValue(biRecord *); @@ -119,6 +123,7 @@ static long process(struct dbCommon *pcommon) bidset *pdset = (bidset *)(prec->dset); long status; unsigned char pact=prec->pact; + epicsTimeStamp timeLast; if( (pdset==NULL) || (pdset->read_bi==NULL) ) { prec->pact=TRUE; @@ -126,6 +131,8 @@ static long process(struct dbCommon *pcommon) return(S_dev_missingSup); } + timeLast = prec->time; + status=readValue(prec); /* read the new value */ /* check if device support set pact */ if ( !pact && prec->pact ) return(0); @@ -140,7 +147,7 @@ static long process(struct dbCommon *pcommon) } else if(status==2) status=0; /* check for alarms */ - checkAlarms(prec); + checkAlarms(prec, &timeLast); /* check event list */ monitor(prec); /* process the forward scan link record */ @@ -222,27 +229,52 @@ static long put_enum_str(const DBADDR *paddr, const char *pstring) } -static void checkAlarms(biRecord *prec) +static void checkAlarms(biRecord *prec, epicsTimeStamp *timeLast) { + epicsEnum16 asev; unsigned short val = prec->val; - if(prec->udf == TRUE){ recGblSetSevr(prec,UDF_ALARM,prec->udfs); return; } if(val>1)return; - /* check for state alarm */ - if (val == 0){ - recGblSetSevr(prec,STATE_ALARM,prec->zsv); - }else{ - recGblSetSevr(prec,STATE_ALARM,prec->osv); + + if (val == 0) { + asev = prec->zsv; + } else { + asev = prec->osv; } - /* check for cos alarm */ + unsigned short alarm = asev; /* Initialize alarm with current state severity */ + double aftc = prec->aftc; + double afvl = 0; + + if (aftc > 0) { + afvl = prec->afvl; + if (afvl == 0) { + afvl = (double) alarm; + } else { + double t = epicsTimeDiffInSeconds(&prec->time, timeLast); + double alpha = aftc / (t + aftc); + + afvl = alpha * afvl + + ((afvl > 0) ? (1.0 - alpha) : (alpha - 1.0)) * alarm; + if (afvl - floor(afvl) > THRESHOLD) + afvl = -afvl; + + alarm = abs((int)floor(afvl)); + } + } + prec->afvl = afvl; + + asev = alarm; + recGblSetSevr(prec,STATE_ALARM,asev); + + /* check for cos alarm */ if(val == prec->lalm) return; - recGblSetSevr(prec,COS_ALARM,prec->cosv); + recGblSetSevr(prec,COS_ALARM,prec->cosv); prec->lalm = val; return; } diff --git a/modules/database/src/std/rec/biRecord.dbd.pod b/modules/database/src/std/rec/biRecord.dbd.pod index 2b772b5e3..bd9b35616 100644 --- a/modules/database/src/std/rec/biRecord.dbd.pod +++ b/modules/database/src/std/rec/biRecord.dbd.pod @@ -107,13 +107,20 @@ C. The ZSV field holds the severity for the zero state; OSV, for the one state. COSV causes an alarm whenever the state changes between 0 and 1 and the severity is configured as MINOR or MAJOR. +Since 7.0.11, the alarm filter time constant (AFTC) is available for the bi record. +The AFTC field sets the time constant on a low-pass filter that delays the +reporting of limit alarms until the signal has been within the alarm range for +that number of seconds (the default AFTC value of zero retains the previous +behavior). Be sure that the bi record is processed at a reasonably fast rate +when using AFTC, so that the record can respond to changes in the input signal +within the time constant. + See L for a complete explanation of record alarms and of the standard fields. L lists other fields related to alarms that are common to all record types. -=fields ZSV, OSV, COSV - +=fields ZSV, OSV, COSV, AFTC =head3 Run-time Parameters These parameters are used by the run-time code for processing the binary @@ -220,6 +227,16 @@ is not equal to VAL. special(SPC_NOMOD) interest(3) } + field(AFTC, DBF_DOUBLE) { + prompt("Alarm Filter Time Constant") + promptgroup("70 - Alarm") + interest(1) + } + field(AFVL, DBF_DOUBLE) { + prompt("Alarm Filter Value") + special(SPC_NOMOD) + interest(3) + } =head3 Simulation Mode Parameters diff --git a/modules/database/src/std/rec/mbbiRecord.c b/modules/database/src/std/rec/mbbiRecord.c index 018c861c1..141c6692d 100644 --- a/modules/database/src/std/rec/mbbiRecord.c +++ b/modules/database/src/std/rec/mbbiRecord.c @@ -336,15 +336,15 @@ static void checkAlarms(mbbiRecord *prec, epicsTimeStamp *timeLast) alarm = abs((int)floor(afvl)); } } + prec->afvl = afvl; asev = alarm; recGblSetSevr(prec, STATE_ALARM, asev); /* Check for COS alarm */ - if (val == prec->lalm || - recGblSetSevr(prec, COS_ALARM, prec->cosv)) + if (val == prec->lalm) return; - + recGblSetSevr(prec, COS_ALARM, prec->cosv); prec->lalm = val; } diff --git a/modules/database/src/tools/Makefile b/modules/database/src/tools/Makefile index 84229dca8..5bb781238 100644 --- a/modules/database/src/tools/Makefile +++ b/modules/database/src/tools/Makefile @@ -60,5 +60,5 @@ CLEANS += epics-base-$(T_A).pc@ include $(TOP)/configure/RULES epics-base-$(T_A).pc@: ../epics-base-arch.pc@ - @$(RM) $@ - @$(CP) $< $@ + $(RM) $@ + $(CP) $< $@ diff --git a/modules/database/test/std/rec/Makefile b/modules/database/test/std/rec/Makefile index 504bc3648..56a5d5030 100644 --- a/modules/database/test/std/rec/Makefile +++ b/modules/database/test/std/rec/Makefile @@ -202,6 +202,13 @@ testHarness_SRCS += simmTest_registerRecordDeviceDriver.cpp TESTFILES += $(COMMON_DIR)/simmTest.dbd $(COMMON_DIR)/simmTest.db TESTS += simmTest +TESTPROD_HOST += mbbiTest +mbbiTest_SRCS += mbbiTest.c +mbbiTest_SRCS += recTestIoc_registerRecordDeviceDriver.cpp +testHarness_SRCS += mbbiTest.c +TESTFILES += ../mbbiTest.db +TESTS += mbbiTest + TESTPROD_HOST += mbbioDirectTest mbbioDirectTest_SRCS += mbbioDirectTest.c mbbioDirectTest_SRCS += recTestIoc_registerRecordDeviceDriver.cpp diff --git a/modules/database/test/std/rec/biTest.c b/modules/database/test/std/rec/biTest.c index ff7c975ce..c4861e6f6 100644 --- a/modules/database/test/std/rec/biTest.c +++ b/modules/database/test/std/rec/biTest.c @@ -9,6 +9,7 @@ #include "errlog.h" #include "dbAccess.h" #include "menuAlarmSevr.h" +#include "menuScan.h" void recTestIoc_registerRecordDeviceDriver(struct dbBase *); @@ -96,9 +97,71 @@ static void test_alarm(void){ // number of tests = 13 } +static void test_aftc(void){ + const double aftc = 3.0; + testMonitor* test_mon = NULL; + epicsTimeStamp startTime; + epicsTimeStamp endTime; + double diffTime = 0; + + /* set soft channel */ + testdbPutFieldOk("test_bi_rec2.DTYP", DBF_STRING, "Soft Channel"); + testdbPutFieldOk("test_bi_rec2.INP", DBF_STRING, "test_bi_link_rec2.VAL"); + testdbPutFieldOk("test_bi_link_rec2.FLNK", DBF_STRING, "test_bi_rec2"); + + /* set alarm parameters */ + testdbPutFieldOk("test_bi_rec2.ZSV", DBF_SHORT, menuAlarmSevrMINOR); + testdbPutFieldOk("test_bi_rec2.OSV", DBF_SHORT, menuAlarmSevrMAJOR); + + /* set start VAL to FALSE (NO_ALARM) */ + testdbPutFieldOk("test_bi_link_rec2.VAL", DBF_SHORT, FALSE); + + /* test AFTC using a monitor and time stamps */ + testdbPutFieldOk("test_bi_rec2.AFTC", DBF_DOUBLE, aftc); + testdbPutFieldOk("test_bi_rec2.SCAN", DBF_SHORT, menuScan_1_second); + + /* set VAL to TRUE (MAJOR alarm) */ + testdbPutFieldOk("test_bi_link_rec2.VAL", DBF_SHORT, TRUE); + + /* Create test monitor for alarm SEVR */ + test_mon = testMonitorCreate("test_bi_rec2.VAL", DBE_ALARM, 0); + + /* Get start time */ + epicsTimeGetCurrent(&startTime); + + /* wait for monitor to trigger on the new alarm status */ + testMonitorWait(test_mon); + epicsTimeGetCurrent(&endTime); + + /* Verify that alarm status is now MAJOR */ + testdbGetFieldEqual("test_bi_rec2.SEVR", DBF_SHORT, menuAlarmSevrMAJOR); + + /* set VAL back to FALSE (NO_ALARM) */ + testdbPutFieldOk("test_bi_link_rec2.VAL", DBF_SHORT, FALSE); + + /* Create test monitor for alarm SEVR */ + test_mon = testMonitorCreate("test_bi_rec2.VAL", DBE_ALARM, 0); + + /* Get start time */ + epicsTimeGetCurrent(&startTime); + + /* wait for monitor to trigger on the new alarm status */ + testMonitorWait(test_mon); + epicsTimeGetCurrent(&endTime); + + /* Verify that alarm status is now NO_ALARM */ + testdbGetFieldEqual("test_bi_rec2.SEVR", DBF_SHORT, menuAlarmSevrMINOR); + + /* Verify that time is at least equal to configured aftc */ + diffTime = epicsTimeDiffInSeconds(&endTime, &startTime); + testOk(diffTime >= aftc, "AFTC time %lf", diffTime); + + // number of tests = 13 +} + MAIN(biTest) { - testPlan(6+6+11+13); + testPlan(6+6+11+13+13); testdbPrepare(); testdbReadDatabase("recTestIoc.dbd", NULL, NULL); @@ -114,6 +177,7 @@ MAIN(biTest) { test_raw_soft_input(); test_operator_display(); test_alarm(); + test_aftc(); testIocShutdownOk(); testdbCleanup(); diff --git a/modules/database/test/std/rec/biTest.db b/modules/database/test/std/rec/biTest.db index 4304cce91..4877c90d2 100644 --- a/modules/database/test/std/rec/biTest.db +++ b/modules/database/test/std/rec/biTest.db @@ -4,3 +4,10 @@ record(bi, "test_bi_rec") { record(bo, "test_bi_link_rec") { } + +record(bi, "test_bi_rec2") { +} + +record(bo, "test_bi_link_rec2") { + +} diff --git a/modules/database/test/std/rec/mbbiTest.c b/modules/database/test/std/rec/mbbiTest.c new file mode 100644 index 000000000..6f5889737 --- /dev/null +++ b/modules/database/test/std/rec/mbbiTest.c @@ -0,0 +1,201 @@ +/*************************************************************************\ +* Copyright (c) 2026 Edmund Blomley +* EPICS BASE is distributed subject to a Software License Agreement found +* in file LICENSE that is included with this distribution. +\*************************************************************************/ + +#include "dbUnitTest.h" +#include "testMain.h" +#include "errlog.h" +#include "dbAccess.h" +#include "menuAlarmSevr.h" +#include "menuScan.h" + +void recTestIoc_registerRecordDeviceDriver(struct dbBase *); + +static void test_soft_input(void){ + /* set soft channel */ + testdbPutFieldOk("test_mbbi_rec.DTYP", DBF_STRING, "Soft Channel"); + testdbPutFieldOk("test_mbbi_rec.INP", DBF_STRING, "test_mbbi_link_rec.VAL"); + testdbPutFieldOk("test_mbbi_link_rec.FLNK", DBF_STRING, "test_mbbi_rec"); + + /* set VAL to on linked record */ + testdbPutFieldOk("test_mbbi_link_rec.VAL", DBF_SHORT, 1); + + /* verify that this record VAL is updated but RVAL is not */ + testdbGetFieldEqual("test_mbbi_rec.VAL", DBF_SHORT, 1); + testdbGetFieldEqual("test_mbbi_rec.RVAL", DBF_SHORT, 0); + + // number of tests = 6 +} + +static void test_operator_display(void){ + /* set operator display parameters */ + testdbPutFieldOk("test_mbbi_rec.ZRST", DBF_STRING, "ZRST_TEST"); + testdbPutFieldOk("test_mbbi_rec.ONST", DBF_STRING, "ONST_TEST"); + testdbPutFieldOk("test_mbbi_rec.TWST", DBF_STRING, "TWST_TEST"); + testdbPutFieldOk("test_mbbi_rec.THST", DBF_STRING, "THST_TEST"); + testdbPutFieldOk("test_mbbi_rec.FRST", DBF_STRING, "FRST_TEST"); + testdbPutFieldOk("test_mbbi_rec.FVST", DBF_STRING, "FVST_TEST"); + testdbPutFieldOk("test_mbbi_rec.SXST", DBF_STRING, "SXST_TEST"); + testdbPutFieldOk("test_mbbi_rec.SVST", DBF_STRING, "SVST_TEST"); + testdbPutFieldOk("test_mbbi_rec.EIST", DBF_STRING, "EIST_TEST"); + testdbPutFieldOk("test_mbbi_rec.NIST", DBF_STRING, "NIST_TEST"); + testdbPutFieldOk("test_mbbi_rec.TEST", DBF_STRING, "TEST_TEST"); + testdbPutFieldOk("test_mbbi_rec.ELST", DBF_STRING, "ELST_TEST"); + testdbPutFieldOk("test_mbbi_rec.TVST", DBF_STRING, "TVST_TEST"); + testdbPutFieldOk("test_mbbi_rec.TTST", DBF_STRING, "TTST_TEST"); + testdbPutFieldOk("test_mbbi_rec.FTST", DBF_STRING, "FTST_TEST"); + testdbPutFieldOk("test_mbbi_rec.FFST", DBF_STRING, "FFST_TEST"); + testdbPutFieldOk("test_mbbi_rec.DESC", DBF_STRING, "DESC_TEST"); + + /* verify operator display parameters */ + testdbGetFieldEqual("test_mbbi_rec.ZRST", DBF_STRING, "ZRST_TEST"); + testdbGetFieldEqual("test_mbbi_rec.ONST", DBF_STRING, "ONST_TEST"); + testdbGetFieldEqual("test_mbbi_rec.TWST", DBF_STRING, "TWST_TEST"); + testdbGetFieldEqual("test_mbbi_rec.THST", DBF_STRING, "THST_TEST"); + testdbGetFieldEqual("test_mbbi_rec.FRST", DBF_STRING, "FRST_TEST"); + testdbGetFieldEqual("test_mbbi_rec.FVST", DBF_STRING, "FVST_TEST"); + testdbGetFieldEqual("test_mbbi_rec.SXST", DBF_STRING, "SXST_TEST"); + testdbGetFieldEqual("test_mbbi_rec.SVST", DBF_STRING, "SVST_TEST"); + testdbGetFieldEqual("test_mbbi_rec.EIST", DBF_STRING, "EIST_TEST"); + testdbGetFieldEqual("test_mbbi_rec.NIST", DBF_STRING, "NIST_TEST"); + testdbGetFieldEqual("test_mbbi_rec.TEST", DBF_STRING, "TEST_TEST"); + testdbGetFieldEqual("test_mbbi_rec.ELST", DBF_STRING, "ELST_TEST"); + testdbGetFieldEqual("test_mbbi_rec.TVST", DBF_STRING, "TVST_TEST"); + testdbGetFieldEqual("test_mbbi_rec.TTST", DBF_STRING, "TTST_TEST"); + testdbGetFieldEqual("test_mbbi_rec.FTST", DBF_STRING, "FTST_TEST"); + testdbGetFieldEqual("test_mbbi_rec.FFST", DBF_STRING, "FFST_TEST"); + testdbGetFieldEqual("test_mbbi_rec.NAME", DBF_STRING, "test_mbbi_rec"); + testdbGetFieldEqual("test_mbbi_rec.DESC", DBF_STRING, "DESC_TEST"); + + /* verify conversion */ + testdbPutFieldOk("test_mbbi_link_rec.VAL", DBF_SHORT, 1); + testdbGetFieldEqual("test_mbbi_rec.VAL", DBF_STRING, "ONST_TEST"); + testdbPutFieldOk("test_mbbi_link_rec.VAL", DBF_SHORT, 0); + testdbGetFieldEqual("test_mbbi_rec.VAL", DBF_STRING, "ZRST_TEST"); + + // number of tests = 39 +} + +static void test_alarm(void){ + /* set soft channel */ + testdbPutFieldOk("test_mbbi_rec.DTYP", DBF_STRING, "Soft Channel"); + testdbPutFieldOk("test_mbbi_rec.INP", DBF_STRING, "test_mbbi_link_rec.VAL"); + testdbPutFieldOk("test_mbbi_link_rec.FLNK", DBF_STRING, "test_mbbi_rec"); + testdbPutFieldOk("test_mbbi_rec.ZRST", DBF_STRING, "ZRST_TEST"); + testdbPutFieldOk("test_mbbi_rec.ONST", DBF_STRING, "ONST_TEST"); + testdbPutFieldOk("test_mbbi_rec.ZRVL", DBF_STRING, "0"); + testdbPutFieldOk("test_mbbi_rec.ONVL", DBF_STRING, "1"); + + /* set start VAL to 0*/ + testdbPutFieldOk("test_mbbi_link_rec.VAL", DBF_SHORT, 0); + + /* set alarm parameters */ + testdbPutFieldOk("test_mbbi_rec.ZRSV", DBF_SHORT, menuAlarmSevrNO_ALARM); + testdbPutFieldOk("test_mbbi_rec.ONSV", DBF_SHORT, menuAlarmSevrMINOR); + testdbPutFieldOk("test_mbbi_rec.COSV", DBF_SHORT, menuAlarmSevrINVALID); + + /* verify alarm status is NO_ALARM*/ + testdbGetFieldEqual("test_mbbi_rec.SEVR", DBF_SHORT, menuAlarmSevrNO_ALARM); + + /* set ZRSV to MAJOR and verify that SEVR is now MAJOR */ + testdbPutFieldOk("test_mbbi_rec.ZRSV", DBF_SHORT, menuAlarmSevrMAJOR); + testdbGetFieldEqual("test_mbbi_rec.SEVR", DBF_SHORT, menuAlarmSevrMAJOR); + + /* set VAL to 1 on linked record and verify that COSV now sets the SEVR to INVALID */ + testdbPutFieldOk("test_mbbi_link_rec.VAL", DBF_SHORT, 1); + testdbGetFieldEqual("test_mbbi_rec.SEVR", DBF_SHORT, menuAlarmSevrINVALID); + + /* verify LAML */ + testdbGetFieldEqual("test_mbbi_rec.LALM", DBF_SHORT, 1); + + // number of tests = 17 +} + +static void test_aftc(void){ + const double aftc = 3.0; + testMonitor* test_mon = NULL; + epicsTimeStamp startTime; + epicsTimeStamp endTime; + double diffTime = 0; + + /* set soft channel */ + testdbPutFieldOk("test_mbbi_rec2.DTYP", DBF_STRING, "Soft Channel"); + testdbPutFieldOk("test_mbbi_rec2.INP", DBF_STRING, "test_mbbi_link_rec2.VAL"); + testdbPutFieldOk("test_mbbi_link_rec2.FLNK", DBF_STRING, "test_mbbi_rec2"); + + /* set alarm parameters */ + testdbPutFieldOk("test_mbbi_rec2.ZRSV", DBF_SHORT, menuAlarmSevrMINOR); + testdbPutFieldOk("test_mbbi_rec2.ONSV", DBF_SHORT, menuAlarmSevrMAJOR); + + /* set start VAL to FALSE (NO_ALARM) */ + testdbPutFieldOk("test_mbbi_link_rec2.VAL", DBF_SHORT, FALSE); + + /* test AFTC using a monitor and time stamps */ + testdbPutFieldOk("test_mbbi_rec2.AFTC", DBF_DOUBLE, aftc); + testdbPutFieldOk("test_mbbi_rec2.SCAN", DBF_SHORT, menuScan_1_second); + + /* set VAL to TRUE (MAJOR alarm) */ + testdbPutFieldOk("test_mbbi_link_rec2.VAL", DBF_SHORT, TRUE); + + /* Create test monitor for alarm SEVR */ + test_mon = testMonitorCreate("test_mbbi_rec2.VAL", DBE_ALARM, 0); + + /* Get start time */ + epicsTimeGetCurrent(&startTime); + + /* wait for monitor to trigger on the new alarm status */ + testMonitorWait(test_mon); + epicsTimeGetCurrent(&endTime); + + /* Verify that alarm status is now MAJOR */ + testdbGetFieldEqual("test_mbbi_rec2.SEVR", DBF_SHORT, menuAlarmSevrMAJOR); + + /* set VAL back to FALSE (NO_ALARM) */ + testdbPutFieldOk("test_mbbi_link_rec2.VAL", DBF_SHORT, FALSE); + + /* Create test monitor for alarm SEVR */ + test_mon = testMonitorCreate("test_mbbi_rec2.VAL", DBE_ALARM, 0); + + /* Get start time */ + epicsTimeGetCurrent(&startTime); + + /* wait for monitor to trigger on the new alarm status */ + testMonitorWait(test_mon); + epicsTimeGetCurrent(&endTime); + + /* Verify that alarm status is now NO_ALARM */ + testdbGetFieldEqual("test_mbbi_rec2.SEVR", DBF_SHORT, menuAlarmSevrMINOR); + + /* Verify that time is at least equal to configured aftc */ + diffTime = epicsTimeDiffInSeconds(&endTime, &startTime); + testOk(diffTime >= aftc, "AFTC time %lf", diffTime); + + // number of tests = 13 +} + +MAIN(mbbiTest) { + + testPlan(6+39+17+13); + + testdbPrepare(); + testdbReadDatabase("recTestIoc.dbd", NULL, NULL); + recTestIoc_registerRecordDeviceDriver(pdbbase); + + testdbReadDatabase("mbbiTest.db", NULL, NULL); + + eltc(0); + testIocInitOk(); + eltc(1); + + test_soft_input(); + test_operator_display(); + test_alarm(); + test_aftc(); + + testIocShutdownOk(); + testdbCleanup(); + + return testDone(); +} diff --git a/modules/database/test/std/rec/mbbiTest.db b/modules/database/test/std/rec/mbbiTest.db new file mode 100644 index 000000000..106e99db8 --- /dev/null +++ b/modules/database/test/std/rec/mbbiTest.db @@ -0,0 +1,13 @@ +record(mbbi, "test_mbbi_rec") { +} + +record(longout, "test_mbbi_link_rec") { + +} + +record(mbbi, "test_mbbi_rec2") { +} + +record(longout, "test_mbbi_link_rec2") { + +} diff --git a/modules/libcom/RTEMS/posix/rtems_init.c b/modules/libcom/RTEMS/posix/rtems_init.c index a709f8915..526117da7 100644 --- a/modules/libcom/RTEMS/posix/rtems_init.c +++ b/modules/libcom/RTEMS/posix/rtems_init.c @@ -1251,8 +1251,13 @@ POSIX_Init ( void *argument __attribute__((unused))) printf ("***** Preparing EPICS application *****\n"); iocshRegisterRTEMS (); - set_directory (argv[1]); - epicsEnvSet ("IOC_STARTUP_SCRIPT", argv[1]); + /* No startup script when the application declares that it needs no + * filesystem (epicsRtemsFSImage == NULL). + */ + if (argv[1] != NULL) { + set_directory (argv[1]); + epicsEnvSet ("IOC_STARTUP_SCRIPT", argv[1]); + } atexit(exitHandler); printf ("***** Starting EPICS application *****\n"); @@ -1270,7 +1275,7 @@ POSIX_Init ( void *argument __attribute__((unused))) NULL); #endif - result = main ((sizeof argv / sizeof argv[0]) - 1, argv); + result = main (argv[1] != NULL ? 2 : 1, argv); printf ("***** IOC application terminating *****\n"); epicsThreadSleep(1.0); epicsExit(result); diff --git a/modules/libcom/RTEMS/score/rtems_config.c b/modules/libcom/RTEMS/score/rtems_config.c index 36b297176..c5b0c618f 100644 --- a/modules/libcom/RTEMS/score/rtems_config.c +++ b/modules/libcom/RTEMS/score/rtems_config.c @@ -37,7 +37,9 @@ #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM #define CONFIGURE_MAXIMUM_DRIVERS 8 +#ifndef CONFIGURE_MICROSECONDS_PER_TICK #define CONFIGURE_MICROSECONDS_PER_TICK 20000 +#endif #define CONFIGURE_INIT_TASK_PRIORITY 80 diff --git a/modules/libcom/RTEMS/score/rtems_init.c b/modules/libcom/RTEMS/score/rtems_init.c index 77e2e3368..6ab677b67 100644 --- a/modules/libcom/RTEMS/score/rtems_init.c +++ b/modules/libcom/RTEMS/score/rtems_init.c @@ -681,11 +681,16 @@ Init (rtems_task_argument ignored) */ printf ("***** Preparing EPICS application *****\n"); iocshRegisterRTEMS (); - set_directory (argv[1]); - epicsEnvSet ("IOC_STARTUP_SCRIPT", argv[1]); + /* No startup script when the application declares that it needs no + * filesystem (epicsRtemsFSImage == NULL). + */ + if (argv[1] != NULL) { + set_directory (argv[1]); + epicsEnvSet ("IOC_STARTUP_SCRIPT", argv[1]); + } atexit(exitHandler); printf ("***** Starting EPICS application *****\n"); - result = main ((sizeof argv / sizeof argv[0]) - 1, argv); + result = main (argv[1] != NULL ? 2 : 1, argv); printf ("***** IOC application terminating *****\n"); epicsThreadSleep(1.0); epicsExit(result); diff --git a/modules/libcom/src/error/errlog.h b/modules/libcom/src/error/errlog.h index a81c2a258..72e2238c3 100644 --- a/modules/libcom/src/error/errlog.h +++ b/modules/libcom/src/error/errlog.h @@ -210,7 +210,7 @@ LIBCOM_API int errlogSetConsole(FILE *stream); * \param bufsize The desired buffer size * \return 0 if successful, -1 if called from callback function * - * \since UNRELEASED the default buffer size is 2560. + * \since 7.0.11 the default buffer size is 2560. */ LIBCOM_API int errlogInit(int bufsize); @@ -222,7 +222,7 @@ LIBCOM_API int errlogInit(int bufsize); * \param maxMsgSize The desired max message size * \return 0 if successful, -1 if called from callback function * - * \since UNRELEASED It is possible to enlarge the error log buffer size after initialisation. + * \since 7.0.11 It is possible to enlarge the error log buffer size after initialisation. * The default buffer size is 2560 and the default maximum message size is 512. */ LIBCOM_API int errlogInit2(int bufsize, int maxMsgSize); diff --git a/modules/libcom/src/misc/RULES b/modules/libcom/src/misc/RULES index 2ba358675..832ef4f4f 100644 --- a/modules/libcom/src/misc/RULES +++ b/modules/libcom/src/misc/RULES @@ -13,6 +13,6 @@ MAKEVERSION_FLAGS += $(if $(EPICS_SITE_VERSION),-v "$(EPICS_SITE_VERSION)") $(COMMON_DIR)/epicsVersion.h: $(CONFIG)/CONFIG_BASE_VERSION \ $(CONFIG)/CONFIG_SITE $(MAKEVERSION) - @$(RM) $(notdir $@) + $(RM) $(notdir $@) $(PERL) $(MAKEVERSION) $(MAKEVERSION_FLAGS) $< - @$(MV) $(notdir $@) $@ + $(MV) $(notdir $@) $@ diff --git a/modules/libcom/src/misc/epicsString.h b/modules/libcom/src/misc/epicsString.h index 573efa692..ec97c4f68 100644 --- a/modules/libcom/src/misc/epicsString.h +++ b/modules/libcom/src/misc/epicsString.h @@ -121,7 +121,7 @@ LIBCOM_API char * epicsStrnDup(const char *s, size_t len); * \param n Length of string * \return Number of characters printed, or negative on error. * - * \since 7.0.8 until UNRELEASED, @code strlen(s) @endcode must be valid. + * \since 7.0.8 until 7.0.11, @code strlen(s) @endcode must be valid. */ LIBCOM_API int epicsStrPrintEscaped(FILE *fp, const char *s, size_t n); diff --git a/modules/libcom/src/osi/os/RTEMS-posix/devLibVMEOSD.c b/modules/libcom/src/osi/os/RTEMS-posix/devLibVMEOSD.c deleted file mode 100644 index 7cdcd7224..000000000 --- a/modules/libcom/src/osi/os/RTEMS-posix/devLibVMEOSD.c +++ /dev/null @@ -1,6 +0,0 @@ -#ifdef RTEMS_LEGACY_STACK -#include "os/RTEMS-score/devLibVMEOSD.c" -#else -#pragma message "\n VME Support requires the RTEMS Legacy stack\n" -#include "os/default/devLibVMEOSD.c" -#endif diff --git a/modules/libcom/src/osi/os/RTEMS-score/devLibVMEOSD.c b/modules/libcom/src/osi/os/RTEMS/devLibVMEOSD.c similarity index 97% rename from modules/libcom/src/osi/os/RTEMS-score/devLibVMEOSD.c rename to modules/libcom/src/osi/os/RTEMS/devLibVMEOSD.c index 83e6c3d0a..74d5557b3 100644 --- a/modules/libcom/src/osi/os/RTEMS-score/devLibVMEOSD.c +++ b/modules/libcom/src/osi/os/RTEMS/devLibVMEOSD.c @@ -93,12 +93,12 @@ static long rtemsDevWriteProbe (unsigned wordSize, volatile void *ptr, const voi static long rtemsDevConnectInterruptVME ( unsigned vectorNumber, - void (*pFunction)(), + void (*pFunction)(void *), void *parameter); static long rtemsDevDisconnectInterruptVME ( unsigned vectorNumber, - void (*pFunction)() + void (*pFunction)(void *) ); static long rtemsDevEnableInterruptLevelVME (unsigned level); @@ -140,7 +140,7 @@ rtemsDevInit(void) */ static long rtemsDevConnectInterruptVME ( unsigned vectorNumber, - void (*pFunction)(), + void (*pFunction)(void *), void *parameter) { int status; @@ -151,7 +151,7 @@ static long rtemsDevConnectInterruptVME ( } status = BSP_installVME_isr( vectorNumber, - pFunction, + (BSP_VME_ISR_t)pFunction, parameter); if (status) { return S_dev_vecInstlFail; @@ -173,10 +173,10 @@ static long rtemsDevConnectInterruptVME ( */ static long rtemsDevDisconnectInterruptVME ( unsigned vectorNumber, - void (*pFunction)() + void (*pFunction)(void *) ) { - void (*psub)(); + void (*psub)(void *); void *arg; int status; @@ -191,7 +191,7 @@ static long rtemsDevDisconnectInterruptVME ( status = BSP_removeVME_isr( vectorNumber, - psub, + (BSP_VME_ISR_t)psub, arg) || BSP_installVME_isr( vectorNumber, diff --git a/modules/libcom/test/epicsThreadTest.cpp b/modules/libcom/test/epicsThreadTest.cpp index 6d43e71dc..920d53af7 100644 --- a/modules/libcom/test/epicsThreadTest.cpp +++ b/modules/libcom/test/epicsThreadTest.cpp @@ -46,7 +46,6 @@ myThread::myThread(int arg,const char *name) : { argvalue = new int; *argvalue = arg; - thread.start(); } myThread::~myThread() {delete argvalue;} @@ -78,6 +77,8 @@ void testMyThread() if (i == 0) startPriority = myThreads[i]->thread.getPriority(); myThreads[i]->thread.setPriority(startPriority + i); + /* start after setPriority() to avoid racing with run() */ + myThreads[i]->thread.start(); } for (int i = 0; i < ntasks; i++) { diff --git a/modules/pvAccess b/modules/pvAccess index ea48b8558..d125c58e5 160000 --- a/modules/pvAccess +++ b/modules/pvAccess @@ -1 +1 @@ -Subproject commit ea48b855809fd9b6ad1caca61fdaa2327874ea72 +Subproject commit d125c58e5efae07652f4d2f4583b175815e47d67 diff --git a/modules/pvData b/modules/pvData index 8a5a6fcd2..d4277fbd2 160000 --- a/modules/pvData +++ b/modules/pvData @@ -1 +1 @@ -Subproject commit 8a5a6fcd27fee1bc4e17089911594a25c1814bd7 +Subproject commit d4277fbd2f7e881b817713a2678ab982d20e2864 diff --git a/modules/pva2pva b/modules/pva2pva index aba3490b3..3492a9fe1 160000 --- a/modules/pva2pva +++ b/modules/pva2pva @@ -1 +1 @@ -Subproject commit aba3490b3ddbb40f8acdb12ffb890c457761a6bc +Subproject commit 3492a9fe1563f82198453398697729c84c8ae34c diff --git a/src/template/ext/top/configure/RULES_IDL b/src/template/ext/top/configure/RULES_IDL index 0ee7693b0..29a1bdcbc 100644 --- a/src/template/ext/top/configure/RULES_IDL +++ b/src/template/ext/top/configure/RULES_IDL @@ -24,11 +24,11 @@ buildInstall : $(INSTALL_IDLS) $(INSTALL_IDL)/%: % @echo "Installing idl program $@" - @$(INSTALL_IDLFILE) -d -m 644 $< $(INSTALL_IDL) + $(INSTALL_IDLFILE) -d -m 644 $< $(INSTALL_IDL) $(INSTALL_IDL)/%: ../% @echo "Installing idl program $@" - @$(INSTALL_IDLFILE) -d -m 644 $< $(INSTALL_IDL) + $(INSTALL_IDLFILE) -d -m 644 $< $(INSTALL_IDL) endif endif diff --git a/src/template/ext/top/configure/RULES_JAVA b/src/template/ext/top/configure/RULES_JAVA index 88d397917..52b65f07d 100644 --- a/src/template/ext/top/configure/RULES_JAVA +++ b/src/template/ext/top/configure/RULES_JAVA @@ -98,9 +98,9 @@ buildInstall : $(INSTALL_JAR) $(INSTALL_JAVADOC) #This clean works only from O.* dirs. buildclean: - @$(RMDIR) $(INSTALL_CLASSES) $(PACKAGEDIRS) - @$(RM) $(INSTALL_JAR) $(INSTALL_JAVADOC) - @$(RM) $(COMMON_TESTCLASSES) $(COMMON_JAVAINC) + $(RMDIR) $(INSTALL_CLASSES) $(PACKAGEDIRS) + $(RM) $(INSTALL_JAR) $(INSTALL_JAVADOC) + $(RM) $(COMMON_TESTCLASSES) $(COMMON_JAVAINC) ifdef JAVA_DIRECTORY_TARGETS $(JAVA_DIRECTORY_TARGETS): @@ -109,40 +109,40 @@ endif $(COMMON_JAVAINC):$(JAVAINC_CLASSFILES) $(ECHO) Creating header files $(COMMON_JAVAINC) - @$(RM) $@ + $(RM) $@ $(JAVAHCMD) $(JAVAINC_CLASSNAMES) $(COMMON_TESTCLASSES): $(addprefix ../,$(DEPTESTJAVA)) $(ECHO) Creating test java class files $(COMMON_TESTCLASSES) - @$(RM) $@ + $(RM) $@ $(JAVACCMD) -d $(COMMON_DIR) $^ $(INSTALL_CLASSES): $(addprefix ../,$(JAVA)) $(ECHO) Creating java class files - @$(RM) $@ + $(RM) $@ $(JAVACCMD) -d $(INSTALL_JAVA) $^ $(INSTALL_JAVADOC): $(addprefix ../,$(JAVA)) $(ECHO) Creating java doc files - @$(RM) $@ + $(RM) $@ $(JAVADOCCMD) -d $(addprefix $(INSTALL_HTML)/,$(JAVADOC)) $^ $(COMMON_DIR)/%.jar: $(JARDEPFILES) $(ECHO) Creating java jar file $@ - @$(RM) $@ + $(RM) $@ $(JARCMD) $(INSTALL_JAVA)/%.jar: $(COMMON_DIR)/%.jar $(ECHO) "Installing java jar file $@" - @$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) + $(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) $(INSTALL_JAVA)/%.jar: %.jar $(ECHO) "Installing java jar file $@" - @$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) + $(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) $(addprefix $(INSTALL_JAVA)/, $(JARINPUT)): $(INSTALL_JAVA)/%: ../% $(ECHO) "Installing jar input file $@" - @$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) + $(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) .PHONY: all install buildInstall rebuild clean build inc