Package Details: pgagent 4.2.3-1

Git Clone URL: https://aur.archlinux.org/pgagent.git (read-only, click to copy)
Package Base: pgagent
Description: Job scheduler for PostgreSQL which may be managed using pgAdmin
Upstream URL: https://www.pgadmin.org/docs/pgadmin4/latest/pgagent.html
Licenses: custom
Submitter: kobi
Maintainer: mrxx
Last Packager: mrxx
Votes: 5
Popularity: 0.29
First Submitted: 2013-08-07 19:49 (UTC)
Last Updated: 2026-03-17 21:12 (UTC)

Latest Comments

1 2 Next › Last »

mrxx commented on 2026-03-17 21:28 (UTC)

@brody As you said, the problem is that aur/cmake3 declares extra/cmake (which is v4) as conflict which would mean a downgrade for existing cmake v4 users just for this package. Apart from that it pulls a whole bunch of dependencies like qt6 and emacs and confuses users by aborting the first time because of an unknown key. And on top of that it takes a long time to compile.

cmake3-bin, on the other hand, is a quick install, does coexist with extra/cmake and provides a /usr/bin/cmake3 binary which allows compiling this package while preserving /usr/bin/cmake for other packages which already need v4. I suppose this has been the reason why localghost suggested it, and I should have kept it in the first place. I've updated the PKGBUILD accordingly.

@localghost Increasing the pkgrel triggers a rebuild for all existing users, but the recent changes were just an adaption in order to make the package build for new installs. If existing users do not benefit from an update, there is no need to force it upon them. Their installs will continue to run perfectly. Of course, as soon as there is a new upstream release or the need for adaptions which affect existing users, too, I'll increase the pkgrel or the pkgver.

brody commented on 2026-03-17 19:56 (UTC)

But then you aren’t using the AUR package “cmake3,” since that particular package doesn’t provide a cmake3 binary. (Or you’ve modified it.) Furthermore, that specific cmake3 AUR package conflicts with the cmake package, so the behavior you described in your explanation simply cannot occur.

I, on the other hand, build the package in a clean chroot environment, as described at https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot.

This way, no unwanted cmake binary program interferes, which could accidentally be introduced by another installed cmake package.

mrxx commented on 2026-03-17 18:52 (UTC)

@brody Yes, I set makedepends to 'cmake3', not 'cmake3-bin' as suggested by localghost. The command must be cmake3, accordingly. cmake invokes cmake4 which refuses to build the package.

localghost commented on 2026-03-17 15:30 (UTC)

And also 4.2.3-1 it should go to 4.2.3-2, 4.2.3-3.... with each commit Bro, can you make me a co-maintainer?

brody commented on 2026-03-17 14:43 (UTC)

The makedepends needs cmake3 but the command is cmake not cmake3.

mrxx commented on 2026-03-17 13:06 (UTC)

Thank you for the hint, brody, and thank you for the update, localghost.

localghost commented on 2026-03-17 10:03 (UTC) (edited on 2026-03-17 10:04 (UTC) by localghost)

As of today, to be able to build the project with current cMake and boost one needs the following build-file

# Maintainer: mrxx <mrxx at cyberhome dot at>
# Contributor: Jure Kobal <j dot kobal at gmx dot com>

pkgname=pgagent
_pkg=pgAgent
pkgver=4.2.3
pkgrel=1
pkgdesc="Job scheduler for PostgreSQL which may be managed using pgAdmin"
url="https://www.pgadmin.org/docs/pgadmin4/latest/pgagent.html"
arch=('x86_64' 'i686' 'aarch64')
license=('custom')
depends=('postgresql-libs' 'boost')
makedepends=('cmake3-bin')
source=(https://github.com/pgadmin-org/pgagent/archive/refs/tags/${pkgname}-${pkgver}.tar.gz
        ${pkgname}@localhost
        ${pkgname}@.service)
sha256sums=('d4af82e8b4063aa1ca9c407562a3bbc9c9951353538f83d82a7e523f40276388'
            '27621bcd7b0f9c5ce5a3680e3df5b7696c3573add25a5ae5730ee6cdbd57e759'
            '4bded1fb970358ff7c98d38b28be1568967f22055bc98cb23f9ae4e3385e3610')
backup=('etc/conf.d/pgagent@localhost')
install=${pkgname}.install

build() {
  cd "${srcdir}/${pkgname}-${pkgname}-${pkgver}"

  sed -i 's/FIND_PACKAGE(Boost COMPONENTS filesystem regex date_time thread system)/FIND_PACKAGE(Boost COMPONENTS filesystem regex date_time thread)/g' CMakeLists.txt

  cmake3 ./ -DCMAKE_INSTALL_PREFIX=/usr -DSTATIC_BUILD:BOOL=OFF -DCMAKE_CXX_FLAGS=-pthread
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install

  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  rm ${pkgdir}/usr/{README,LICENSE}

  cd ${srcdir}
  install -Dm644 ${pkgname}@localhost "${pkgdir}/etc/conf.d/${pkgname}@localhost"
  install -Dm644 ${pkgname}@.service "${pkgdir}/usr/lib/systemd/system/${pkgname}@.service"
}

brody commented on 2025-06-22 10:38 (UTC)

Package needs cmake3 as makedepends to be buildable.

marlop352 commented on 2022-12-29 12:09 (UTC)

@mrxx thanks!

mrxx commented on 2022-11-29 12:21 (UTC)

Thank you, marlop352. Added aarch64 as supported platform.