View Issue Details

IDProjectCategoryView StatusLast Update
0005787SOGoPackaging (Debian)public2023-08-03 06:58
Reporterdepeo Assigned Tosebastien  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Platform[Server] LinuxOSDebianOS Version8 (Jessie)
Product Version5.8.3 
Summary0005787: [EDIT] Debian 12 "Bookworm" support
Description

Hello,
I tried to upgrade my sogo container to Debian Bookworm, but it doesn't work because gen-saml2-exceptions.py requires Python 2.7 that is EOL in Bookworm(and everywhere else).

Creating SOGo.framework/Versions/5/Headers/NGMimeBodyPart+SOGo.h...
Creating SOGo.framework/Versions/5/Headers/SOGoSAML2Session.h...
Creating SOGoSAML2Exceptions.h...
/bin/sh: 1: ./gen-saml2-exceptions.py: not found
make[4]: [GNUmakefile:198: SOGoSAML2Exceptions.h] Error 127
make[3]:
[/usr/share/GNUstep/Makefiles/Master/rules.make:297: SOGo.build-headers.framework.variables] Error 2
make[2]: [/usr/share/GNUstep/Makefiles/Master/serial-subdirectories.make:53: internal-all] Error 2
make[1]:
[/usr/share/GNUstep/Makefiles/Master/serial-subdirectories.make:53: internal-all] Error 2
make[1]: Leaving directory '/tmp/sogo'
make: *** [debian/rules:79: build-arch-stamp] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
error building image: error building stage: failed to execute command: waiting for process to exit: exit status 2

Cleaning up project directory and file based variables
00:01
ERROR: Job failed: command terminated with exit code 2

Any ideas how to build Sogo on Bookworm?
(Sorry if I'm creating a duplicate bug, but your search box sucks)

Steps To Reproduce

Try to build Sogo without having the EOL python 2.7

TagsNo tags attached.

Relationships

has duplicate 0005792 closedsebastien [DEBIAN Bookworm] : Not arrived to login on Sogo 

Activities

sebastien

sebastien

2023-06-13 06:25

administrator   ~0017014

This is a feature request

Sebastien

SlavekB

SlavekB

2023-06-19 10:14

reporter   ~0017054

You have several options you can try:

1) Install python-is-python3 package. This will ensure that /usr/bin/python exist and refer to python3.

2) Apply a patch that changes shebang in python scripts from /usr/bin/python to /usr/bin/python3.

3) Use my apt source of packages for community where packages for Bookworm are already included. BTW, in these packages you can find a used patch to change shebang to python3.

sebastien

sebastien

2023-06-20 20:19

administrator   ~0017066

Thank you suggestions @SlavekB, we will add the support of Debian 12 in the next weeks

Sebastien

depeo

depeo

2023-06-21 04:55

reporter   ~0017067

Thanks @SlavekB, That worked, When I tried it last time I used 2to3 to "convert" the file, but that wasn't needed apparently.

Neustradamus

Neustradamus

2023-07-29 14:09

reporter   ~0017141

To follow this ticket :)

AndreyEver

AndreyEver

2023-08-01 09:48

reporter   ~0017147

+1 waiting for official support

qhivert

qhivert

2023-08-03 06:58

administrator   ~0017155

Hello!
Debian 12 is now available in nightly package
sudo tee /etc/apt/sources.list.d/SOGo.list <<EOF
deb https://packages.sogo.nu/nightly/5/debian/ bookworm bookworm
EOF

For now I have tested basic features (mails, filters, calendar, ...) on two configurations ldap + mysql (well, mariadb in fact) and mysql alone. If you find anything please open another issue instead of answering this one.

Issue History

Date Modified Username Field Change
2023-06-12 18:58 depeo New Issue
2023-06-13 06:25 sebastien Priority high => normal
2023-06-13 06:25 sebastien Severity block => feature
2023-06-13 06:25 sebastien Summary Debian Bookworm/python2. => [EDIT] Debian 12 "Bookworm" support
2023-06-13 06:25 sebastien Note Added: 0017014
2023-06-18 08:02 sebastien Relationship added has duplicate 0005792
2023-06-19 10:14 SlavekB Note Added: 0017054
2023-06-20 20:19 sebastien Note Added: 0017066
2023-06-20 20:19 sebastien Assigned To => sebastien
2023-06-20 20:19 sebastien Status new => acknowledged
2023-06-21 04:55 depeo Note Added: 0017067
2023-07-29 14:09 Neustradamus Note Added: 0017141
2023-08-01 09:48 AndreyEver Note Added: 0017147
2023-08-03 06:58 qhivert Status acknowledged => closed
2023-08-03 06:58 qhivert Resolution open => fixed
2023-08-03 06:58 qhivert Note Added: 0017155