Package Details: postsrsd 2.0.10-1

Git Clone URL: https://aur.archlinux.org/postsrsd.git (read-only, click to copy)
Package Base: postsrsd
Description: Provides the Sender Rewriting Scheme (SRS) via TCP-based lookup tables for Postfix
Upstream URL: https://github.com/roehling/postsrsd
Licenses: GPL2
Submitter: fordprefect
Maintainer: fordprefect
Last Packager: fordprefect
Votes: 3
Popularity: 0.013926
First Submitted: 2016-03-30 16:15 (UTC)
Last Updated: 2024-07-23 08:33 (UTC)

Latest Comments

1 2 3 4 5 6 Next › Last »

drzee commented on 2024-07-30 15:17 (UTC) (edited on 2024-07-30 15:24 (UTC) by drzee)

Digging a bit more into this.

If I go to /postsrsd/src/postsrsd-2.0.10/build/_deps/confuse-src/ and then run autoreconf --force --install to regenerate the files they are correctly configured for automake version 1.17.

Going into the build dir and manually executing make all then succeeds without error.

But when then I then try to build with makepkg -s in the PKGBUILD folder it again complains about version 1.16 missing and the files in /postsrsd/src/postsrsd-2.0.10/build/_deps/confuse-src/ are again generated for automake 1.16

Guess CMAKE files there must be a hardcoded reference to automake 1.16 - I have tried finding it but no luck.

Crudely adding these lines to PKGBUILD after the CMake comand and before make all will allow the package to build:

cd _deps/confuse-src/ 
autoreconf --force --install
cd ../..

drzee commented on 2024-07-25 21:55 (UTC) (edited on 2024-07-25 22:42 (UTC) by drzee)

Build error. Expects aclocal 1.16 but aclocal was updated with core/automake to 1.17 recently (20th of July).

Or is it actually libConfuse that needs to be build with the newest automake version?

Downgrading to automake 1.16 with: pacman -U /var/cache/pacman/pkg/automake-1.16.5-2-any.pkg.tar.zst allows for successful build.

/home/arch/.cache/yay/postsrsd/src/postsrsd-2.0.10/build/_deps/confuse-src support/missing: line 81: aclocal-1.16: command not found
WARNING: 'aclocal-1.16' is missing on your system.
    You should only need it if you modified 'acinclude.m4' or
    'configure.ac' or m4 files included by 'configure.ac'.
    The 'aclocal' program is part of the GNU Automake package:
    <https://www.gnu.org/software/automake>
    It also requires GNU Autoconf, GNU m4 and Perl in order to run:
    <https://www.gnu.org/software/autoconf>
    <https://www.gnu.org/software/m4/>
    <https://www.perl.org/>
