Bug 46562 - sa-compile upgrade fails on a system with a date of 2017
sa-compile upgrade fails on a system with a date of 2017
Status: CLOSED DUPLICATE of bug 44290
Product: UCS
Classification: Unclassified
Component: Mail
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3
Assigned To: Philipp Hahn
Sönke Schwardt-Krummrich
: interim-4
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-09 09:26 CET by Stefan Gohmann
Modified: 2018-03-14 14:38 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2018-03-09 09:26:34 CET
The UCS 4.3 upgrade fails on a system with a date of 2017:

sa-compile (3.4.1-6+deb9u1) wird eingerichtet ...
Running sa-compile (may take a long time)
make: Warnung: Datei „/usr/lib/x86_64-linux-gnu/perl/5.24/Config.pm“ hat hat in der Zukunft liegende Ände
rungszeit 9387727
make: *** [Makefile] Fehler 1
command 'make >>/tmp/.spamassassin229523SRaNktmp/log' failed: exit 2
ESC[1mdpkg:ESC[0m Fehler beim Bearbeiten des Paketes sa-compile (--configure):
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 25 zurück

root@slave424:~# date
Sa 27. Mai 05:21:03 CEST 2017
root@slave424:~#
Comment 1 Stefan Gohmann univentionstaff 2018-03-09 09:27:17 CET
Maybe we should abort the upgrade in preup.sh if the time is before 2018-03-01?
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2018-03-09 09:41:35 CET
For sa-compile the system date has to be at least 2017-09-13.
See below ("Makefile out-of-date with respect to...").

root@master44:/var/lib/dpkg/info# date -s "2017-09-01"
Fr 1. Sep 00:00:00 CEST 2017
root@master44:/var/lib/dpkg/info# sa-compile 
Sep  1 00:00:03.453 [4402] info: generic: base extraction starting. this can take a while...
Sep  1 00:00:03.453 [4402] info: generic: extracting from rules of type body_0
100% [==============================================================================================================================================================================] 4085.47 rules/sec 00m00s DONE
100% [==============================================================================================================================================================================] 871.40 bases/sec 00m02s DONET
Sep  1 00:00:06.327 [4402] info: body_0: 1149 base strings extracted in 3 seconds
cd /tmp/.spamassassin44022GCzCgtmp
reading bases_body_0.in
cd Mail-SpamAssassin-CompiledRegexps-body_0
re2c -i -b -o scanner1.c scanner1.re
re2c -i -b -o scanner2.c scanner2.re
re2c -i -b -o scanner3.c scanner3.re
re2c -i -b -o scanner4.c scanner4.re
re2c -i -b -o scanner5.c scanner5.re
re2c -i -b -o scanner6.c scanner6.re
/usr/bin/perl Makefile.PL PREFIX=/tmp/.spamassassin44022GCzCgtmp/ignored INSTALLSITEARCH=/var/lib/spamassassin/compiled/5.024/3.004001 
Generating a Unix-style Makefile
Writing Makefile for Mail::SpamAssassin::CompiledRegexps::body_0
Writing MYMETA.yml and MYMETA.json
make 
make: Warnung: Datei „/usr/lib/x86_64-linux-gnu/perl/5.24/Config.pm“ hat hat in der Zukunft liegende Änderungszeit 1017439
Makefile out-of-date with respect to /usr/lib/x86_64-linux-gnu/perl/5.24/Config.pm /usr/lib/x86_64-linux-gnu/perl/5.24/CORE/config.h
Cleaning current config before rebuilding Makefile...
make -f Makefile.old clean > /dev/null 2>&1
"/usr/bin/perl" Makefile.PL "PREFIX=/tmp/.spamassassin44022GCzCgtmp/ignored" "INSTALLSITEARCH=/var/lib/spamassassin/compiled/5.024/3.004001"
Generating a Unix-style Makefile
Writing Makefile for Mail::SpamAssassin::CompiledRegexps::body_0
Writing MYMETA.yml and MYMETA.json
==> Your Makefile has been rebuilt. <==
==> Please rerun the make command.  <==
false
Makefile:944: die Regel für Ziel „Makefile“ scheiterte
make: *** [Makefile] Fehler 1
command failed: exit 2
root@master44:/var/lib/dpkg/info# ls -la /usr/lib/x86_64-linux-gnu/perl/5.24/Config.pm /usr/lib/x86_64-linux-gnu/perl/5.24/CORE/config.h
-rw-r--r-- 1 root root   3330 Sep 12  2017 /usr/lib/x86_64-linux-gnu/perl/5.24/Config.pm
-rw-r--r-- 1 root root 163898 Sep 12  2017 /usr/lib/x86_64-linux-gnu/perl/5.24/CORE/config.h
root@master44:/var/lib/dpkg/info# 


As discussed, I will implement a short check in preup. sh to see if the system date is at least 2018.
Comment 3 Philipp Hahn univentionstaff 2018-03-09 09:47:26 CET
This will happen with *every* project using *make*, as it depends on correct time!

*** This bug has been marked as a duplicate of bug 44290 ***
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2018-03-09 10:16:39 CET
Problem will be processed via bug 44290.
Comment 5 Stefan Gohmann univentionstaff 2018-03-14 14:38:18 CET
UCS 4.3 has been released:
 https://docs.software-univention.de/release-notes-4.3-0-en.html
 https://docs.software-univention.de/release-notes-4.3-0-de.html

If this error occurs again, please use "Clone This Bug".