Re: libcourier-auth Debian packaging issue

Krystal Clarke via courier-users <[email protected]>
Newsgroups gmane.mail.imap.courier.general
Message-ID <[email protected]>
On 27/4/24 02:29, Sam Varshavchik wrote:
> Krystal Clarke via courier-users writes:
>
>> 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
>
> Debugging of this is needed to figure out what's not working. But I 
> have a pretty good guess.
>
> debhelper wants to run "make check" by default. It's running make check.
>
> For courier packages, the testsuite requires the en_US.UTF-8 locale, 
> and in the last couple of years it's become fashionable to strip out 
> all locales from all containers, by default.
>
> You need to install the "locales" package in the container and then 
> run "locale-gen en_US.UTF-8".

That hit me when I was developing this Dockerfile and building the 
container initially (about a year ago), and that's actually the very 
first thing I actually do:

RUN apt-get update && apt-get -y install locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen 
&& locale-gen
ENV LC_ALL="en_US.UTF-8" LANG="en_US.UTF-8" LANGUAGE="en_US:en"

> Alternatively, add:
>
> override_dh_auto_test:
> <tab>:
>
> to packaging/debian/rules

I'll give that a shot, but it won't be straight forward getting that 
added in to the relevant file without a bit of effort.

My Dockerfile downloads the specified version of each of courier, 
courier-authlib & courier-unicode, extracts just the courier-debuild 
script from each tarball maintaining the directory structure from inside 
the tarball.

Then the Dockerfile moves in to the courier-unicode directory, and runs 
that courier-debuild script to build the -unicode library.  The 
courier-debuild script untars the entire tarball to then run the build 
process.  Lastly, the Dockerfile installs all non-debug .deb's generated.

The Dockerfile then moves on to courier-authlib, and repeats the process.

Lastly, it does the same for the main courier package.


So, I'll have to extract packaging/debian/rules from the courier 
tarball, edit it and re-insert it between downloading it and starting 
the courier-debuild process...


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.