Conversation
|
TO DO:
|
|
Indeed testing on Debian & Ubuntu was not quite enough, as suspected. But hopefully this Raspbian issue can be quickly solved Sunday:
|
|
@m-anish please take a closer look (this is looking a whole heckuva lot better). I'd like to merge this very soon, and then we can build on Nextcloud-on-NGINX from there. Do you see any immediate fixes needed herein? And going forward...which Nextcloud-on-NGINX improvements are most needed & most attainable to make our community materially open to newcomers? e.g. in addition to some of the things you mentioned at the top of #2119, here's one ugly little bug we should try to nail soon if you (or @pdey!) have ideas?
(Here's the latest nextcloud-nginx.conf in question if you have ideas!) |
|
Smoke-tested & functionality-tested with a fresh install onto Ubuntu 18.04. In addition to testing on the 3 other OS's mentioned above (Ubuntu 19.10, Debian 10.3, Raspbian Lite). |
| - php-xmlwriter | ||
| state: present | ||
| when: is_debuntu | bool | ||
| when: not is_raspbian |
There was a problem hiding this comment.
Given you are seeing
php-exif is a virtual package provided by:\n php7.3-common 7.3.11-1deb10u1\n
php-fileinfo is a virtual package provided by:\n php7.3-common 7.3.11deb10u1\n
php-ctype is a virtual package provided by:\n php7.3-common 7.3.11-1deb10u1\n
as those modules are now part of common?? Perhaps that could be
when: not {{ php_version }}| int < 7.3
or php_version is defined in os.yml so you could use the vars that are available there.
Strange raspbian is not seeing the virtual depends correctly, pity.
There was a problem hiding this comment.
php_version is definitely 7.3 on Raspbian Stretch on RPi, as I've reconfirmed in places like:
https://github.com/iiab/iiab/blob/master/vars/raspbian-10.yml#L29
Does it make sense to add in php-common to the list at https://github.com/iiab/iiab/blob/master/roles/nextcloud/tasks/install.yml#L43-L72 to be safe?
Also...is it likely that most all 9 php-* packages at https://github.com/iiab/iiab/blob/master/roles/nextcloud/tasks/install.yml#L74-L88 are gratuitous, having been installed anyway by larger superset php-* packages...such that many or all of these 9 lines can be yanked?
There was a problem hiding this comment.
pi@raspberrypi:~ $ sudo apt install php-ctype
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php-ctype is a virtual package provided by:
php7.3-common 7.3.11-1~deb10u1
php7.2-common 7.2.9-1+b2
php7.1-common 7.1.20-1+b2
You should explicitly select one to install.
pi@raspberrypi:~ $ sudo apt install php-dom
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php-dom is a virtual package provided by:
php7.3-xml 7.3.11-1~deb10u1
php7.2-xml 7.2.9-1+b2
php7.1-xml 7.1.20-1+b2
You should explicitly select one to install.
Think you went the wrong way in trying to unify the package names by dropping the use of php_version in the package name of the apt install request.
There was a problem hiding this comment.
well maybe not, php(7.3)-common does get dragged in.
pi@raspberrypi:~ $ sudo apt install php-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
php-common php7.3-common php7.3-mysql
The following NEW packages will be installed:
php-common php-mysql php7.3-common php7.3-mysql
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 635 kB of archives.
After this operation, 6,878 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
I think that list you have is a stale apt listing from an older php version.
There was a problem hiding this comment.
fyi this helpful discussion is moving / has moved to #2258.
Done. If further renaming is truly necessary, that's OK too! But for now both names conveniently correspond to their parent roles {3-base-server, 4-server-options} which can't hurt...unless/until they adopt new parents at some future date :-) |
This PR:
Tested on Debian 10.3 & Ubuntu 19.10