-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
memcached: upgrade 1.6.9 + DSM7 support #4522
memcached: upgrade 1.6.9 + DSM7 support #4522
Conversation
5fa7481
to
4e52351
Compare
Binaries can be found here: https://github.com/smaarn/spksrc/releases/tag/memcache-1-6-9 |
4e52351
to
14434a2
Compare
a72bf77
to
98656e1
Compare
@hgy59 Hello. May you please help with merge and publish this update? |
98656e1
to
3effba7
Compare
3effba7
to
b509728
Compare
@smaarn can you please remove cross/busybox dependency. I don't know whether this package will be running on DSM 7 (as the root user is not available anymore to install and update packages or start/stop services).
EDIT: |
Flagging this PR as draft until DSM7 related logics are implemented |
for
must be different for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following commands in service-setup.sh
are not allowed on DSM 7 (and variable CONFIG_FILE
must be assigned before)
cp -pv "${CONFIG_DIR}/Memcache.sample.php" "${CONFIG_FILE}"
chgrp http "${CONFIG_FILE}"
chmod g+w "${CONFIG_FILE}"
and those are the errors in the installation log:
2022/05/03 20:18:58 Begin service_postinst
2022/05/03 20:18:58 cp: failed to access '/var/services/web/phpMemcachedAdmin/Config/Memcache.php': Permission denied
2022/05/03 20:18:58 chgrp: cannot access '': No such file or directory
2022/05/03 20:18:58 chmod: cannot access '': No such file or directory
2022/05/03 20:18:58 End service_postinst
2d2be47
to
101ab90
Compare
And I was wondering why upgrades weren't working... Thanks for pointing it out. |
+ reworked to use standard "framework"
42c6496
to
3a62fea
Compare
Rebased at head. All reported issues are now fixed AFAICT. |
- update memcached to v1.6.15 - aarch64 patch is not required (memcached/memcached#743 is not an issue) - update phpMemcachedAdmin to include fix for 1.6.x - fix service user
- add Makefile variable DSM_UI_CONFIG for package specific app/config files
- use custom app/config file to link with phpMemcachdAdmin - update icon - update config backup/restore and limit to DSM < 7 - set owner of config file on DSM < 7
@@ -7,7 +7,7 @@ | |||
# conf/SPK_NAME.sc if SERVICE_PORT and DSM<7 | |||
# conf/resource if SERVICE_CERT or DSM7 | |||
# app/SPK_NAME.sc if SERVICE_PORT and DSM7 | |||
# app/config if DSM_UI_DIR | |||
# app/config if DSM_UI_DIR (may be overwritten by DSM_UI_CONFIG) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ymartin59, @publicarray some time ago we added the generation of app/config
files.
For this package we do not want the generated app/config
for the service but one for the included phpMemcachedAdmin web interface.
The app/config file is used with DSM < 7 only, as for DSM 7 the web UI is defined in the resources file and app/config seems to be ignored.
So a lot of packages still have a src/app/config
file in the spk folder, and we will have to validate, whether those match the generated one. Matching config files could be removed and for different files we have to apply DSM_UI_CONFIG
too.
Now my testing was successful with |
- update license - remove autoconf as configure script is included
- avoid default DSM UI icon on DSM 7
@smaarn Did you have a change to test this package? (IMO it is good to merge.) |
Will be having a look today. Seems all good to me TBH. |
- add cross/libmemcached - enable build of memaslap - fix build for DSM 7 (issue with newer compilers) - add patches for correct program name and faster build
- use code optimization - fix build for OLD_PPC_ARCHS
Seems that the upgrade process looses the phpMemcached configuration. Since it's not the memcached configuration in itself I'm guessing we can assume it's fine and good to merge. I will try having a look at the php configuration to have it remain persistent next week. |
@smaarn did you find this issue with DSM 6 or DSM 7 (or both)?. |
DSM 7 only. TBH it may be a very simple thing to do since the logic is there for DSM 6 |
- remove SYNOPKG_DSM_VERSION_MAJOR check in installers - use GROUP variable for group in set_unix_permissions for DSM 6
- update phpmemcachedadmin to store config in var folder and link as Config into web folder - fix folder permissions for phpmemcachedadmin - create Memcache.php on demand
@smaarn it was not so easy to create the config on demand for DSM7 and add save/restore on package updates. |
85cbead
to
ac1ae8c
Compare
Motivation: Being able to use memcache and (while we're at it) use the latest version
Linked issues: None that I know of
Checklist
all-supported
completed successfully