From b607c5fb710c446322f2bbacf215bca9c6f11b5e Mon Sep 17 00:00:00 2001 From: "Iain R. Learmonth" Date: Sun, 18 Oct 2015 19:13:45 +0100 Subject: Updates to patches * Patches renamed to follow quilt series * 0003-no-escape-buildroot.patch: - Updated for new upstream build scripts * 0004-inherit-cflags-fflags.patch: - New patch * mno-stack-arg-probe.patch: - Removed as no longer relevant --- debian/patches/0001-add-start-script.patch | 32 ++++++++++++++++++ debian/patches/0002-add-manpage.patch | 44 +++++++++++++++++++++++++ debian/patches/0003-no-escape-buildroot.patch | 25 ++++++++++++++ debian/patches/0004-inherit-cflags-fflags.patch | 17 ++++++++++ debian/patches/man_page.patch | 44 ------------------------- debian/patches/mno-stack-arg-probe.patch | 17 ---------- debian/patches/series | 8 ++--- debian/patches/wsjtx_install.patch | 36 -------------------- debian/patches/wsjtx_script.patch | 32 ------------------ 9 files changed, 122 insertions(+), 133 deletions(-) create mode 100644 debian/patches/0001-add-start-script.patch create mode 100644 debian/patches/0002-add-manpage.patch create mode 100644 debian/patches/0003-no-escape-buildroot.patch create mode 100644 debian/patches/0004-inherit-cflags-fflags.patch delete mode 100644 debian/patches/man_page.patch delete mode 100644 debian/patches/mno-stack-arg-probe.patch delete mode 100644 debian/patches/wsjtx_install.patch delete mode 100644 debian/patches/wsjtx_script.patch (limited to 'debian') diff --git a/debian/patches/0001-add-start-script.patch b/debian/patches/0001-add-start-script.patch new file mode 100644 index 00000000..722d2d00 --- /dev/null +++ b/debian/patches/0001-add-start-script.patch @@ -0,0 +1,32 @@ +Description: wsjtx start script + If missing, creates and populates ~/.wsjtx/ + cd ~/.wsjtx/ and run application binary. + . +Author: John T. Nogatch + +--- /dev/null ++++ wsjtx-1.1.r3496/wsjtx +@@ -0,0 +1,23 @@ ++#!/bin/sh ++set -e ++ ++# wsjtx expects to write configuration files in the current directory, ++# which also needs to contain CALL3.TXT before starting. ++# If those don't currently exist, create them first. ++ ++cp -r --update /usr/share/wsjtx/.wsjtx $HOME ++ ++RUNDIR=$HOME/.wsjtx ++cd $RUNDIR ++ ++# wsjtx gets an error if this file does not exist, when trying to "Log QSO" ++if [ ! -f CALL3.TXT ]; then ++ touch CALL3.TXT ++fi ++# wsjtx & jt9 use applicationDirPath for configuration path prefix, ++# so they must reside here, in user's configuration dir ++cp --update /usr/lib/wsjtx/jt9 jt9 ++cp --update /usr/lib/wsjtx/wsjtx wsjtx ++ ++./wsjtx ++ diff --git a/debian/patches/0002-add-manpage.patch b/debian/patches/0002-add-manpage.patch new file mode 100644 index 00000000..031e82f0 --- /dev/null +++ b/debian/patches/0002-add-manpage.patch @@ -0,0 +1,44 @@ +Description: wsjtx man page + wsjtx.1 manpage + . +Author: John T. Nogatch + +--- /dev/null ++++ wsjtx-1.1.r3496/wsjtx.1 +@@ -0,0 +1,36 @@ ++.TH WSJTX 1 ++.SH NAME wsjtx \- Weak signal communications program. ++ ++.SH SYNOPSIS ++.B wsjtx ++.SH DESCRIPTION ++.B wsjtx ++is a weak signal communications program supporting two operating modes: JT65 and JT9. ++( ++.B wsjtx ++version 1 supported JT9 only.) ++ ++WSJT-X home page: ++ http://www.physics.princeton.edu/pulsar/K1JT/wsjtx.html ++ ++WSJT-X User's Guide: ++ http://www.physics.princeton.edu/pulsar/K1JT/WSJT-X_Users_Guide.pdf ++ ++An alternative JT65 decoder executable ++.B kvasd ++for i386 Ubuntu 12.04 is available at http://www.physics.princeton.edu/pulsar/K1JT/kvasd . ++This decoder is not open-source, is not included in the wsjtx package, and is not required for JT65 decoding. ++.SH FILES ++A directory ~/.wsjtx is created, where ++.B wsjtx ++is executed, and where personalization files are stored. ++.SH COPYRIGHT ++.B wsjtx ++is Copyright (c) 2013 by Joseph H. Taylor, Jr., K1JT, with ++contributions from additional authors. WSJTX is Open Source ++software, licensed under the GNU General Public License (GPL). ++ ++This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; ++without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ++See the GNU General Public License for more details. ++ diff --git a/debian/patches/0003-no-escape-buildroot.patch b/debian/patches/0003-no-escape-buildroot.patch new file mode 100644 index 00000000..d28bba0e --- /dev/null +++ b/debian/patches/0003-no-escape-buildroot.patch @@ -0,0 +1,25 @@ +Description: avoid path outside of build dir + Use ./wsjtx_install vs. ../wsjtx_install +Author: Iain R. Learmonth +Last-Update: 2015-10-18 + +--- a/wsjtx.pro ++++ b/wsjtx.pro +@@ -17,7 +17,7 @@ + DEFINES += PROJECT_MANUAL="'\"http://www.physics.princeton.edu/pulsar/K1JT/wsjtx-doc/wsjtx-main.html\"'" + + isEmpty (DESTDIR) { +-DESTDIR = ../wsjtx_install ++DESTDIR = ./wsjtx_install + } + + isEmpty (HAMLIB_DIR) { +--- a/lib/Makefile.linux ++++ b/lib/Makefile.linux +@@ -1,5 +1,5 @@ + # Set paths +-EXE_DIR = ../../wsjtx_install ++EXE_DIR = ../wsjtx_install + QT_DIR = /usr/include/qt5 + INCPATH = -I${QT_DIR} -I${QT_DIR}/QtCore + diff --git a/debian/patches/0004-inherit-cflags-fflags.patch b/debian/patches/0004-inherit-cflags-fflags.patch new file mode 100644 index 00000000..4b4ad220 --- /dev/null +++ b/debian/patches/0004-inherit-cflags-fflags.patch @@ -0,0 +1,17 @@ +Description: inherit cflags and fflags from dpkg-buildflags +Author: Iain R. Learmonth +Last-Update: 2015-10-18 + +--- a/lib/Makefile.linux ++++ b/lib/Makefile.linux +@@ -12,8 +12,8 @@ + RANLIB = ranlib + RM = rm -f + +-FFLAGS = -O3 -funroll-loops -Wall -Wno-conversion -fno-second-underscore -DUNIX +-CFLAGS = -I. -fbounds-check -fPIE ++FFLAGS += -O3 -funroll-loops -Wall -Wno-conversion -fno-second-underscore -DUNIX ++CFLAGS += -I. -fbounds-check -fPIE + + # Default rules + %.o: %.c diff --git a/debian/patches/man_page.patch b/debian/patches/man_page.patch deleted file mode 100644 index 031e82f0..00000000 --- a/debian/patches/man_page.patch +++ /dev/null @@ -1,44 +0,0 @@ -Description: wsjtx man page - wsjtx.1 manpage - . -Author: John T. Nogatch - ---- /dev/null -+++ wsjtx-1.1.r3496/wsjtx.1 -@@ -0,0 +1,36 @@ -+.TH WSJTX 1 -+.SH NAME wsjtx \- Weak signal communications program. -+ -+.SH SYNOPSIS -+.B wsjtx -+.SH DESCRIPTION -+.B wsjtx -+is a weak signal communications program supporting two operating modes: JT65 and JT9. -+( -+.B wsjtx -+version 1 supported JT9 only.) -+ -+WSJT-X home page: -+ http://www.physics.princeton.edu/pulsar/K1JT/wsjtx.html -+ -+WSJT-X User's Guide: -+ http://www.physics.princeton.edu/pulsar/K1JT/WSJT-X_Users_Guide.pdf -+ -+An alternative JT65 decoder executable -+.B kvasd -+for i386 Ubuntu 12.04 is available at http://www.physics.princeton.edu/pulsar/K1JT/kvasd . -+This decoder is not open-source, is not included in the wsjtx package, and is not required for JT65 decoding. -+.SH FILES -+A directory ~/.wsjtx is created, where -+.B wsjtx -+is executed, and where personalization files are stored. -+.SH COPYRIGHT -+.B wsjtx -+is Copyright (c) 2013 by Joseph H. Taylor, Jr., K1JT, with -+contributions from additional authors. WSJTX is Open Source -+software, licensed under the GNU General Public License (GPL). -+ -+This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; -+without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -+See the GNU General Public License for more details. -+ diff --git a/debian/patches/mno-stack-arg-probe.patch b/debian/patches/mno-stack-arg-probe.patch deleted file mode 100644 index a5610781..00000000 --- a/debian/patches/mno-stack-arg-probe.patch +++ /dev/null @@ -1,17 +0,0 @@ -Description: remove mno-stack-arg-probe from CFLAGS - lib/Makefile.linux CFLAGS option -mno-stack-arg-probe is unrecognized on - many platforms, & alloca() is not used anyway, so probably not needed. - . -Author: John T. Nogatch - ---- wsjtx-1.1.r3496.orig/lib/Makefile.linux -+++ wsjtx-1.1.r3496/lib/Makefile.linux -@@ -2,7 +2,7 @@ CC = gcc - FC = gfortran - - FFLAGS = -O2 -fbounds-check -Wall -Wno-conversion -fno-second-underscore --CFLAGS = -I. -fbounds-check -mno-stack-arg-probe -+CFLAGS = -I. -fbounds-check - - # Default rules - %.o: %.c diff --git a/debian/patches/series b/debian/patches/series index 423b92e7..af8cb02b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,4 +1,4 @@ -wsjtx_script.patch -man_page.patch -wsjtx_install.patch -mno-stack-arg-probe.patch +0001-add-start-script.patch +0002-add-manpage.patch +0003-no-escape-buildroot.patch +0004-inherit-cflags-fflags.patch diff --git a/debian/patches/wsjtx_install.patch b/debian/patches/wsjtx_install.patch deleted file mode 100644 index 19ced49a..00000000 --- a/debian/patches/wsjtx_install.patch +++ /dev/null @@ -1,36 +0,0 @@ -Description: avoid path outside of build dir - Use ./wsjtx_install vs. ../wsjtx_install - Use ./lib vs ../wsjtx/lib - - ---- wsjtx-1.1.r3496.orig/wsjtx.pro -+++ wsjtx-1.1.r3496/wsjtx.pro -@@ -10,7 +10,7 @@ CONFIG += thread - #CONFIG += console - - TARGET = wsjtx --DESTDIR = ../wsjtx_install -+DESTDIR = ./wsjtx_install - VERSION = 1.1 - TEMPLATE = app - DEFINES = QT4 -@@ -60,7 +60,7 @@ FORMS += mainwindow.ui about.ui devse - RC_FILE = wsjtx.rc - - unix { --LIBS += ../wsjtx/lib/libjt9.a -+LIBS += ./lib/libjt9.a - LIBS += -lhamlib - LIBS += -lportaudio -lgfortran -lfftw3f - } ---- wsjtx-1.1.r3496.orig/lib/Makefile.linux -+++ wsjtx-1.1.r3496/lib/Makefile.linux -@@ -45,7 +45,7 @@ OBJS2 = jt9.o jt9a.o jt9b.o jt9c.o - - jt9: $(OBJS2) libjt9.a - g++ -o jt9 $(OBJS2) libjt9.a -lfftw3f -lgfortran -lQtCore -- cp jt9 ../../wsjtx_install -+ cp jt9 ../wsjtx_install - - OBJS3 = jt9sim.o - jt9sim: $(OBJS3) libjt9.a diff --git a/debian/patches/wsjtx_script.patch b/debian/patches/wsjtx_script.patch deleted file mode 100644 index 722d2d00..00000000 --- a/debian/patches/wsjtx_script.patch +++ /dev/null @@ -1,32 +0,0 @@ -Description: wsjtx start script - If missing, creates and populates ~/.wsjtx/ - cd ~/.wsjtx/ and run application binary. - . -Author: John T. Nogatch - ---- /dev/null -+++ wsjtx-1.1.r3496/wsjtx -@@ -0,0 +1,23 @@ -+#!/bin/sh -+set -e -+ -+# wsjtx expects to write configuration files in the current directory, -+# which also needs to contain CALL3.TXT before starting. -+# If those don't currently exist, create them first. -+ -+cp -r --update /usr/share/wsjtx/.wsjtx $HOME -+ -+RUNDIR=$HOME/.wsjtx -+cd $RUNDIR -+ -+# wsjtx gets an error if this file does not exist, when trying to "Log QSO" -+if [ ! -f CALL3.TXT ]; then -+ touch CALL3.TXT -+fi -+# wsjtx & jt9 use applicationDirPath for configuration path prefix, -+# so they must reside here, in user's configuration dir -+cp --update /usr/lib/wsjtx/jt9 jt9 -+cp --update /usr/lib/wsjtx/wsjtx wsjtx -+ -+./wsjtx -+ -- cgit v1.2.3