Skip to content
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

Comply to DSM7 and set as broken #4910

Merged
merged 4 commits into from
Nov 20, 2021
Merged

Conversation

th0ma7
Copy link
Contributor

@th0ma7 th0ma7 commented Oct 13, 2021

Motivation: Extracting trivial build fixes from #4797 to keep only things in scope of that rather large PR. This patchset enforce package to compliance to DSM7 and allow marking packages as BROKEN.

  1. Packages still using non-standard setup script (e.g. src/installer.sh) dates from pre-DSM6 and should be marked as incompatible with DSM7 to avoid building it and provide clean github-action outputs. This is done by checking if the package is making use of the INSTALLER_SCRIPT such as INSTALLER_SCRIPT = src/installer.sh. This necessarily means that it hasn't been migrated to DSM6+ default framework method using SERVICE_SETUP = src/service-setup.sh. As such there is not value at trying to build them for DSM7 and are being excluded from the build process, thus reducing time to build and removing false-positive.
  2. Add the ability to mark certain packages as broken simply by adding a BROKEN file in its directory. File can be empty or include reasons why it is currently being marked as such for future work in fixing it occurs. Simply add a spk/<app>/BROKEN file with what ever comments to explain reasons for it. Starting with the following packages:
  • debian-chroot
  • gentoo-chroot
  • pyload
  • sickchill

Linked issues: Build output example with this patchset applied can be looked at #4797

Checklist

  • Build rule all-supported completed successfully
  • Package upgrade completed successfully
  • New installation of package completed successfully

@th0ma7 th0ma7 requested a review from hgy59 October 13, 2021 21:23
@th0ma7 th0ma7 requested a review from publicarray October 13, 2021 21:27
@th0ma7 th0ma7 changed the title Force package to comply for DSM7 and allow marking package as broen Comply to DSM7 and set as broken Oct 14, 2021
@th0ma7 th0ma7 self-assigned this Oct 14, 2021
mk/spksrc.pre-check.mk Outdated Show resolved Hide resolved
@th0ma7 th0ma7 requested a review from publicarray October 16, 2021 12:13
@th0ma7 th0ma7 requested a review from ymartin59 October 25, 2021 21:48
@th0ma7
Copy link
Contributor Author

th0ma7 commented Oct 25, 2021

Friendly reminder, if anyone could have a second look at this for a review. Thnx in advance.

@th0ma7 th0ma7 merged commit 98ea366 into SynoCommunity:master Nov 20, 2021
@th0ma7 th0ma7 deleted the broken_DSM7comply branch November 20, 2021 14:23
publicarray pushed a commit to publicarray/spksrc that referenced this pull request Dec 19, 2021
* pre-check.mk: Force complying to service-setup for DSM >= 7

* pre-check.mk: Add option to declare broken packages

* pre-check.mk: Fix typo (thnx @publicarray)
AlexPresso pushed a commit to AlexPresso/spksrc that referenced this pull request Jan 30, 2025
* pre-check.mk: Force complying to service-setup for DSM >= 7

* pre-check.mk: Add option to declare broken packages

* pre-check.mk: Fix typo (thnx @publicarray)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants