Lintian reports php-wpcli_2.9.0_all.deb has two errors

Open
#593 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php, shell
Domain
build-system, cli

Research direction

Start with utils/wp-cli-updatedeb.sh and inspect how it builds php-wpcli_2.9.0_all.deb and declares package dependencies. Run the script and lintian on the generated package, then verify that the obsolete-package, PHP CLI dependency, and bin/sbin mismatch reports are resolved.

Written by the indexing model from the issue text.

Description

scope:distribution
user@ubuntu:~/wp-cli-bundle$ utils/wp-cli-updatedeb.sh
...
E: php-wpcli: depends-on-obsolete-package Depends: mysql-client => default-mysql-client
E: php-wpcli: php-script-but-no-php-cli-dep php (does not satisfy php-cli:any) [usr/bin/wp]
X: php-wpcli: bin-sbin-mismatch usr/bin/wp bin/wp -> usr/bin/wp
sign it:               dpkg-sig -k SIGNING-KEY -s builder "/home/user/wp-cli-bundle/php-wpcli_2.9.0_all.deb"
include in your repo:  pushd /var/www/REPO-DIR
                       reprepro includedeb jessie "/home/user/wp-cli-bundle/php-wpcli_2.9.0_all.deb" && popd

user@ubuntu:~/wp-cli-bundle$ lintian php-wpcli_2.9.0_all.deb 
E: php-wpcli: depends-on-obsolete-package Depends: mysql-client => default-mysql-client
E: php-wpcli: php-script-but-no-php-cli-dep php (does not satisfy php-cli:any) [usr/bin/wp]
Dominant language
Gherkin
Stars
90
Forks
34
Avg merge
3h 19m
Merged PRs (30d)
18

Contributor guide

Open the contributing guide

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 wp-cli/wp-cli-bundle

All issues in wp-cli/wp-cli-bundle

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.