watchcat: emits a warning message during postinst

Open Beginner friendly
#31,551 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
64/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
linux, shell

Research direction

The issue identifies the watchcat init script and the missing /lib/functions/watchcat.sh path. Read that script and check how it sources the file during off-device image builds; the issue proposes prefixing the path with ${IPKG_ROOT}. Build an image with watchcat in PACKAGES and confirm the warning no longer appears.

Written by the indexing model from the issue text.

Description

bug
Package Name

watchcat

Maintainer

@danielfdickinson @dhrm1k

OpenWrt Version

SNAPSHOT

OpenWrt Target/Subtarget

x86/64

Steps to Reproduce
  1. Download ImageBuilder
  2. When building the image with make image, include watchcat in the the PACKAGES list
Actual Behaviour

emits

./etc/init.d/watchcat: line 13: /lib/functions/watchcat.sh: No such file or directory
Enabling watchcat

Cause and solution

In the initscript the sourcing of /lib/functions/watchcat.sh is attempted while enabling watchcat even when done off-device (e.g. using ImageBuilder or the OpenWrt buildroot).

Needs ${IPKG_ROOT} added in front of /lib/functions/watchcat.sh.

Creating this issue as a placeholder to remind me to work on (it is somewhat cosmetic, so not a rush).

Confirmation Checklist
Dominant language
Makefile
Stars
4.7k
Forks
4.1k
Avg merge
3d 40m
Merged PRs (30d)
269

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openwrt/packages

All issues in openwrt/packages

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.