Re: libcourier-auth Debian packaging issue

Krystal Clarke via courier-users <[email protected]>
Newsgroups gmane.mail.imap.courier.general
Message-ID <[email protected]>
On 26/4/24 22:57, Sam Varshavchik wrote:
> Krystal Clarke via courier-users writes:
>
>> As the resultant .deb has `daemon-daemon` in the file name, am I 
>> correct in thinking that it has been configured to use the user & 
>> group of `daemon:daemon`?
>
> Yes.
>
>>                 IF that is the case, how do I change it to use 
>> `courier:courier`, given that I'm running `courier-debuild` from the 
>> `courier` user account?
>
> See the courier-debuild script itself:
>
> mailuser=${mailuser-daemon}
> mailgroup=${mailgroup-daemon}
>
> Just set mailuser and mailgroup environment variables before running 
> courier-debuild.

I hadn't thought to check that file.

I've added 'ENV mailuser=courier' & 'ENV mailgroup=courier' to the 
Dockerfile before it attempts to compile anything, and that has resulted 
in the file being created with `courier-courier` in the name.

Now, during compilation of courier itself, it's barfing:

make[3]: Entering directory 
'/tmp/courier-1.3.7/deb/courier-1.3.7/libs/maildrop'
VALGRIND="`which valgrind 2>/dev/null`"; export VALGRIND; \
         /bin/bash ./testsuite >testsuite.diff || exit 1; \
         sed '/^Message envelope sender/d' <testsuite.diff | \
         diff -U 3 - ./testsuite.txt.idn || exit 1; \
         rm -f testsuite.diff
make[3]: *** [Makefile:1140: check-am] Error 1
make[3]: Leaving directory 
'/tmp/courier-1.3.7/deb/courier-1.3.7/libs/maildrop'
make[2]: *** [Makefile:928: check] Error 2
make[2]: Leaving directory 
'/tmp/courier-1.3.7/deb/courier-1.3.7/libs/maildrop'
make[1]: *** [Makefile:466: check-recursive] Error 1
make[1]: Leaving directory '/tmp/courier-1.3.7/deb/courier-1.3.7'
dh_auto_test: error: make -j16 check "TESTSUITEFLAGS=-j16 --verbose" 
VERBOSE=1 returned exit code 2
make: *** [debian/rules:8: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit 
status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui failed
Error: building at STEP "RUN ./courier-debuild -us -uc": while running 
runtime: exit status 29

The last line is from Docker, but the rest would be from `courier-debuild`.

Any ideas what I need to fix to get past this?


Cheers,

Krystal.



_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.