Building on Trixie #51

Closed
opened 2025-12-13 10:46:01 +01:00 by citronalco · 3 comments
Contributor

On Trixie, dpkg-buildpackage does the fakeroot on its own, so -rfakeroot is no longer necessary.

The new dpkg-buildpackage fails on chown, unless it is run like this dpkg-buildpackage --rules-requires-root

See https://wiki.debian.org/Teams/Dpkg/RootlessBuilds

On Trixie, dpkg-buildpackage does the fakeroot on its own, so -`rfakeroot `is no longer necessary. The new dpkg-buildpackage fails on `chown`, unless it is run like this `dpkg-buildpackage --rules-requires-root` See https://wiki.debian.org/Teams/Dpkg/RootlessBuilds

I can confirm thjat. I've upgraded to trixie a test container, and after upgrade NC stop working:

root@vncacpn1:~# apt update; apt dist-upgrade && apt clean
Trovato:1 http://security.debian.org trixie-security InRelease
Trovato:2 http://ftp.it.debian.org/debian trixie InRelease                                                               
Trovato:3 http://ftp.it.debian.org/debian trixie-updates InRelease                                                                 
Trovato:4 https://apt.jurisic.org/debian trixie InRelease                                                                
Trovato:5 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-deb ./ InRelease           
1 pacchetto può essere aggiornato: eseguire "apt list --upgradable" per vederlo.
Attenzione: https://apt.jurisic.org/debian/dists/trixie/InRelease: Policy will reject signature within a year, see --audit for details
Aggiornamento:                             
  nextcloud-server

Riepilogo:
  Aggiornamento: 1, Installazione: 0, Rimozione: 0, Non aggiornati: 0
  Dimensione scaricamento: 213 MB
  Spazio richiesto: 12,5 MB / 103 GB disponibile

Continuare? [S/n] 
Scaricamento di:1 https://apt.jurisic.org/debian trixie/main amd64 nextcloud-server all 32.0.0-1~deb13 [213 MB]
Recuperati 213 MB in 22s (9.875 kB/s)                                                                                                                                                   
Lettura dei changelog... Fatto
(Lettura del database... 76020 file e directory attualmente installati.)
Preparativi per estrarre .../nextcloud-server_32.0.0-1~deb13_all.deb...
Estrazione di nextcloud-server (32.0.0-1~deb13) su (31.0.9-2~deb12)...
Configurazione di nextcloud-server (32.0.0-1~deb13)...
Conf nextcloud already enabled
Could not open input file: /var/www/nextcloud/occ
Could not open input file: /var/www/nextcloud/occ
Got unexpect answer, occ status can't to read satus of nextcloud. Check php installation.
Updating coolwsd systemplate

Also:

root@vncacpn1:/var/www/nextcloud# su www-data -s /bin/bash -c "php /var/www/nextcloud/occ status"
Could not open input file: /var/www/nextcloud/occ

But after this simple fix: chown -R :www-data /var/www/nextcloud all work as expected.

I can confirm thjat. I've upgraded to trixie a test container, and after upgrade NC stop working: ``` root@vncacpn1:~# apt update; apt dist-upgrade && apt clean Trovato:1 http://security.debian.org trixie-security InRelease Trovato:2 http://ftp.it.debian.org/debian trixie InRelease Trovato:3 http://ftp.it.debian.org/debian trixie-updates InRelease Trovato:4 https://apt.jurisic.org/debian trixie InRelease Trovato:5 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-deb ./ InRelease 1 pacchetto può essere aggiornato: eseguire "apt list --upgradable" per vederlo. Attenzione: https://apt.jurisic.org/debian/dists/trixie/InRelease: Policy will reject signature within a year, see --audit for details Aggiornamento: nextcloud-server Riepilogo: Aggiornamento: 1, Installazione: 0, Rimozione: 0, Non aggiornati: 0 Dimensione scaricamento: 213 MB Spazio richiesto: 12,5 MB / 103 GB disponibile Continuare? [S/n] Scaricamento di:1 https://apt.jurisic.org/debian trixie/main amd64 nextcloud-server all 32.0.0-1~deb13 [213 MB] Recuperati 213 MB in 22s (9.875 kB/s) Lettura dei changelog... Fatto (Lettura del database... 76020 file e directory attualmente installati.) Preparativi per estrarre .../nextcloud-server_32.0.0-1~deb13_all.deb... Estrazione di nextcloud-server (32.0.0-1~deb13) su (31.0.9-2~deb12)... Configurazione di nextcloud-server (32.0.0-1~deb13)... Conf nextcloud already enabled Could not open input file: /var/www/nextcloud/occ Could not open input file: /var/www/nextcloud/occ Got unexpect answer, occ status can't to read satus of nextcloud. Check php installation. Updating coolwsd systemplate ``` Also: ``` root@vncacpn1:/var/www/nextcloud# su www-data -s /bin/bash -c "php /var/www/nextcloud/occ status" Could not open input file: /var/www/nextcloud/occ ``` But after this simple fix: `chown -R :www-data /var/www/nextcloud` all work as expected.
Owner

Thanks for info, I will fix

Thanks for info, I will fix
Owner

Fixed

Fixed
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ijurisic/nextcloud-deb#51