-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Revert "fcgi: remove" #19810
base: master
Are you sure you want to change the base?
Revert "fcgi: remove" #19810
Conversation
I probably also removed it as it was failing in some other way (maybe nls or autoconf issues). Where is this amx-fcgi used? |
I can't find anything regarding this in the issue tracker, it compiles and works fine, CI here doesn't complain either.
tr181-rest-api for example. |
Here is the regression exposed by the latest OpenWrt 22.03.2 x86/64 SDK: x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/build/openwrt/build_dir/target-x86_64_musl/amx-fcgi-v0.2.3=amx-fcgi-v0.2.3 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/build/openwrt/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/build/openwrt/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/build/openwrt/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -Werror -Wall -Wextra -Wformat=2 -Wshadow -Wwrite-strings -Wredundant-decls -Wmissing-declarations -Wno-attributes -Wno-format-nonliteral -fPIC -g3 -I ../include_priv -I /home/build/openwrt/staging_dir/target-x86_64_musl/include -I /home/build/openwrt/staging_dir/target-x86_64_musl/usr/include -Wstrict-prototypes -Wold-style-definition -Wnested-externs -std=gnu11 -c -o ../output/x86_64-openwrt-linux-musl/object/amx_fcgi.o amx_fcgi.c
In file included from ../include_priv/amx_fcgi.h:69,
from amx_fcgi.c:64:
../include_priv/amx_fcgi_types.h:69:10: fatal error: fcgiapp.h: No such file or directory
69 | #include <fcgiapp.h>
| ^~~~~~~~~~~
compilation terminated. It is working fine with OpenWrt 19.07 SDK. |
@ynezz could you maybe add a comment in the makefile pointing to the external users of the lib ? It's a bit weird to keep libraries with no users. |
Fair enough, I wasn't aware about this rule. |
IMO It's fine to keep it in as there is at least one known user, but it's better to make it explicit so we don't delete it again in the future. |
I think if introduced it should also be removed from packages-abandoned. |
Do we really want to start adding this kind of build system unrelated "hey, I'm using it, don't delete it" noise into the Makefiles? How often you would need to update it, so you know, that the users are still active? Once a year? IMO it's going to bit rot, folks can simply miss the information and delete the package anyway. It should probably be documented as well. What about simply assuming, that there always might be some users out there, so don't delete the package in the first place? If you really need to remove it for some reason, then simply make that reason clear in the commit message and allow adding the package back. |
Done. |
This reverts commit a682bf9 as the package still have some active users and thus is not abandoned. References: openwrt/packages#19810 Signed-off-by: Petr Štetiar <[email protected]>
|
Not directly related, but: |
As you've probably already noticed, those files reside under What prpl can do in this case is to politely ask MaxLinear representatives to consider re-licensing those files, which was done and AFAIK it's currently waiting for final approval from their legal department, but you're hopefully already aware.
I believe, that its not intentional, IMO its just being caused by the ongoing Jira system migration from on-premise to the new cloud hosted instance. Thank you for letting me know, I'll try to ping responsible folks and ask them for a fix.
IMO OpenWrt is a FOSS project with a clear contribution rules and guidelines, which anyone could reference in exactly such ambiguities. IIUC then in FOSS projects "Upstream First" philosophy means, that whenever you solve a problem in your copy of the upstream code which others could benefit from, you contribute these changes back upstream, for example you send a patch or open a PR in the upstream project. IMO thats exactly what I'm doing, I'm trying to upstream a fix for a downstream project breakage, so anyone else using |
I was aware of an initial ping from a few months ago. Final approval sounds better than that though.
I checked their website first, but couldn't find any info on any migration, so I assumed it is intentional. Thanks, let's hope that gets resolved. |
|
Nice, thanks! |
This reverts commit 65ef6c6 which has removed fcgi library for "Nothing uses this." reason. I've noticed this missing library while rebasing downstream project from OpenWrt 19.07 release base to OpenWrt 22.03, as there is amx-fcgi[1] system component which depends on this library. So I would like to fix that regression by adding back the removed library package. 1. https://gitlab.com/prpl-foundation/components/ambiorix/applications/amx-fcgi Signed-off-by: Petr Štetiar <[email protected]>
As requested during the review process. Signed-off-by: Petr Štetiar <[email protected]>
Move away from codeload as requested during the review due to ongoing issues with this service. Signed-off-by: Petr Štetiar <[email protected]>
Compile tested: OpenWrt 22.03 x86/64, ipq40xx, mvebu/cortexa9
Run tested: OpenWrt 22.03 x86/64, ipq40xx, mvebu/cortexa9
This reverts commit 65ef6c6 where @neheb removed fcgi library for "Nothing uses this." reason.
I've noticed this missing library while rebasing downstream project from OpenWrt 19.07 release base to OpenWrt 22.03, as there is amx-fcgi system component which depends on this library.
So I would like to fix that regression by adding back the removed library package.