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

data/_xbps_src: update completions #587

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,22 @@ jobs:
contents: read
security-events: write
container:
image: ghcr.io/void-linux/void-glibc-full:20230830r1
image: ghcr.io/void-linux/void-glibc-full:20240526R1
steps:
- name: Prepare container
run: |
xbps-install -Syu || xbps-install -yu xbps
xbps-install -Syu xbps
xbps-install -yu
# node-based actions require libstdc++.so.6
# codeql runs some bash scripts
xbps-install -Sy \
libstdc++ git \
libstdc++ bash git \
gcc make pkg-config zlib-devel openssl-devel libarchive-devel
- name: Checkout repository
uses: actions/checkout@v3
- run: git config --global --add safe.directory $(pwd)
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: cpp
config-file: ./.github/codeql/codeql-config.yaml
Expand All @@ -43,6 +45,6 @@ jobs:
./configure
make -j
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:cpp"
16 changes: 12 additions & 4 deletions data/_xbps_src
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,34 @@ _xbps_src_build_packages() {
}

_arguments -s : \
'-1[Fail if dependencies are missing]' \
'-A[Host architecture]:architecture:($archs)' \
'-a[Cross compile packages]:architecture:($archs)' \
'-b[Build broken, nocross, and excluded packages]' \
'-c[Configuration file]:config: ' \
'-C[Do not remove build directory/autodeps/destdir]' \
'-E[Exit immediately when binary package already exists]' \
'-f[Force building and registering binary packages]' \
'-G[Enable XBPS_USE_GIT_REVS]' \
'-Q[Enable running the check stage]' \
'-g[Enable building -dbg packages]' \
'-H[Absolute path to hostdir]:hostdir:_files -/' \
'-h[Help]' \
'-I[Ignore required dependencies]' \
'-i[Make internal errors non-fatal]' \
'-j[Number of parallel build jobs]:number: ' \
'-K[Enable extended checks]' \
'-L[Disable ASCII colors]' \
'-m[Absolute path to masterdir]:masterdir:_files -/' \
'-N[Disable use of remote repositories]' \
'-p[Show additional variables]:variables: ' \
'-o[Set package build options]:options: ' \
'-Q[Enable running the check stage]' \
'-q[Suppress output of xbps-src]' \
'-r[Use alternative local repository]:repo:_files -/' \
'-s[Make some warnings errors]' \
'-t[Create a temporary masterdir]' \
'-v[Show verbose messages]' \
'-V[Print version]' \
'1:target:->target' \
'*::args:->args' && ret=0

Expand All @@ -64,9 +74,7 @@ case $state in
case $words[1] in
build|check|configure|extract|fetch|install|patch|pkg|show|show-avail|show-build-deps|show-hostmakedepends|show-makedepends|show-options|update-check)
_arguments ':package:_xbps_src_all_packages' && ret=0;;
binary-bootstrap)
_arguments '::architecture:($archs)' && ret=0;;
bootstrap|bootstrap-update|chroot|clean-repocache|consistency-check|list|purge-distfiles|remove-autodeps|show-repo-updates|show-sys-updates|update-bulk|update-sys|update-hash-cache)
binary-bootstrap|bootstrap|bootstrap-update|chroot|clean-repocache|consistency-check|list|purge-distfiles|remove-autodeps|show-repo-updates|show-sys-updates|update-bulk|update-sys|update-hash-cache)
# no further arguments
ret=0;;
clean)
Expand Down
Loading