public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 11/11] libloc: Update to 0.9.4
Date: Tue, 22 Sep 2020 20:25:09 +0200	[thread overview]
Message-ID: <20200922182509.18643-11-stefan.schantl@ipfire.org> (raw)
In-Reply-To: <20200922182509.18643-1-stefan.schantl@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 4245 bytes --]

Also update to the shipped database to 2020-09-21.

Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
 lfs/libloc                                    | 12 ++++------
 ...te-buffer-when-reading-from-database.patch | 24 -------------------
 ...c-0.9.3-location-provide-return-code.patch | 22 -----------------
 3 files changed, 4 insertions(+), 54 deletions(-)
 delete mode 100644 src/patches/libloc-0.9.3-country-terminate-buffer-when-reading-from-database.patch
 delete mode 100644 src/patches/libloc-0.9.3-location-provide-return-code.patch

diff --git a/lfs/libloc b/lfs/libloc
index 178f9f9cc..da53e5149 100644
--- a/lfs/libloc
+++ b/lfs/libloc
@@ -24,8 +24,8 @@
 
 include Config
 
-VER        = 0.9.3
-DB_DATE    = 2020-07-10
+VER        = 0.9.4
+DB_DATE    = 2020-09-21
 
 THISAPP    = libloc-$(VER)
 DL_FILE    = $(THISAPP).tar.gz
@@ -43,8 +43,8 @@ objects = $(DL_FILE) \
 $(DL_FILE)                    = https://source.ipfire.org/releases/libloc//$(DL_FILE)
 location-$(DB_DATE).db.xz     = https://location.ipfire.org/databases/1/archive/location-$(DB_DATE).db.xz
 
-$(DL_FILE)_MD5                = 61f1d543f67baf665b0140d3676fdade
-location-$(DB_DATE).db.xz_MD5 = 3f68f631e94c29b953c4e60454567540
+$(DL_FILE)_MD5                = 82770e9eba20f636c96e6fa42ff234b5
+location-$(DB_DATE).db.xz_MD5 = fa3069bf31170629d638317e283913c0
 
 install : $(TARGET)
 
@@ -78,10 +78,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	@$(PREBUILD)
 	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xvf $(DIR_DL)/$(DL_FILE)
 
-	# Apply upstream patches
-	cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/libloc-0.9.3-country-terminate-buffer-when-reading-from-database.patch
-	cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/libloc-0.9.3-location-provide-return-code.patch
-
 	# Add patch for i586 to disable strong stack protector.
 ifeq "$(BUILD_ARCH)" "i586"
 	cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/libloc-0.9.3-perl-i586-regular-stack-protector.patch
diff --git a/src/patches/libloc-0.9.3-country-terminate-buffer-when-reading-from-database.patch b/src/patches/libloc-0.9.3-country-terminate-buffer-when-reading-from-database.patch
deleted file mode 100644
index 0ad9229fd..000000000
--- a/src/patches/libloc-0.9.3-country-terminate-buffer-when-reading-from-database.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-commit 61d3516bbfce6b4e6393825329c07b1e2a88d47d
-Author: Michael Tremer <michael.tremer(a)ipfire.org>
-Date:   Mon Jul 13 10:47:30 2020 +0000
-
-    country: Terminate buffer when reading from database
-    
-    Compilers on ARM do not seem to initialise the buffer.
-    
-    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
-
-diff --git a/src/country.c b/src/country.c
-index d6ddf50..2ba93e6 100644
---- a/src/country.c
-+++ b/src/country.c
-@@ -125,6 +125,9 @@ int loc_country_new_from_database_v1(struct loc_ctx* ctx, struct loc_stringpool*
- 	// Read country code
- 	loc_country_code_copy(buffer, dbobj->code);
- 
-+	// Terminate buffer
-+	buffer[2] = '\0';
-+
- 	// Create a new country object
- 	int r = loc_country_new(ctx, country, buffer);
- 	if (r)
diff --git a/src/patches/libloc-0.9.3-location-provide-return-code.patch b/src/patches/libloc-0.9.3-location-provide-return-code.patch
deleted file mode 100644
index 2382145c3..000000000
--- a/src/patches/libloc-0.9.3-location-provide-return-code.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-commit 1be0681cc4bcc006369e69d90dc4439eaa6f58d5
-Author: Stefan Schantl <stefan.schantl(a)ipfire.org>
-Date:   Wed Jul 29 18:50:20 2020 +0200
-
-    location: Provide a return code if the database does not need to be
-    updated.
-    
-    Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
-
-diff --git a/src/python/location.in b/src/python/location.in
-index 5211b28..8cdd140 100644
---- a/src/python/location.in
-+++ b/src/python/location.in
-@@ -416,7 +416,7 @@ class CLI(object):
- 					_("The datase has recently be updated recently (%s)") % \
- 						format_timedelta(now - t),
- 				)
--				return
-+				return 3
- 
- 		# Fetch the timestamp we need from DNS
- 		t = location.discover_latest_version()
-- 
2.20.1


      parent reply	other threads:[~2020-09-22 18:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-22 18:24 [PATCH 01/11] location-functions.pl: Refactor get_locations() function to use the Location module Stefan Schantl
2020-09-22 18:25 ` [PATCH 02/11] location-functions.pl: Refactor get_full_country_name() " Stefan Schantl
2020-09-22 18:25 ` [PATCH 03/11] location-functions.pl: Add address_has_flag() function Stefan Schantl
2020-09-22 18:25 ` [PATCH 04/11] country.cgi: Use own location-functions Stefan Schantl
2020-09-22 18:25 ` [PATCH 05/11] tor.cgi: Use own location functions Stefan Schantl
2020-09-22 18:25 ` [PATCH 06/11] guardian.cgi: Drop unused use of Locale::Codes::Country Stefan Schantl
2020-09-22 18:25 ` [PATCH 07/11] general-functions.pl: " Stefan Schantl
2020-09-22 18:25 ` [PATCH 08/11] ipinfo.cgi: Display network flags of the given addresses Stefan Schantl
2020-09-22 18:25 ` [PATCH 09/11] Locale-Country: Drop package Stefan Schantl
2020-09-22 18:25 ` [PATCH 10/11] ipinfo.cgi: Allow to display multiple flags Stefan Schantl
2020-09-22 18:25 ` Stefan Schantl [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200922182509.18643-11-stefan.schantl@ipfire.org \
    --to=stefan.schantl@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox