Package Details: openrdap-client 0.9.1-2

Git Clone URL: https://aur.archlinux.org/openrdap-client.git (read-only, click to copy)
Package Base: openrdap-client
Description: OpenRDAP is an command line RDAP client implementation in Go.
Upstream URL: https://www.openrdap.org/
Licenses: MIT
Submitter: gcmalloc
Maintainer: HurricanePootis
Last Packager: HurricanePootis
Votes: 0
Popularity: 0.000000
First Submitted: 2018-12-06 13:17 (UTC)
Last Updated: 2024-07-13 21:49 (UTC)

Required by (0)

Sources (1)

Latest Comments

HurricanePootis commented on 2024-09-24 06:37 (UTC)

@kemelzaidan, I was able to build openrdap-client inside of a clean chroot build.

Make sure you /etc/makepkg.conf has the latest build flags by checking out via pacdiff.

kemelzaidan commented on 2024-09-11 18:51 (UTC)

I'm having the following error...

# runtime/cgo
<command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
<command-line>: note: this is the location of the previous definition
cc1: all warnings being treated as errors
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: openrdap-client-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
openrdap-client - exit status 4

HurricanePootis commented on 2024-05-31 02:50 (UTC) (edited on 2024-06-26 21:00 (UTC) by HurricanePootis)

Hello, this package currently has some problems.

1: Does not list glibc as a dependency 2: Does not pass the makepkg.conf flags to GO 3: Improperly set the permissions on the main binary 4: Renamed the main binary to the pkgname, which is not correct nor a decision for the maintainer to make in this case.

Here is a patch file to fix this,

diff --git a/PKGBUILD b/PKGBUILD
index aa34eb5..e47d30d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,17 +7,23 @@ pkgdesc="OpenRDAP is an command line RDAP client implementation in Go."
 url="https://www.openrdap.org/"
 arch=("x86_64")
 license=("MIT")
+depends=("glibc")
 makedepends=("go")
 source=("$pkgname-$pkgver.tar.gz"::"https://github.com/openrdap/rdap/archive/v$pkgver.tar.gz")
 sha256sums=("06a330a9e7d87d89274a0bcedc5852b9f6a4df81baec438fdb6156f49068996d")

 build() {
    cd rdap-${pkgver}/cmd/rdap
+   export CGO_CPPFLAGS="${CPPFLAGS}"
+   export CGO_CFLAGS="${CFLAGS}"
+   export CGO_CXXFLAGS="${CXXFLAGS}"
+   export CGO_LDFLAGS="${LDFLAGS}"
+   export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
    go build
 }

 package() {
    cd rdap-${pkgver}
-   install -Dm756 cmd/rdap/rdap "$pkgdir/usr/bin/${pkgname}"
+   install -Dm755 cmd/rdap/rdap "$pkgdir/usr/bin/rdap"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }

Brocellous commented on 2024-04-21 22:28 (UTC)

install -Dm756 cmd/rdap/rdap "$pkgdir/usr/bin/${pkgname}"

756?? Surely you want 755...

gcmalloc commented on 2024-04-09 09:47 (UTC)

After much delay, this should be fixed and the package was also updated.

sebastiancarlos commented on 2023-09-27 08:38 (UTC)

This updated version of the PKGBUILD worked for me:

pkgname=openrdap-client
pkgver=0.9.1
pkgrel=1
pkgdesc="OpenRDAP is an command line RDAP client implementation in Go."
url="https://www.openrdap.org/"
arch=("x86_64")
license=("MIT")
makedepends=("go")
source=("$pkgname-$pkgver.tar.gz"::"https://github.com/openrdap/rdap/archive/v$pkgver.tar.gz")
sha256sums=("06a330a9e7d87d89274a0bcedc5852b9f6a4df81baec438fdb6156f49068996d")

prepare() {
    export GOPATH="${srcdir}"
    export PATH="$PATH:$GOPATH/bin"
    mkdir -p ${srcdir}/github.com/openrdap/
    mv "rdap-${pkgver}" ${srcdir}/github.com/openrdap/${pkgname}
        mkdir -p ${srcdir}/build
}


build() {
    cd ${srcdir}/github.com/openrdap/"${pkgname}"
    go build -o ${srcdir}/build ./cmd/...
}


package() {
    install -Dm755 build/rdap "$pkgdir/usr/bin/rdap"
    cd github.com/openrdap/"${pkgname}"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

s3lph commented on 2022-07-25 13:16 (UTC)

Newer go version (go version go1.18.3 linux/amd64), new error:

go: go.mod file not found in current directory or any parent directory.
    'go get' is no longer supported outside a module.
    To build and install a command, use 'go install' with a version,
    like 'go install example.com/cmd@latest'
    For more information, see https://golang.org/doc/go-get-install-deprecation
    or run 'go help get' or 'go help install'.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: openrdap-client

chovy commented on 2021-12-06 10:24 (UTC) (edited on 2021-12-06 10:24 (UTC) by chovy)

go: cannot find main module, but found .git/config in /home/user/.cache/yay/openrdap-client
        to create a module there, run:
        cd ../../../../.. && go mod init
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: openrdap-client

chovy commented on 2021-12-06 10:23 (UTC)

seems outdated. any update?

firoz commented on 2021-04-10 11:40 (UTC)

go: cannot find main module, but found .git/config in ~/openrdap-client to create a module there, run: cd ../../../../.. && go mod init