Package Details: ergochat 2.14.0-1

Git Clone URL: https://aur.archlinux.org/ergochat.git (read-only, click to copy)
Package Base: ergochat
Description: A modern IRC server written in Go
Upstream URL: https://github.com/ergochat/ergo
Keywords: ergo irc ircd oragono
Licenses: MIT
Conflicts: oragono
Provides: oragono
Replaces: oragono
Submitter: vith
Maintainer: ChrisTX
Last Packager: ChrisTX
Votes: 7
Popularity: 0.006413
First Submitted: 2021-06-17 22:00 (UTC)
Last Updated: 2024-08-29 18:42 (UTC)

Latest Comments

1 2 Next › Last »

ChrisTX commented on 2024-07-12 15:10 (UTC)

My suggestion for changes would be as following, that's in line with what the Wiki says as well. The DWARF compression causes a warning for example.

diff --git a/PKGBUILD b/PKGBUILD
index ca78aee..5413fc0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@

 pkgname=ergochat
 _upstream_pkgname=ergo
-pkgver=2.13.1
+pkgver=2.14.0
 pkgrel=1
 pkgdesc="A modern IRC server written in Go"
 arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
@@ -11,6 +11,7 @@ url="https://github.com/ergochat/ergo"
 license=('MIT')
 install=install
 depends=('glibc')
+optdepends=('ergochat-ldap: LDAP authentication support')
 makedepends=('go' 'git')
 source=("git+$url#tag=v$pkgver"
     "config.patch"
@@ -47,10 +48,15 @@ build() {
     #   ergo W: ELF file ('usr/bin/ergo') lacks FULL RELRO, check LDFLAGS.
     #   ergo W: ELF file ('usr/bin/ergo') lacks PIE.
     # related: https://bugs.archlinux.org/task/60928
+    export CGO_CPPFLAGS="${CPPFLAGS}"
+    export CGO_CFLAGS="${CFLAGS}"
+    export CGO_CXXFLAGS="${CXXFLAGS}"
     go build \
         -trimpath \
         -buildmode=pie \
-        -ldflags "-X main.commit=${GIT_COMMIT} -linkmode external -extldflags \"${LDFLAGS}\"" \
+        -mod=vendor \
+        -modcacherw \
+        -ldflags "-X main.commit=${GIT_COMMIT} -compressdwarf=false -linkmode external -extldflags \"${LDFLAGS}\"" \
         -v \
         .

ChrisTX commented on 2024-06-21 00:19 (UTC)

  1. The package is not passing the CFLAGS etc. to Go, which does make a difference for the built binaries. Here's the lines in the Arch wiki to copy https://wiki.archlinux.org/title/Go_package_guidelines#Flags_and_build_options
  2. I just uploaded the ergo-ldap plugin to AUR. Could you add it as an optional depends for people that want to use LDAP? https://aur.archlinux.org/packages/ergochat-ldap

vith commented on 2022-09-18 10:17 (UTC)

@SilverRainZ thanks for the suggestion. updated the arch array

SilverRainZ commented on 2022-09-09 13:03 (UTC) (edited on 2022-09-09 13:04 (UTC) by SilverRainZ)

ergochat is written in Golang, which should work with multiple architectures without changes. can you please change the arch to ('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')?

Strykar commented on 2021-08-14 00:19 (UTC)

Any chance of adding HOPM (Hybrid Open Proxy Monitor) to the AUR to go with this?

vith commented on 2021-06-30 19:37 (UTC)

oops. added ruby to makedepends. thanks

quite commented on 2021-06-30 19:22 (UTC)

ruby is a dependency!

vith commented on 2021-06-17 22:05 (UTC)

"oragono" is now "ergo"

here on the AUR there was already a package named "ergo", so "ergochat" is the new package: https://aur.archlinux.org/packages/ergochat/

enckse commented on 2018-04-10 23:54 (UTC) (edited on 2018-04-11 13:32 (UTC) by enckse)

Prior to 0.10.3-6 the service did not use an "oragono" user and provided a default motd file. to transition a system that was previously running, you will have to change ownership in /var/lib/oragono of the currently existing files to the oragono user and group. if you wish to keep your motd file/the default provided please copy it somewhere safe and restore to /var/lib/oragono after update.

Prior to 0.10.3-4 the default config logged to file and this aur package provided a log rotate. that log rotate is no longer included BUT your config is part of backup if you already installed so you may either want to manually manage the log rotate going forward OR change to log to journald (suggested)

e.g. change to stdout/stderr logging setup your logging like this

logging:
    -
        # how to log these messages
        #
        #   file    log to given target filename
        #   stdout  log to stdout
        #   stderr  log to stderr
        method: stdout stderr

        # filename to log to, if file method is selected
        #filename: ircd.log

here is the previously supplied log rotate script if you want to log to file and manage it yourself going forward

/var/log/oragono.log {
    copytruncate
    monthly
    compress
    missingok
    notifempty
    rotate 12
    postrotate
        pkill --signal 1 oragono
    endscript
}

[0] https://github.com/oragono/oragono/issues/121

enckse commented on 2017-12-23 13:25 (UTC)

thanks package updated