Package Details: daemontools-encore 1.11-1

Git Clone URL: https://aur.archlinux.org/daemontools-encore.git (read-only, click to copy)
Package Base: daemontools-encore
Description: collection of tools for managing UNIX services - derived from the public-domain release of daemontools by D. J. Bernstein.
Upstream URL: https://untroubled.org/daemontools-encore
Licenses: MIT
Submitter: uffe
Maintainer: a821
Last Packager: a821
Votes: 3
Popularity: 0.000000
First Submitted: 2013-11-24 23:08 (UTC)
Last Updated: 2026-01-25 12:47 (UTC)

Latest Comments

simona commented on 2026-01-25 14:56 (UTC)

tnx. solved.

simona commented on 2025-11-30 17:51 (UTC)

In file included from buffer_1.c:3:
buffer.h:14:61: error: initialization of ‘int ()(void)’ from incompatible pointer type ‘int ()(int,  const char , unsigned int)’ [-Wincompatible-pointer-types]
14 | #define BUFFER_INIT(op,fd,buf,len) { (buf), 0, (len), (fd), (op) }
|                                                             ^
buffer_1.c:6:20: note: in expansion of macro ‘BUFFER_INIT’
6 | static buffer it = BUFFER_INIT(buffer_unixwrite,1,buffer_1_space,sizeof buffer_1_space);
|                    ^
buffer.h:14:61: note: (near initialization for ‘it.op’)
14 | #define BUFFER_INIT(op,fd,buf,len) { (buf), 0, (len), (fd), (op) }
|                                                             ^
buffer_1.c:6:20: note: in expansion of macro ‘BUFFER_INIT’
6 | static buffer it = BUFFER_INIT(buffer_unixwrite,1,buffer_1_space,sizeof buffer_1_space);
|                    ^
buffer.h:55:12: note: ‘buffer_unixwrite’ declared here
55 | extern int buffer_unixwrite(int,const char ,unsigned int);
|            ^~~~
make: *** [Makefile:19: buffer_1.o] Error 1

lezsakdomi commented on 2025-11-30 17:20 (UTC)

All in all, the following PKGBUILD seems to build successfully:

# Maintainer: Robin Broda <robin at broda dot me>
# Contributor: Uffe Jakobsen <uffe@uffe.org>

pkgname=daemontools-encore
pkgver=1.11
pkgrel=1
pkgdesc="collection of tools for managing UNIX services - derived from the public-domain release of daemontools by D. J. Bernstein."
arch=('i686' 'x86_64')
url="https://untroubled.org/daemontools-encore"
license=('MIT')
depends=('sh')
source=("https://untroubled.org/daemontools-encore/${pkgname}-${pkgver}.tar.gz"
        'ldflags.patch'
        'cflags.patch')
sha256sums=('3bab6cf1de2bdefa607d42a8f50577f2664b6a29b273b98cd0b3b8f7781d8b72'
            '3842bbef9690295e77faab723205361667415f9788de6e09150f02e6a006c423'
            'b61e21071c1f115d32dd36f58f826310981e17978f5542e15da071abaf6fe22a')

prepare() {
  cd "${pkgname}-${pkgver}"

  patch conf-cc "${srcdir}/cflags.patch"
  patch conf-ld "${srcdir}/ldflags.patch"
}

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

  make CFLAGS="$CFLAGS -std=gnu17 -D_GNU_SOURCE"
}

package() {
  cd "${pkgname}-${pkgver}"

  path_bin="${pkgdir}/usr/bin"
  path_man="${pkgdir}/usr/share/man"

  install -dm755 "${path_bin}"
  install -dm755 "${path_man}"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

  echo "${path_bin}" > conf-bin
  echo "${path_man}" > conf-man

  make DESTDIR="${pkgdir}/" install
}

Although installation fails:

==> Entering fakeroot environment...
==> Starting package()...
./installer `head -n 1 conf-bin` <BIN
./installer `head -n 1 conf-man` <MAN
installer: fatal: unable to read setuser.8: file does not exist
make: *** [Makefile:231: install] Error 111
==> ERROR: A failure occurred in package().
    Aborting...
 -> error making: daemontools-encore-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
daemontools-encore - exit status 4

Modifying only the build() and not bumping the version seems to install perfectly. Probably 1.11 has some missing manpages, which causes errors, so the out-of-date flag is kinda invalid?

lezsakdomi commented on 2025-11-30 17:02 (UTC)

Even though on the latest version, compiling with gcc 15 from Manjaro Testing, one would face incompatible-pointer-types error, as in the following issue: https://github.com/bruceg/daemontools-encore/issues/69

Fix is provided in the ticket, a workaround could be replacing make with make CFLAGS="$CFLAGS -std=gnu17"

lezsakdomi commented on 2025-11-30 16:59 (UTC)

Could be bumped to 1.11. The latest commit mistakenly mentions 1.10, but in reality the latest version is 1.11, probably even the latest version bump in 2018 could have included that

lezsakdomi commented on 2025-11-30 16:52 (UTC)

For the sig_pause problem a "hotfix" is provided in https://github.com/bruceg/daemontools-encore/issues/68. Tested, seems to work, both removing the ifdef and adding -D_GNU_SOURCE. Maybe the latter can be easily added to the already existing patch file.

simona commented on 2025-03-11 22:28 (UTC)


sig_pause.c:14:3: error: implicit declaration of function ‘sigpause’; did you mean ‘sig_pause’? [-Wimplicit-function-declaration]
14 |   sigpause(0);
|   ^~~~~~~~
|   sig_pause
make: *** [Makefile:413: sig_pause.o] Error 1

dustball commented on 2015-07-27 18:24 (UTC)

The arch line needs to read arch=('i686' 'x86_64') without the comma which is presently there.