diffstat of debian/ for libpst_0.6.59-1 libpst_0.6.59-1pardus1 changelog | 6 ++ patches/0002-libpst-do-not-use-horrible-GNU-extensions.patch | 31 +++++++++++ patches/06-ld-no-add-needed.patch | 21 ++++--- patches/series | 1 4 files changed, 51 insertions(+), 8 deletions(-) diff -Nru libpst-0.6.59/debian/changelog libpst-0.6.59/debian/changelog --- libpst-0.6.59/debian/changelog 2013-05-19 00:50:03.000000000 +0000 +++ libpst-0.6.59/debian/changelog 2017-10-17 11:41:37.000000000 +0000 @@ -1,3 +1,9 @@ +libpst (0.6.59-1pardus1) onyedi; urgency=medium + + * Fix seqfault, use getcwd. + + -- Cihangir Akturk Tue, 17 Oct 2017 14:41:37 +0300 + libpst (0.6.59-1) unstable; urgency=low * [ec26e2d0] Imported Upstream version 0.6.59 diff -Nru libpst-0.6.59/debian/patches/0002-libpst-do-not-use-horrible-GNU-extensions.patch libpst-0.6.59/debian/patches/0002-libpst-do-not-use-horrible-GNU-extensions.patch --- libpst-0.6.59/debian/patches/0002-libpst-do-not-use-horrible-GNU-extensions.patch 1970-01-01 00:00:00.000000000 +0000 +++ libpst-0.6.59/debian/patches/0002-libpst-do-not-use-horrible-GNU-extensions.patch 2017-10-17 11:41:37.000000000 +0000 @@ -0,0 +1,31 @@ +From: Cihangir Akturk +Date: Tue, 17 Oct 2017 14:32:02 +0300 +Subject: libpst: do not use horrible GNU extensions + +get_current_dir_name return a pointer to somewhere only God knows, +so don't give credit to fucking idiots. + +Signed-off-by: Cihangir Akturk +--- + src/libpst.c | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/src/libpst.c b/src/libpst.c +index ca7fa7f..d1822c4 100644 +--- a/src/libpst.c ++++ b/src/libpst.c +@@ -291,12 +291,10 @@ static char* pst_wide_to_single(char *wt, size_t size); + + static char *pst_getcwd(void) { + char *cwd; +-#ifdef HAVE_GET_CURRENT_DIR_NAME +- cwd = get_current_dir_name(); +-#else ++ + cwd = pst_malloc(PATH_MAX+1); + getcwd(cwd, PATH_MAX+1); +-#endif ++ + return cwd; + } + diff -Nru libpst-0.6.59/debian/patches/06-ld-no-add-needed.patch libpst-0.6.59/debian/patches/06-ld-no-add-needed.patch --- libpst-0.6.59/debian/patches/06-ld-no-add-needed.patch 2013-01-20 19:36:43.000000000 +0000 +++ libpst-0.6.59/debian/patches/06-ld-no-add-needed.patch 2017-10-17 11:41:37.000000000 +0000 @@ -1,11 +1,16 @@ -Description: fix compilation with --no-add-needed -Origin: http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/quantal/libpst/quantal/view/head:/debian/patches/06-ld-no-add-needed.patch +From: Leo Costela +Date: Tue, 17 Oct 2017 14:30:19 +0300 +Subject: ld-no-add-needed -Index: repo/src/Makefile.am -=================================================================== ---- repo.orig/src/Makefile.am 2013-01-16 11:18:02.946848930 +0100 -+++ repo/src/Makefile.am 2013-01-16 11:18:02.942848959 +0100 -@@ -80,7 +80,7 @@ +--- + src/Makefile.am | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/Makefile.am b/src/Makefile.am +index 14ec366..a0deedf 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -80,7 +80,7 @@ else endif libpst_la_SOURCES = $(common_source) $(common_header) @@ -14,7 +19,7 @@ EXTRA_DIST = if !NEED_XGETOPT -@@ -92,7 +92,7 @@ +@@ -92,7 +92,7 @@ INCLUDES= -I$(srcdir)/.. $(all_includes) # the library search path. lspst_LDADD = $(all_libraries) $(PSTLIB) $(LTLIBICONV) diff -Nru libpst-0.6.59/debian/patches/series libpst-0.6.59/debian/patches/series --- libpst-0.6.59/debian/patches/series 2013-02-20 17:04:13.000000000 +0000 +++ libpst-0.6.59/debian/patches/series 2017-10-17 11:41:37.000000000 +0000 @@ -1 +1,2 @@ 06-ld-no-add-needed.patch +0002-libpst-do-not-use-horrible-GNU-extensions.patch