Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3.6 #14

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

V3.6 #14

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions caPutLogApp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ caPutLog_SRCS += caPutLogClient.c
caPutLog_SRCS += caPutLog.c
caPutLog_SRCS += caPutLogShellCommands.c

caPutLog_LIBS += $(EPICS_BASE_IOC_LIBS)

# API for the IOC
INC = caPutLog.h

Expand Down
17 changes: 2 additions & 15 deletions caPutLogApp/caPutLog.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,9 @@ int epicsShareAPI caPutLogInit (const char *addr_str, int config)
{
int status;

switch(config) {
case caPutLogNone:
printf("caPutLogInit config: Disabled\n");
if (config == caPutLogNone) {
return caPutLogSuccess;
case caPutLogOnChange:
printf("caPutLogInit config: OnChange\n");
break;
case caPutLogAll:
printf("caPutLogInit config: All\n");
break;
case caPutLogAllNoFilter:
printf("caPutLogInit config: AllNoFilter\n");
break;
default:
printf("caPutLogInit config: Unknown (must be -1, 0, 1, or 2)\n");
return caPutLogError;
errlogSevPrintf(errlogInfo, "caPutLog: disabled\n");
}

status = caPutLogClientInit(addr_str);
Expand Down
2 changes: 1 addition & 1 deletion caPutLogApp/caPutLogTask.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ void caPutLogTaskSend(LOGDATA *plogData)
static void caPutLogTask(void *arg)
{
int sent = FALSE, burst = FALSE;
int config = (int)(size_t)arg;
int config = (size_t)arg;
LOGDATA *pcurrent, *pnext;
VALUE old_value, max_value, min_value;
VALUE *pold=&old_value, *pmax=&max_value, *pmin=&min_value;
Expand Down
4 changes: 3 additions & 1 deletion configure/RELEASE
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ TEMPLATE_TOP=$(EPICS_BASE)/templates/makeBaseApp/top
#SNCSEQ=$(EPICS_BASE)/../modules/soft/seq

# EPICS_BASE usually appears last so other apps can override stuff:
EPICS_BASE=/usr/lib/epics
#EPICS_BASE=/srv/csr/Epics/sumo/build/BASE/R3-14-12-5-bessy3+BII-093
EPICS_BASE=/home/franksen/ctl/epics/base/base-3.15.2
#EPICS_BASE=/home/franksen/ctl/epics/base/int64a

#Capfast users may need the following definitions
#CAPFAST_TEMPLATES=
Expand Down
14 changes: 14 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
caputlog (3.6-2) unstable; urgency=medium

* Convert package to quilt format
* Priority "extra" has been replaced by "optional"
* Depend on python3-sphinx

-- Martin Konrad <konrad@frib.msu.edu> Mon, 15 Jul 2019 10:44:41 -0400

caputlog (3.6-1) unstable; urgency=medium

* New upstream version 3.6

-- Martin Konrad <konrad@frib.msu.edu> Fri, 22 Feb 2019 22:00:10 -0500

caputlog (3.5-2) unstable; urgency=medium

* Use build profile to enable RTEMS cross build
Expand Down
2 changes: 1 addition & 1 deletion debian/compat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7
10
14 changes: 7 additions & 7 deletions debian/control
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
Source: caputlog
Section: devel
Priority: extra
Maintainer: Michael Davidsaver <mdavidsaver@gmail.com>
Build-Depends: debhelper (>= 9.20141010), dpkg-dev (>= 1.17.14),
Priority: optional
Maintainer: Martin Konrad <konrad@frib.msu.edu>
Build-Depends: debhelper (>= 10), dpkg-dev (>= 1.17.14),
epics-debhelper (>= 8.14~), epics-dev (>= 3.14.12.3),
python-sphinx,
python3-sphinx,
rtems-epics-mvme2100 <pkg.epics-base.rtems>,
rtems-epics-mvme2307 <pkg.epics-base.rtems>,
rtems-epics-mvme3100 <pkg.epics-base.rtems>,
rtems-epics-mvme5500 <pkg.epics-base.rtems>,
XS-Rtems-Build-Depends: rtems-epics
X-Epics-Targets: .*
Standards-Version: 3.9.6
Standards-Version: 4.3.0
Homepage: http://www-csr.bessy.de/control/SoftDist/caPutLog/

Package: libcaputlog3.5
Package: libcaputlog3.6
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}
Expand All @@ -25,7 +25,7 @@ Description: Logging of CA write operations
Package: epics-caputlog-dev
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
libcaputlog3.5 (= ${binary:Version}),
libcaputlog3.6 (= ${binary:Version}),
libjs-jquery, libjs-underscore,
Description: Logging of CA write operations
.
Expand Down
21 changes: 21 additions & 0 deletions debian/patches/0001-add-.so-deps.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
From: Michael Davidsaver <mdavidsaver@gmail.com>
Date: Tue, 17 May 2016 14:41:52 -0400
Subject: add .so deps

---
caPutLogApp/Makefile | 2 ++
1 file changed, 2 insertions(+)

diff --git a/caPutLogApp/Makefile b/caPutLogApp/Makefile
index 005c1b5..6f70e63 100644
--- a/caPutLogApp/Makefile
+++ b/caPutLogApp/Makefile
@@ -11,6 +11,8 @@ caPutLog_SRCS += caPutLogClient.c
caPutLog_SRCS += caPutLog.c
caPutLog_SRCS += caPutLogShellCommands.c

+caPutLog_LIBS += $(EPICS_BASE_IOC_LIBS)
+
# API for the IOC
INC = caPutLog.h

22 changes: 22 additions & 0 deletions debian/patches/0002-quiet-warning-about-int-void-int.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From: Michael Davidsaver <mdavidsaver@bnl.gov>
Date: Fri, 12 Jun 2015 15:53:33 -0400
Subject: quiet warning about int -> void* -> int

Not a problem in this case.
---
caPutLogApp/caPutLogTask.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/caPutLogApp/caPutLogTask.c b/caPutLogApp/caPutLogTask.c
index fbb9e94..95e8602 100644
--- a/caPutLogApp/caPutLogTask.c
+++ b/caPutLogApp/caPutLogTask.c
@@ -179,7 +179,7 @@ void caPutLogTaskSend(LOGDATA *plogData)
static void caPutLogTask(void *arg)
{
int sent = FALSE, burst = FALSE;
- int config = (size_t)arg;
+ int config = (int)(size_t)arg;
LOGDATA *pcurrent, *pnext;
VALUE old_value, max_value, min_value;
VALUE *pold=&old_value, *pmax=&max_value, *pmin=&min_value;
37 changes: 37 additions & 0 deletions debian/patches/0003-print-config-option-on-startup.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
From: Michael Davidsaver <mdavidsaver@bnl.gov>
Date: Fri, 12 Jun 2015 15:50:22 -0400
Subject: print config option on startup

---
caPutLogApp/caPutLog.c | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/caPutLogApp/caPutLog.c b/caPutLogApp/caPutLog.c
index 7573f7a..ebbaa6a 100644
--- a/caPutLogApp/caPutLog.c
+++ b/caPutLogApp/caPutLog.c
@@ -69,9 +69,22 @@ int epicsShareAPI caPutLogInit (const char *addr_str, int config)
{
int status;

- if (config == caPutLogNone) {
+ switch(config) {
+ case caPutLogNone:
+ printf("caPutLogInit config: Disabled\n");
return caPutLogSuccess;
- errlogSevPrintf(errlogInfo, "caPutLog: disabled\n");
+ case caPutLogOnChange:
+ printf("caPutLogInit config: OnChange\n");
+ break;
+ case caPutLogAll:
+ printf("caPutLogInit config: All\n");
+ break;
+ case caPutLogAllNoFilter:
+ printf("caPutLogInit config: AllNoFilter\n");
+ break;
+ default:
+ printf("caPutLogInit config: Unknown (must be -1, 0, 1, or 2)\n");
+ return caPutLogError;
}

status = caPutLogClientInit(addr_str);
18 changes: 18 additions & 0 deletions debian/patches/0004-no-docs-testing.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
From: Michael Davidsaver <mdavidsaver@bnl.gov>
Date: Fri, 9 Mar 2012 14:08:31 -0500
Subject: no docs testing

---
docs/Makefile | 2 ++
1 file changed, 2 insertions(+)

diff --git a/docs/Makefile b/docs/Makefile
index 35054e2..bbea1b6 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -174,3 +174,5 @@ doctest:
"results in $(BUILDDIR)/doctest/output.txt."

endif
+
+runtests:
23 changes: 23 additions & 0 deletions debian/patches/0005-Modify-RELEASE-file-for-Debian.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
From: Martin Konrad <konrad@frib.msu.edu>
Date: Mon, 15 Jul 2019 10:36:25 -0400
Subject: Modify RELEASE file for Debian

---
configure/RELEASE | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/configure/RELEASE b/configure/RELEASE
index 6da09f1..ba647a5 100644
--- a/configure/RELEASE
+++ b/configure/RELEASE
@@ -18,9 +18,7 @@ TEMPLATE_TOP=$(EPICS_BASE)/templates/makeBaseApp/top
#SNCSEQ=$(EPICS_BASE)/../modules/soft/seq

# EPICS_BASE usually appears last so other apps can override stuff:
-#EPICS_BASE=/srv/csr/Epics/sumo/build/BASE/R3-14-12-5-bessy3+BII-093
-EPICS_BASE=/home/franksen/ctl/epics/base/base-3.15.2
-#EPICS_BASE=/home/franksen/ctl/epics/base/int64a
+EPICS_BASE=/usr/lib/epics

#Capfast users may need the following definitions
#CAPFAST_TEMPLATES=
5 changes: 5 additions & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
0001-add-.so-deps.patch
0002-quiet-warning-about-int-void-int.patch
0003-print-config-option-on-startup.patch
0004-no-docs-testing.patch
0005-Modify-RELEASE-file-for-Debian.patch
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
2 changes: 0 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,3 @@ doctest:
"results in $(BUILDDIR)/doctest/output.txt."

endif

runtests: