-
Notifications
You must be signed in to change notification settings - Fork 324
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
negative package selection is broken #2005
Comments
@mweinelt, @lemoer and me briefly spoke about this yesterday evening in our mumble. |
Okay, the principal issue here is the order in which we process and combine the different package lists. Before 9c52365, this was the following (although we never documented the precise logic):
With 9c52365 and the following patches this turns into the following:
I think we definitely need to respect the following order:
The question is when the target- and device-specific packages are supposed to be handled - and what we can achieve without a major rewrite of the target config logic. Handling GLUON_FEATURES before I also see the problem of the special handling of x86, which doesn't define any devices and requires additional logic that doesn't interact nicely with the device package selection.While I wanted to avoid backporting too many patches from OpenWrt master to get the new x86 image build code (and figuring out what to do with VMDK/VDI images), this issue might provide a good reason to do so after all... I propose use the following order:
This slightly deviates from the original version, as it will allow overriding target-specific packages from Gluon and device-specific packages from OpenWrt via GLUON_FEATURES and GLUON_SITE_PACKAGES, but that should hardly matter in practice. Note that "Device-specific packages from Edit: I had to revise the above list slightly: "Device-specific packages from OpenWrt" is happening a lot earlier than I thought. |
Bug report
What is the problem?
In hanover we made use of the negative package selection like this
-gluon-web-autoupdater
this does not work anymore, as we intended to.
Building a recent gluon (latest) with our site results in the build-process trying to add the marked package, though its functionality (and files) are provided by a different one.
This results in breaking the build, as the step
check_data_file_clashes
does correctly break, as both packages provide nearly the same files.The point is, the negative marked one should not only not provide no files, but not be part of the build at all.
Our nightly build system was broken for a while, due to broken patches on our end, so we were not immediately aware of it.
But after bisecting gluon 1df243d (merged in #1876) appears to be the first bad commit.
Repairing our buildsystem in order to provide new device-support.
I bisected this only for the target
ramips-mt76x8
but the issue should show up on every target we got.Yes, I suppose it does on every single one of them.
What is the expected behaviour?
The negative marked package should not be automatically added to the build.
In the best scenario, the automatic process would ensure, that something provides the functionality, but not adding a package on it's own.
The latest gluon should be able to build with the latest site of hanover ( freifunkh/site@5052b05 )
Yes, before the merge of #1876 .
Gluon Version:
the current latest gluon commit has the issue:
daf8a6c
the bug exists since this commit:
1df243d
Site Configuration:
freifunkh/site@5052b05
Additional info
the script evaluated by git bisect:
the replacement package in ff-Hochstifts package repo:
https://git.ffho.net/FreifunkHochstift/ffho-packages/src/master/ffho-web-autoupdater
Warning: there is an unrelated warning about the ffh-district-migrate package.
It's save to ignore it, for this issue.
Custom patches:
Only the ones specified in hanovers patch directory.
They are most likely unrelated to this problem.
https://github.com/freifunkh/site/blob/master/patches/0001-fix-when-vlan-crc-is-00000000.patch
https://github.com/freifunkh/site/blob/master/patches/0002-patches-uradvd-change-ip-lifetimes-to-150-300-second.patch
https://github.com/freifunkh/site/blob/master/patches/0003-added-TP-Link-TL-WR841ND-N-Devices-for-8M-and-16M-Va.patch
The text was updated successfully, but these errors were encountered: