Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 684966 - net-misc/geoipupdate-4.0.3 version bump
Summary: net-misc/geoipupdate-4.0.3 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: NeedPatch, PullRequest
Depends on:
Blocks:
 
Reported: 2019-05-03 08:40 UTC by Jeroen Roovers (RETIRED)
Modified: 2019-08-06 05:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2019-05-03 08:40:18 UTC
Has been turned into a go project.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-06-08 13:20:35 UTC
I have made an attempt at gathering the basic information but this does not result in a working ebuild. The eclasses mystify me. Perhaps the dev-lang/go maintainer can help write this ebuild? Thanks.


# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=7
EGO_ON="github.com/maxmind"
EGO_PN="${EGO_ON}/${PN}"
EGO_VENDOR=(
    "${EGO_PN} v${PV}"
    "github.com/pkg/errors v0.8.1"
    "github.com/spf13/pflag v1.0.3"
    "github.com/theckman/go-flock v0.7.1"
)
inherit golang-build golang-vcs-snapshot

DESCRIPTION="performs automatic updates of GeoIP2 and GeoIP Legacy binary databases"
HOMEPAGE="https://github.com/maxmind/geoipupdate"
SRC_URI="
    ${EGO_VENDOR_URI}
"
Comment 2 Ferdinand Kuhl 2019-07-31 14:06:34 UTC
The new ebuild builds the go projet without overriding the defaults from the repository. Which means that data and configuration is searched for in new locations.

I updated the ebuild like this:


src_compile() {
        cd src/${EGO_PN} || die
        # requires pandoc but the information is still in the distributed md files
        sed -i -e '/GeoIP.conf.5 /d' -e '/geoipupdate.1$/d' Makefile || die
        sed -i -e 's/go build/go build -x/' Makefile || die

        export CONFFILE=/etc/GeoIP.conf
        export DATADIR=/usr/share/GeoIP

        # the horror, the horror ... but it's all automagic
        export GO111MODULE=on
        export GOFLAGS=-mod=vendor
        default
}


I'm quite sure in the new exports is a configured prefix missing, but could not find the corresponding variable carrying it.

But if these or not set, it searches in /usr/local - which is unexpected for a package from distributions repository
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2019-08-06 05:58:03 UTC
commit a98b07cfd740df5a4dd75773521e73788d1027d4
Author: Patrick Lauer <patrick@gentoo.org>
Date:   Sun Jul 28 18:43:15 2019 +0200

    net-misc/geoipupdate: Bump

    New version is rewritten in Go, so ebuild is very different.
    Based on work by Wiktor Kerr <wiktor@adjust.com>

    Package-Manager: Portage-2.3.69, Repoman-2.3.16
    Signed-off-by: Patrick Lauer <patrick@gentoo.org>