make[3]: *** [Makefile:440: /home/arch/.cache/yay/postsrsd/src/postsrsd-2.0.10/build/_deps/confuse-src/aclocal.m4] Error 127
make[2]: *** [CMakeFiles/ExtConfuse.dir/build.make:87: ExtConfuse-prefix/src/ExtConfuse-stamp/ExtConfuse-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:970: CMakeFiles/ExtConfuse.dir/all] Error 2
make: *** [Makefile:166: all] Error 2`

fordprefect commented on 2024-06-07 11:04 (UTC)

@voidzero: looks like an upstream issue to me, but might also be related to the limited ressources in the container. Try to build in a normal environment and see if the error persists. I will also try to reproduce when I find time for it.

voidzero commented on 2024-06-05 10:46 (UTC) (edited on 2024-06-05 10:47 (UTC) by voidzero)

This package does not build anymore for me. I'm running my mail server in an lxc container. When trying to build this, it fails with tests:

[100%] Linking C executable postsrsd
[100%] Built target postsrsd
==> Starting check()...
Running tests...
Test project «dir»/.cache/paru/clone/postsrsd/src/postsrsd-2.0.9/build
Connected to MAKE jobserver
    Start 1: test_netstring
1/6 Test #1: test_netstring ...................***Failed    0.01 sec
    Start 2: test_sha1
2/6 Test #2: test_sha1 ........................***Failed    0.01 sec
    Start 3: test_util
3/6 Test #3: test_util ........................***Failed    0.01 sec
    Start 4: test_database
4/6 Test #4: test_database ....................***Failed    0.01 sec
    Start 5: test_srs2
5/6 Test #5: test_srs2 ........................***Failed    0.01 sec
    Start 6: test_socketmap
6/6 Test #6: test_socketmap ...................   Passed    0.28 sec

17% tests passed, 5 tests failed out of 6

Total Test time (real) =   0.33 sec

The following tests FAILED:
          1 - test_netstring (Failed)
          2 - test_sha1 (Failed)
          3 - test_util (Failed)
          4 - test_database (Failed)
          5 - test_srs2 (Failed)
Errors while running CTest
Output from these tests are in: «dir»/.cache/paru/clone/postsrsd/src/postsrsd-2.0.9/build/Testing/Temporary/LastTest.log

I've added the output from those tests in this gist

Is this something that can be fixed on the PKGBUILD or should I report it upstream? Thanks

fordprefect commented on 2024-05-02 12:41 (UTC)

No worries, mate. Such things slip by easily!

Torxed commented on 2024-05-02 12:29 (UTC)

That is fair. Built the package in a arch container and it struggled to find make. But yes that makes sense. Apologies for the noise.

fordprefect commented on 2024-05-02 12:16 (UTC)

@Torxed: Nitpicking back: IIRC, both are part of base-devel, prerequisite of building from AUR at all.

Torxed commented on 2024-05-02 12:14 (UTC)

Nitpicking, but I believe gcc and make are also makedepends:

diff --git a/PKGBUILD b/PKGBUILD
index d66b401..df20808 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgrel=1
 pkgdesc="Provides the Sender Rewriting Scheme (SRS) via TCP-based lookup tables for Postfix"
 arch=('i686' 'x86_64' 'armv7h')
 depends=('glibc' 'systemd')
-makedepends=('cmake' 'help2man')
+makedepends=('cmake' 'gcc' 'make' 'help2man')
 backup=("etc/$pkgname/$pkgname.conf" "etc/$pkgname/$pkgname.secret" "etc/$pkgname/$pkgname")    #last entry is legacy from version 1
 url="https://github.com/roehling/$pkgname"
 install=$pkgname.install

dreieck commented on 2023-03-27 20:50 (UTC)

Currently, configuration fails for me with

CMake Error at CMakeLists.txt:323 (install):
  install FILES given no DESTINATION!

Full terminal output of build():

==> Starting build()...
-- The C compiler identification is GNU 12.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for alloca.h
-- Looking for alloca.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for grp.h
-- Looking for grp.h - found
-- Looking for netdb.h
-- Looking for netdb.h - found
-- Looking for poll.h
-- Looking for poll.h - found
-- Looking for pwd.h
-- Looking for pwd.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for sys/file.h
-- Looking for sys/file.h - found
-- Looking for sys/inotify.h
-- Looking for sys/inotify.h - found
-- Looking for sys/socket.h
-- Looking for sys/socket.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sys/un.h
-- Looking for sys/un.h - found
-- Looking for sys/wait.h
-- Looking for sys/wait.h - found
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for wait.h
-- Looking for wait.h - found
-- Looking for close_range
-- Looking for close_range - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for _stricmp
-- Looking for _stricmp - not found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for _strnicmp
-- Looking for _strnicmp - not found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned long
-- Check size of unsigned long - done
CMake Error at CMakeLists.txt:323 (install):
  install FILES given no DESTINATION!


-- Turned off installing because Check is a subproject.
-- Turned off building tests because Check is a subproject.
CMake Deprecation Warning at build/_deps/check-src/CMakeLists.txt:42 (cmake_policy):
  The OLD behavior for policy CMP0076 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- Looking for 3 include files sys/types.h, ..., inttypes.h
-- Looking for 3 include files sys/types.h, ..., inttypes.h - found
-- Looking for 4 include files sys/types.h, ..., limits.h
-- Looking for 4 include files sys/types.h, ..., limits.h - found
-- Looking for 5 include files sys/types.h, ..., regex.h
-- Looking for 5 include files sys/types.h, ..., regex.h - found
-- Looking for 7 include files sys/types.h, ..., stdarg.h
-- Looking for 7 include files sys/types.h, ..., stdarg.h - found
-- Looking for 9 include files sys/types.h, ..., stdlib.h
-- Looking for 9 include files sys/types.h, ..., stdlib.h - found
-- Looking for 10 include files sys/types.h, ..., string.h
-- Looking for 10 include files sys/types.h, ..., string.h - found
-- Looking for 11 include files sys/types.h, ..., strings.h
-- Looking for 11 include files sys/types.h, ..., strings.h - found
-- Looking for 15 include files sys/types.h, ..., pthread.h
-- Looking for 15 include files sys/types.h, ..., pthread.h - found
-- Looking for 16 include files sys/types.h, ..., windows.h
-- Looking for 16 include files sys/types.h, ..., windows.h - not found
-- Looking for fork
-- Looking for fork - found
-- Looking for getline
-- Looking for getline - found
-- Looking for getpid
-- Looking for getpid - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Looking for malloc
-- Looking for malloc - found
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for realloc
-- Looking for realloc - found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strsignal
-- Looking for strsignal - found
-- Looking for _getpid
-- Looking for _getpid - not found
-- Looking for _strdup
-- Looking for _strdup - not found
-- Looking for alarm
-- Looking for alarm - found
-- Looking for regcomp
-- Looking for regcomp - found
-- Looking for regexec
-- Looking for regexec - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Performing Test HAVE_PTHREADS_FLAG
-- Performing Test HAVE_PTHREADS_FLAG - Success
-- Looking for INT64_MAX
-- Looking for INT64_MAX - found
-- Looking for INT64_MIN
-- Looking for INT64_MIN - found
-- Looking for UINT32_MAX
-- Looking for UINT32_MAX - found
-- Looking for UINT64_MAX
-- Looking for UINT64_MAX - found
-- Looking for SIZE_MAX
-- Looking for SIZE_MAX - found
-- Looking for SSIZE_MAX
-- Looking for SSIZE_MAX - found
-- Performing Test HAVE_STRUCT_ITIMERSPEC_IT_VALUE
-- Performing Test HAVE_STRUCT_ITIMERSPEC_IT_VALUE - Failed
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Check size of unsigned
-- Check size of unsigned - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Check size of unsigned long long
-- Check size of unsigned long long - done
-- Check size of __int64
-- Check size of __int64 - failed
-- Check size of unsigned __int64
-- Check size of unsigned __int64 - failed
-- Check size of int16_t
-- Check size of int16_t - done
-- Check size of int32_t
-- Check size of int32_t - done
-- Check size of int64_t
-- Check size of int64_t - done
-- Check size of intmax_t
-- Check size of intmax_t - done
-- Check size of uint8_t
-- Check size of uint8_t - done
-- Check size of uint16_t
-- Check size of uint16_t - done
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Check size of uint64_t
-- Check size of uint64_t - done
-- Check size of uintmax_t
-- Check size of uintmax_t - done
-- Check size of clock_t
-- Check size of clock_t - done
-- Check size of clockid_t
-- Check size of clockid_t - done
-- Check size of size_t
-- Check size of size_t - done
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Check size of pid_t
-- Check size of pid_t - done
-- Check size of timer_t
-- Check size of timer_t - done
-- Looking for floor in m
-- Looking for floor in m - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for subunit_test_start in subunit
-- Looking for subunit_test_start in subunit - not found
-- The following features have been disabled:

 * WITH_MILTER, run PostSRSd as milter
 * WITH_SQLITE, use SQLite as database backend
 * WITH_REDIS, use Redis as database backend
 * GENERATE_SRS_SECRET, generate missing /etc/postsrsd.secret on install

-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().

Regards!

mezcal commented on 2023-03-09 10:52 (UTC) (edited on 2023-03-09 10:53 (UTC) by mezcal)

Hello, I am thinking to upgrade to version 2. In the config file is unprivileged-user = "nobody". Should I left it? Is it better to run as postsrsd user? unprivileged-user = "postsrsd"