Skip to content

Conversation

@mreid-tt
Copy link
Contributor

@mreid-tt mreid-tt commented Jan 11, 2026

Description

Changes

  • mk/spksrc.bool.mk - New helper with bool(), is_true(), is_false() functions
  • mk/spksrc.common.mk - Includes the new helper
  • mk/spksrc.service.mk - Updated NO_SERVICE_SHORTCUT and USE_DATA_SHARE_WORKER checks

Analysis Findings

  • 35 boolean checks in mk files use ,1) pattern
  • All packages consistently use 1 for those variables
  • Only NO_SERVICE_SHORTCUT has mixed usage (yes, true, y)
  • Phase 2 can extend usage to other variables if needed

Fixes #

Checklist

  • Build rule all-supported completed successfully
  • New installation of package completed successfully
  • Package upgrade completed successfully (Manually install the package again)
  • Package functionality was tested
  • Any needed documentation is updated/created

Type of change

  • Includes small framework changes

Introduce mk/spksrc.bool.mk with helper functions for consistent boolean
evaluation across the build system. This normalizes various boolean
representations (yes/no, true/false, 1/0, y/n) into a consistent format.

Helper functions:
- bool(VAR): returns "true" or "false"
- is_true(VAR): returns "true" if truthy, empty if falsy
- is_false(VAR): returns "false" if falsy, empty if truthy

Update spksrc.service.mk to use the new helpers for:
- NO_SERVICE_SHORTCUT check (packages use both yes and true)
- USE_DATA_SHARE_WORKER check

This is an initial step toward addressing the boolean parsing
inconsistency noted in issue SynoCommunity#6892.
@mreid-tt mreid-tt self-assigned this Jan 11, 2026
@mreid-tt mreid-tt mentioned this pull request Jan 11, 2026
22 tasks
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.

1 participant