-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
Manually install iconv as the one provided in Alpine does not work #166
Conversation
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.
Thanks for opening this pull request! Be sure to follow the pull request template!
I am a bot, here are the test results for this PR: |
I really think it would be much simpler to PR a fix to the alpine repo package rather than compiling here and setting php versions manually |
While I do not disagree, from multiple references around the internet, the Alpine maintainers do not appear to be willing to fix the issue on their end. |
We've actually fixed quite a few upstream bugs there via PRs. Their maintainers may not be super proactive but they are very much open to community PRs. With that said, I've been on mobile and have not looked into what the upstream issue is. |
Still testing, but I may have found a cleaner way to handle this, will update the PR or close it and open a new one if the testing works out. |
…nv compatibility issues
Updated the PR as there is a work-around that only involves installing gnu-libiconv from community repos and not having to manually compile. |
I am a bot, here are the test results for this PR: |
There was a user on the unraid forum I asked to install the gnu-libiconv package, but it didn't fix the issue. php7-iconv is installed when we build the container if I'm not mistaken. |
I found the same thing when I installed gnu-libiconv after the container was built. However, I found that if I installed it during build, and then installed php7-iconv afterwards, and also from the community repo vs the main repo, it worked. I also set the LD_PRELOAD env variable to load the extension. |
Hello there, is this PR will be merged soon ? I'm really looking forward to get rid of my custom image on my unRAID server. |
Any chance to get this merged? |
This is too hacky for my taste, as the main and edge repos provide different versions of php. This really should be fixed upstream as I suggested before. Did you submit a PR there or open an issue? |
@aptalca docker-library/php#240 (comment) is this the correct spot to look for? if so, this maintainer doesn't seem to want to change the functionality? |
Correct spot is the alpine gitlab repo: https://gitlab.alpinelinux.org/alpine/aports |
YMMV, whilst I'm a huge fan of Linux server images, decided to move over to the official Debian image for this one. Seems nextcloud is getting a bit huge and feature rich these days, and the alpine base might not be enough going forward (just my 10c) |
@itsthejb |
A lot of folks complaining in this thread about alpine, yet not a single person even attempted to submit a patch upstream. It shouldn't be that hard as the edge version works, but not the 3.12 version. Looking at the build differences would likely easily reveal the necessary fix. |
Now that I know where to look I will try to see if I can look at submitting a pr, but with the holidays and my very tiny amount of knowledge around alpine it'll be difficult. I agree that an upstream fix seems a lot better. Thanks for pointing out where the repo was for me! |
Has this fix already been requested from the Alpine developers? I´m also interested in having it working. |
Well, if no one does anything, the version on edge will end up on alpine 3.13 any day now |
I have not added a request on Github yet. What would I need to exactly ask for? Is it sufficient to add an issue named "Please add/fix iconv extension" and link also to this issue here? |
@aptalca when you say any day now do you think within the next week or two? That might be faster than I can get to the PR anyways |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Description:
This manually installs the PHP iconv extension, as the one provided in Alpine repositories does not work correctly.
Benefits of this PR and context:
As Mentioned in #165 iconv on alpine is not working properly, causing an issue for some extensions and NC functionality.
Closes #165
How Has This Been Tested?
Built all 3 images without issue.
Ran the standard image without issue.
Reviewed NC functionality across multiple portions of the application, no issues found.
Source / References:
Ref: docker-library/php#240 (comment)
Ref: #165
Ref: nextcloud/mail#3999
Ref: nextcloud/mail#3908