aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2016-10-25 18:54:54 -0700
committerSean Whitton <spwhitton@spwhitton.name>2016-10-25 18:54:54 -0700
commit67081d680b12cf50c0929c24ad2f2d4789c6ea0f (patch)
tree68859ccee395a7d2e95ef40276e642660f29d2e4
parentd38220a8191285fd8589bf8a31a4b2227417c943 (diff)
downloadzxcvbn-c-67081d680b12cf50c0929c24ad2f2d4789c6ea0f.tar.gz
changelog & drop patches merged upstream
-rw-r--r--debian/changelog9
-rw-r--r--debian/patches/add-another-missing-file-to-clean-target.patch22
-rw-r--r--debian/patches/series2
-rw-r--r--debian/patches/standardise-makefile-variables.patch117
4 files changed, 9 insertions, 141 deletions
diff --git a/debian/changelog b/debian/changelog
index 3255cc8..6ee04fb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+zxcvbn-c (2.0-1) UNRELEASED; urgency=medium
+
+ * New upstream release.
+ * Drop patches merged upstream:
+ - add-another-missing-file-to-clean-target.patch
+ - standardise-makefile-variables.patch
+
+ -- Sean Whitton <spwhitton@spwhitton.name> Tue, 25 Oct 2016 18:54:12 -0700
+
zxcvbn-c (0.20160925-1) unstable; urgency=medium
* Initial release (Closes: #838492).
diff --git a/debian/patches/add-another-missing-file-to-clean-target.patch b/debian/patches/add-another-missing-file-to-clean-target.patch
deleted file mode 100644
index 398a0be..0000000
--- a/debian/patches/add-another-missing-file-to-clean-target.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-From: Sean Whitton <spwhitton@spwhitton.name>
-Date: Wed, 28 Sep 2016 09:15:07 -0700
-Subject: add another missing file to clean target
-
-Forwarded: https://github.com/tsyrogit/zxcvbn-c/pull/9
----
- makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/makefile b/makefile
-index 2cf5c9e..adf3c9b 100644
---- a/makefile
-+++ b/makefile
-@@ -84,7 +84,7 @@ test: test-file test-inline test-c++inline test-c++file test-shlib test-statlib
-
- clean:
- rm -f test-file zxcvbn-file.o test-c++file zxcvbn-c++file.o
-- rm -f test-inline zxcvbn-inline.o test-c++inline zxcvbn-c++inline.o
-+ rm -f test-inline zxcvbn-inline.o zxcvbn-inline-pic.o test-c++inline zxcvbn-c++inline.o
- rm -f dict-*.h zxcvbn.dict zxcvbn.cpp test.cpp
- rm -f dictgen
- rm -f ${TARGET_LIB} ${SONAME} libzxcvbn.so test-shlib libzxcvbn.a test-statlib
diff --git a/debian/patches/series b/debian/patches/series
index 0447f38..252c97d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1 @@
patch-README-for-Debian.patch
-add-another-missing-file-to-clean-target.patch
-standardise-makefile-variables.patch
diff --git a/debian/patches/standardise-makefile-variables.patch b/debian/patches/standardise-makefile-variables.patch
deleted file mode 100644
index b3e48ed..0000000
--- a/debian/patches/standardise-makefile-variables.patch
+++ /dev/null
@@ -1,117 +0,0 @@
-From: Sean Whitton <spwhitton@spwhitton.name>
-Date: Wed, 28 Sep 2016 09:07:03 -0700
-Subject: standardise-makefile-variables
-
-- use $(LDFLAGS) close to end of command to avoid build failures with
- linker option --as-needed
-
-- use $(CC), $(AR), $(CXX) to the user can choose their own compiler
-
-- use $(CPPFLAGS), $(CFLAGS) and $(CXXFLAGS) are they are intended
-
-- correct CPPFLAGS -> CXXFLAGS at top of file
-
-Forwarded: https://github.com/tsyrogit/zxcvbn-c/pull/10
----
- makefile | 45 +++++++++++++++++++++++++++++----------------
- 1 file changed, 29 insertions(+), 16 deletions(-)
-
-diff --git a/makefile b/makefile
-index adf3c9b..c45c33f 100644
---- a/makefile
-+++ b/makefile
-@@ -1,8 +1,12 @@
- CFLAGS ?= -O2 -Wall -Wextra -Wdeclaration-after-statement
--CPPFLAGS ?= -O2 -Wall -Wextra
-+CXXFLAGS ?= -O2 -Wall -Wextra
-+
-+# default programs
-+CC ?= gcc
-+AR ?= ar
-+CXX ?= g++
-
- # need zxcvbn.h prior to package installation
--CFLAGS += -I.
- CPPFLAGS += -I.
-
- # library metadata
-@@ -15,32 +19,36 @@ all: test-file test-inline test-c++inline test-c++file test-shlib test-statlib
-
- test-shlib: test.c $(TARGET_LIB)
- if [ ! -e libzxcvbn.so ]; then ln -s $(TARGET_LIB) libzxcvbn.so; fi
-- gcc $(CFLAGS) -o $@ $< -L. -lzxcvbn -lm
-+ $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< -L. $(LDFLAGS) -lzxcvbn -lm
-
- $(TARGET_LIB): zxcvbn-inline-pic.o
-- gcc $(CFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-soname,$(SONAME) -o $@ $^ -lm
-+ $(CC) $(CPPFLAGS) $(CFLAGS) \
-+ -o $@ $^ -fPIC -shared -Wl,-soname,$(SONAME) $(LDFLAGS) -lm
- if [ ! -e $(SONAME) ]; then ln -s $(TARGET_LIB) $(SONAME); fi
-
- test-statlib: test.c libzxcvbn.a
-- gcc $(CFLAGS) $(LDFLAGS) -o $@ $^ -lm
-+ $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^ $(LDFLAGS) -lm
-
- libzxcvbn.a: zxcvbn-inline.o
-- ar cvq $@ $^
-+ $(AR) cvq $@ $^
-
- test-file: test.c zxcvbn-file.o
-- gcc $(CFLAGS) -DUSE_DICT_FILE -o test-file test.c zxcvbn-file.o -lm
-+ $(CC) $(CPPFLAGS) $(CFLAGS) \
-+ -DUSE_DICT_FILE -o test-file test.c zxcvbn-file.o $(LDFLAGS) -lm
-
- zxcvbn-file.o: zxcvbn.c dict-crc.h zxcvbn.h
-- gcc $(CFLAGS) -DUSE_DICT_FILE -c -o zxcvbn-file.o zxcvbn.c
-+ $(CC) $(CPPFLAGS) $(CFLAGS) \
-+ -DUSE_DICT_FILE -c -o zxcvbn-file.o zxcvbn.c
-
- test-inline: test.c zxcvbn-inline.o
-- gcc $(CFLAGS) -o test-inline test.c zxcvbn-inline.o -lm
-+ $(CC) $(CPPFLAGS) $(CFLAGS) \
-+ -o test-inline test.c zxcvbn-inline.o $(LDFLAGS) -lm
-
- zxcvbn-inline-pic.o: zxcvbn.c dict-src.h zxcvbn.h
-- gcc $(CFLAGS) -fPIC -c -o $@ $<
-+ $(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -c -o $@ $<
-
- zxcvbn-inline.o: zxcvbn.c dict-src.h zxcvbn.h
-- gcc $(CFLAGS) -c -o zxcvbn-inline.o zxcvbn.c
-+ $(CC) $(CPPFLAGS) $(CFLAGS) -c -o zxcvbn-inline.o zxcvbn.c
-
- dict-src.h: dictgen $(WORDS)
- ./dictgen -o dict-src.h $(WORDS)
-@@ -49,23 +57,28 @@ dict-crc.h: dictgen $(WORDS)
- ./dictgen -b -o zxcvbn.dict -h dict-crc.h $(WORDS)
-
- dictgen: dict-generate.cpp makefile
-- g++ -std=c++11 $(CPPFLAGS) -o dictgen dict-generate.cpp
-+ $(CXX) $(CPPFLAGS) -std=c++11 $(CXXFLAGS) \
-+ -o dictgen dict-generate.cpp $(LDFLAGS)
-
- test-c++inline: test.c zxcvbn-c++inline.o
- if [ ! -e test.cpp ]; then ln -s test.c test.cpp; fi
-- g++ $(CPPFLAGS) -o test-c++inline test.cpp zxcvbn-c++inline.o -lm
-+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) \
-+ -o test-c++inline test.cpp zxcvbn-c++inline.o $(LDFLAGS) -lm
-
- zxcvbn-c++inline.o: zxcvbn.c dict-src.h zxcvbn.h
- if [ ! -e zxcvbn.cpp ]; then ln -s zxcvbn.c zxcvbn.cpp; fi
-- g++ $(CPPFLAGS) -c -o zxcvbn-c++inline.o zxcvbn.cpp
-+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) \
-+ -c -o zxcvbn-c++inline.o zxcvbn.cpp
-
- test-c++file: test.c zxcvbn-c++file.o
- if [ ! -e test.cpp ]; then ln -s test.c test.cpp; fi
-- g++ $(CPPFLAGS) -DUSE_DICT_FILE -o test-c++file test.cpp zxcvbn-c++file.o -lm
-+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) \
-+ -DUSE_DICT_FILE -o test-c++file test.cpp zxcvbn-c++file.o $(LDFLAGS) -lm
-
- zxcvbn-c++file.o: zxcvbn.c dict-crc.h zxcvbn.h
- if [ ! -e zxcvbn.cpp ]; then ln -s zxcvbn.c zxcvbn.cpp; fi
-- g++ $(CPPFLAGS) -DUSE_DICT_FILE -c -o zxcvbn-c++file.o zxcvbn.cpp
-+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) \
-+ -DUSE_DICT_FILE -c -o zxcvbn-c++file.o zxcvbn.cpp
-
- test: test-file test-inline test-c++inline test-c++file test-shlib test-statlib testcases.txt
- @echo Testing C build, dictionary from file