public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Howarth <paul@city-fan.org>
To: git-commits@fedoraproject.org
Subject: [rpms/geoipupdate] epel9: Update to 4.0.3
Date: Wed, 25 Nov 2026 19:40:07 GMT	[thread overview]
Message-ID: <179563560771.1.1938780255875423507.rpms-geoipupdate-fc0d813fbb81@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/geoipupdate
            Branch : epel9
            Commit : fc0d813fbb81d79b098106a7547e2913a9378056
            Author : Paul Howarth <paul@city-fan.org>
            Date   : 2019-06-10T19:59:08+01:00
            Stats  : +186/-101 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/geoipupdate/c/fc0d813fbb81d79b098106a7547e2913a9378056?branch=epel9

            Log:
            Update to 4.0.3

- New upstream release 4.0.3
  - Update flock dependency from 'theckman/go-flock' to 'gofrs/flock' (GH#22)
  - Switch to Go modules and update dependencies
  - Fix version output on Ubuntu PPA and Homebrew releases
- Revert switch to Go Modules as our tooling isn't ready for that yet

---
diff --git a/.gitignore b/.gitignore
index f4a606c..eeab5e0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
 /geoipupdate-3.1.0.tar.gz
 /geoipupdate-3.1.1.tar.gz
 /geoipupdate-4.0.2.tar.gz
+/geoipupdate-4.0.3.tar.gz

diff --git a/geoipupdate-4.0.1-flock.patch b/geoipupdate-4.0.1-flock.patch
deleted file mode 100644
index 84b0dc1..0000000
--- a/geoipupdate-4.0.1-flock.patch
+++ /dev/null
@@ -1,94 +0,0 @@
-
- * github.com/theckman/go-flock renamed to github.com/gofrs/flock
- * flock.NewFlock deprecated: use flock.New instead
-
-diff --git a/Gopkg.lock b/Gopkg.lock
-index 82255c3..47d965c 100644
---- a/Gopkg.lock
-+++ b/Gopkg.lock
-@@ -9,6 +9,14 @@
-   revision = "346938d642f2ec3594ed81d874461961cd0faa76"
-   version = "v1.1.0"
- 
-+[[projects]]
-+  digest = "1:70f34ee6d1b188cbd2dfcde62b0e2c600262eb5a03c8a3f3435ecf7c74790470"
-+  name = "github.com/gofrs/flock"
-+  packages = ["."]
-+  pruneopts = "UT"
-+  revision = "7f43ea2e6a643ad441fc12d0ecc0d3388b300c53"
-+  version = "v0.7.0"
-+
- [[projects]]
-   digest = "1:40e195917a951a8bf867cd05de2a46aaf1806c50cf92eebf4c16f78cd196f747"
-   name = "github.com/pkg/errors"
-@@ -34,7 +42,7 @@
-   version = "v1.0.1"
- 
- [[projects]]
--  digest = "1:befd7181c2f92c9f05abf17cd7e15538919f19cf7871d794cacc45a4fb99c135"
-+  digest = "1:c40d65817cdd41fac9aa7af8bed56927bb2d6d47e4fea566a74880f5c2b1c41e"
-   name = "github.com/stretchr/testify"
-   packages = [
-     "assert",
-@@ -44,23 +52,15 @@
-   revision = "f35b8ab0b5a2cef36673838d662e249dd9c94686"
-   version = "v1.2.2"
- 
--[[projects]]
--  digest = "1:e5abcb5d4f4cec8b475f2a812a00c3218fb75f0f792cdeee301e265d22a98cb7"
--  name = "github.com/theckman/go-flock"
--  packages = ["."]
--  pruneopts = "UT"
--  revision = "b139a2487364247d91814e4a7c7b8fdc69e342b2"
--  version = "v0.4.0"
--
- [solve-meta]
-   analyzer-name = "dep"
-   analyzer-version = 1
-   input-imports = [
-+    "github.com/gofrs/flock",
-     "github.com/pkg/errors",
-     "github.com/spf13/pflag",
-     "github.com/stretchr/testify/assert",
-     "github.com/stretchr/testify/require",
--    "github.com/theckman/go-flock",
-   ]
-   solver-name = "gps-cdcl"
-   solver-version = 1
-diff --git a/Gopkg.toml b/Gopkg.toml
-index 0d37060..59fa533 100644
---- a/Gopkg.toml
-+++ b/Gopkg.toml
-@@ -34,8 +34,8 @@
-   version = "1.2.2"
- 
- [[constraint]]
--  name = "github.com/theckman/go-flock"
--  version = "0.4.0"
-+  name = "github.com/gofrs/flock"
-+  version = "0.7.0"
- 
- [prune]
-   go-tests = true
-diff --git a/cmd/geoipupdate/main.go b/cmd/geoipupdate/main.go
-index 6693ea6..59932b4 100644
---- a/cmd/geoipupdate/main.go
-+++ b/cmd/geoipupdate/main.go
-@@ -16,7 +16,7 @@ import (
- 	"time"
- 
- 	"github.com/pkg/errors"
--	flock "github.com/theckman/go-flock"
-+	"github.com/gofrs/flock"
- )
- 
- // version is the program's version number.
-@@ -76,7 +76,7 @@ func setup(
- 		return nil, err
- 	}
- 
--	lock := flock.NewFlock(config.LockFile)
-+	lock := flock.New(config.LockFile)
- 	ok, err := lock.TryLock()
- 	if err != nil {
- 		return nil, errors.Wrap(err, "error acquiring a lock")

diff --git a/geoipupdate-4.0.3-go-modules.patch b/geoipupdate-4.0.3-go-modules.patch
new file mode 100644
index 0000000..b90c28b
--- /dev/null
+++ b/geoipupdate-4.0.3-go-modules.patch
@@ -0,0 +1,172 @@
+commit d1dacd72c8171f97dc641f73a38e1608b1c5ab46
+Author: Gregory Oschwald <goschwald@maxmind.com>
+Date:   Wed Jun 5 15:23:23 2019 -0700
+
+    Switch from dep to Go modules
+
+diff --git a/Gopkg.lock b/Gopkg.lock
+deleted file mode 100644
+index 47d965c..0000000
+--- a/Gopkg.lock
++++ /dev/null
+@@ -1,66 +0,0 @@
+-# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
+-
+-
+-[[projects]]
+-  digest = "1:a2c1d0e43bd3baaa071d1b9ed72c27d78169b2b269f71c105ac4ba34b1be4a39"
+-  name = "github.com/davecgh/go-spew"
+-  packages = ["spew"]
+-  pruneopts = "UT"
+-  revision = "346938d642f2ec3594ed81d874461961cd0faa76"
+-  version = "v1.1.0"
+-
+-[[projects]]
+-  digest = "1:70f34ee6d1b188cbd2dfcde62b0e2c600262eb5a03c8a3f3435ecf7c74790470"
+-  name = "github.com/gofrs/flock"
+-  packages = ["."]
+-  pruneopts = "UT"
+-  revision = "7f43ea2e6a643ad441fc12d0ecc0d3388b300c53"
+-  version = "v0.7.0"
+-
+-[[projects]]
+-  digest = "1:40e195917a951a8bf867cd05de2a46aaf1806c50cf92eebf4c16f78cd196f747"
+-  name = "github.com/pkg/errors"
+-  packages = ["."]
+-  pruneopts = "UT"
+-  revision = "645ef00459ed84a119197bfb8d8205042c6df63d"
+-  version = "v0.8.0"
+-
+-[[projects]]
+-  digest = "1:0028cb19b2e4c3112225cd871870f2d9cf49b9b4276531f03438a88e94be86fe"
+-  name = "github.com/pmezard/go-difflib"
+-  packages = ["difflib"]
+-  pruneopts = "UT"
+-  revision = "792786c7400a136282c1664665ae0a8db921c6c2"
+-  version = "v1.0.0"
+-
+-[[projects]]
+-  digest = "1:9424f440bba8f7508b69414634aef3b2b3a877e522d8a4624692412805407bb7"
+-  name = "github.com/spf13/pflag"
+-  packages = ["."]
+-  pruneopts = "UT"
+-  revision = "583c0c0531f06d5278b7d917446061adc344b5cd"
+-  version = "v1.0.1"
+-
+-[[projects]]
+-  digest = "1:c40d65817cdd41fac9aa7af8bed56927bb2d6d47e4fea566a74880f5c2b1c41e"
+-  name = "github.com/stretchr/testify"
+-  packages = [
+-    "assert",
+-    "require",
+-  ]
+-  pruneopts = "UT"
+-  revision = "f35b8ab0b5a2cef36673838d662e249dd9c94686"
+-  version = "v1.2.2"
+-
+-[solve-meta]
+-  analyzer-name = "dep"
+-  analyzer-version = 1
+-  input-imports = [
+-    "github.com/gofrs/flock",
+-    "github.com/pkg/errors",
+-    "github.com/spf13/pflag",
+-    "github.com/stretchr/testify/assert",
+-    "github.com/stretchr/testify/require",
+-  ]
+-  solver-name = "gps-cdcl"
+-  solver-version = 1
+diff --git a/Gopkg.toml b/Gopkg.toml
+deleted file mode 100644
+index 59fa533..0000000
+--- a/Gopkg.toml
++++ /dev/null
+@@ -1,42 +0,0 @@
+-# Gopkg.toml example
+-#
+-# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
+-# for detailed Gopkg.toml documentation.
+-#
+-# required = ["github.com/user/thing/cmd/thing"]
+-# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
+-#
+-# [[constraint]]
+-#   name = "github.com/user/project"
+-#   version = "1.0.0"
+-#
+-# [[constraint]]
+-#   name = "github.com/user/project2"
+-#   branch = "dev"
+-#   source = "github.com/myfork/project2"
+-#
+-# [[override]]
+-#   name = "github.com/x/y"
+-#   version = "2.4.0"
+-#
+-# [prune]
+-#   non-go = false
+-#   go-tests = true
+-#   unused-packages = true
+-
+-
+-[[constraint]]
+-  name = "github.com/pkg/errors"
+-  version = "0.8.0"
+-
+-[[constraint]]
+-  name = "github.com/stretchr/testify"
+-  version = "1.2.2"
+-
+-[[constraint]]
+-  name = "github.com/gofrs/flock"
+-  version = "0.7.0"
+-
+-[prune]
+-  go-tests = true
+-  unused-packages = true
+diff --git a/go.mod b/go.mod
+new file mode 100644
+index 0000000..e2a7347
+--- /dev/null
++++ b/go.mod
+@@ -0,0 +1,13 @@
++module github.com/maxmind/geoipupdate
++
++go 1.12
++
++require (
++	github.com/davecgh/go-spew v1.1.1 // indirect
++	github.com/gofrs/flock v0.7.1
++	github.com/kr/pretty v0.1.0 // indirect
++	github.com/pkg/errors v0.8.1
++	github.com/spf13/pflag v1.0.3
++	github.com/stretchr/testify v1.3.0
++	gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
++)
+diff --git a/go.sum b/go.sum
+new file mode 100644
+index 0000000..aaa33eb
+--- /dev/null
++++ b/go.sum
+@@ -0,0 +1,21 @@
++github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
++github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
++github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
++github.com/gofrs/flock v0.7.1 h1:DP+LD/t0njgoPBvT5MJLeliUIVQR03hiKR6vezdwHlc=
++github.com/gofrs/flock v0.7.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU=
++github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
++github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
++github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
++github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
++github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
++github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
++github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
++github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
++github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
++github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg=
++github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
++github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
++github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
++github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
++gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
++gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

diff --git a/geoipupdate.spec b/geoipupdate.spec
index 9c7e211..9edfb6f 100644
--- a/geoipupdate.spec
+++ b/geoipupdate.spec
@@ -1,14 +1,14 @@
 %global forgeurl https://github.com/maxmind/geoipupdate
-Version:	4.0.2
+Version:	4.0.3
 %forgemeta
 Name:		geoipupdate
-Release:	2%{?dist}
+Release:	1%{?dist}
 Summary:	Update GeoIP2 and GeoIP Legacy binary databases from MaxMind
 License:	ASL 2.0 or MIT
 URL:		http://dev.maxmind.com/geoip/geoipupdate/
 Source0:	%{forgesource}
 Source1:	geoipupdate.cron
-Patch0:		geoipupdate-4.0.1-flock.patch
+Patch0:		geoipupdate-4.0.3-go-modules.patch
 ExclusiveArch:	%{go_arches}
 BuildRequires:	compiler(go-compiler)
 BuildRequires:	coreutils
@@ -48,9 +48,8 @@ MaxMind.
 # Remove bundled dependencies
 rm -rf vendor/
 
-# go-flock renamed upstream and new API preferred
-# https://github.com/maxmind/geoipupdate/pull/22
-%patch0 -p1
+# Revert switch to Go Modules as our tooling isn't ready for that yet
+%patch0 -p1 -R
 
 %build
 # Set up temporary build gopath and put our directory there
@@ -113,6 +112,13 @@ cd -
 %config(noreplace) %{_sysconfdir}/cron.weekly/geoipupdate
 
 %changelog
+* Mon Jun 10 2019 Paul Howarth <paul@city-fan.org> - 4.0.3-1
+- Update to 4.0.3
+  - Update flock dependency from 'theckman/go-flock' to 'gofrs/flock' (GH#22)
+  - Switch to Go modules and update dependencies
+  - Fix version output on Ubuntu PPA and Homebrew releases
+- Revert switch to Go Modules as our tooling isn't ready for that yet
+
 * Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.2-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
 

diff --git a/sources b/sources
index eba083c..097c04c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (geoipupdate-4.0.2.tar.gz) = 48ce2bf5781f19e470f8f5a8b41e1d3b19ad1dd2c8c0244f8d9f6f64688ffd062ac93506fc3e831556cbe5894c514014176254c666ba78680001dc75f27891b2
+SHA512 (geoipupdate-4.0.3.tar.gz) = 870f930a54a45f5fe14c8328158ea2c8d2d8e4320a5400abc8ec18ae1e234426e86492a41868ccd3bf649acf0cd347722683326817359fed7d147ab21eb64397

                 reply	other threads:[~2026-11-25 19:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=179563560771.1.1938780255875423507.rpms-geoipupdate-fc0d813fbb81@fedoraproject.org \
    --to=paul@city-fan.org \
    --cc=git-commits@fedoraproject.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