...
 
Commits (42882)

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

---
kind: pipeline
name: edge-x86
clone:
disable: true
platform:
os: linux
arch: amd64
steps:
- name: build
image: alpinelinux/alpine-drone-ci:edge-x86
commands:
- linux32 build.sh
environment:
GH_TOKEN:
from_secret: github_token
pull: always
trigger:
event:
- pull_request
---
kind: pipeline
name: edge-x86_64
clone:
disable: true
platform:
os: linux
arch: amd64
steps:
- name: build
image: alpinelinux/alpine-drone-ci:edge-x86_64
commands:
- build.sh
environment:
GH_TOKEN:
from_secret: github_token
pull: always
trigger:
event:
- pull_request
---
kind: pipeline
name: edge-aarch64
clone:
disable: true
platform:
os: linux
arch: arm64
steps:
- name: build
image: alpinelinux/alpine-drone-ci:edge-aarch64
commands:
- build.sh
environment:
GH_TOKEN:
from_secret: github_token
pull: always
trigger:
event:
- pull_request
---
kind: pipeline
name: edge-armhf
clone:
disable: true
platform:
os: linux
arch: arm
steps:
- name: build
image: alpinelinux/alpine-drone-ci:edge-armhf
commands:
- build.sh
environment:
GH_TOKEN:
from_secret: github_token
pull: always
trigger:
event:
- pull_request
---
kind: pipeline
name: edge-armv7
clone:
disable: true
platform:
os: linux
arch: arm
steps:
- name: build
image: alpinelinux/alpine-drone-ci:edge-armv7
commands:
- build.sh
environment:
GH_TOKEN:
from_secret: github_token
pull: always
trigger:
event:
- pull_request
; This file is for unifying the coding style for different editors and IDEs.
; Plugins are available for notepad++, emacs, vim, gedit,
; textmate, visual studio, and more.
;
; See http://editorconfig.org for details.
# Top-most EditorConfig file.
root = true
[**/APKBUILD]
indent_style = tab
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
#!/bin/sh
#
# This hook checks that all local sources specified in the staged APKBUILDs
# are staged too or already committed and that checksums are correct.
#
set -eu
# Maximal allowed size (in bytes) of a file.
FILE_SIZE_LIMIT=262144 # 256 kiB
if ! command -v sha512sum >/dev/null; then
# macOS / BSDs (?) don't have sha512sum, but shasum.
alias sha512sum='shasum -a 512'
fi
error() {
printf '\033[0;31mpre-commit:\033[0m %s\n' "$1" >&2 # red
}
# Prints paths of created or modified files being committed.
changed_files() {
git diff-index \
--name-only \
--cached \
--diff-filter=ACMR HEAD \
-- "$@"
}
# Prints file names and checksums (in format <SHA-512>:<filename>) of local
# sources specified in the APKBUILD ($1).
abuild_local_sources() {
apkbuild="$1"
set +eu
. "$apkbuild" || {
error "$apkbuild is invalid"
return 1
}
set -eu
status=0
: ${source:=""}
for src in $source; do
# Skip remote sources.
case "$src" in */*) continue;; esac
echo "$sha512sums" | awk -v src="$src" '
{ if ($2 == src) { ok=1; print($2 ":" $1) } }
END { if (ok != 1) exit 1 }' || {
status=1
error "${apkbuild%/*}: file \"$src\" is missing in \$sha512sums (hint: run abuild checksum)"
}
done
return $status
}
# check if given object is a symlink
is_symlink() {
test "$(git ls-files --stage "$1" | awk '{print $1}')" = "120000"
}
# Checks that all local sources specified in the APKBUILD file ($1) are
# available in git tree and checksums are correct.
check_local_sources() {
local apkbuild="$1"
local startdir="${apkbuild%/*}"
local status=0
local checksum_act checksum_exp content filename line sources
sources=$(abuild_local_sources "$apkbuild")
for line in $sources; do
filename=${line%%:*}
checksum_exp=${line#*:}
if ! git cat-file -e ":$startdir/$filename" 2>/dev/null; then
error "$startdir: missing file \"$filename\""
status=1
continue
fi
if is_symlink ":$startdir/$filename"; then
continue
fi
checksum_act=$(git show ":$startdir/$filename" | sha512sum)
if [ "$checksum_act" != "$checksum_exp -" ]; then
error "$startdir: bad checksum for file \"$filename\" (hint: run abuild checksum)"
status=1
fi
done
return $status
}
# Checks if the file ($1) being committed is not bigger than FILE_SIZE_LIMIT.
check_file_size() {
local path="$1"
local size
size=$(git cat-file -s ":$path")
if [ $size -gt $FILE_SIZE_LIMIT ]; then
local size_kb=$(( size / 1024 ))
error "file \"$path\" is quite big ($(( size / 1024 )) kiB), better to upload it to dev.alpinelinux.org"
return 1
fi
}
for apkbuild in $(changed_files '**/APKBUILD'); do
check_local_sources "$apkbuild"
done
for path in $(changed_files); do
check_file_size "$path"
done
#!/bin/sh
#
# This hook adds prefix "<repo>/<pkgname>: " to the commit message when
# committing changes of a single package.
#
MSG_FILE="$1"
SOURCE="$2"
longest_common_prefix() {
awk -F/ '
(NR == 1) { split($0, prefix); prefix_len = NF }
(NR > 1) {
for (i = 1; i <= prefix_len; i++) {
if (prefix[i] != $i) {
prefix_len = i - 1; break
}
}
}
(prefix_len == 0) { exit }
END {
res = prefix[1]
for (i = 2; i <= prefix_len; i++) {
res = res FS prefix[i]
}
print(res)
}'
}
prepend_msg() {
local prefix="$1"
printf '%s\n%s\n' "$prefix" "$(cat "$MSG_FILE")" > "$MSG_FILE"
}
# Do nothing if message has been given using -m, template, merge etc.
[ -z "$SOURCE" ] || exit 0
lcp=$(git diff-index --name-only --cached HEAD | longest_common_prefix)
case "$lcp" in
[^.]*/*) prepend_msg "$(echo "$lcp" | cut -d/ -f1-2): ";;
esac
exit 0
# How to contribute
We are really glad that you are reading this contribution guide.
This means you care about the quality of your contributions.
## Submitting patches via Github
### Prerequisite for submitting patches/PR's
1. Basic knowledge about how to use Git(hub)
* [Properly](https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup) setup your git client.
* Know how to create a commit (for details see below).
* Know how to work with git history (rebasing your commits).
* Know how to create Pull Requests.
2. Have access to an Alpine Linux [development environment](https://wiki.alpinelinux.org/wiki/Developer_Documentation#Development).
3. Please __do not__ submit PR's via Github's web interface. You should have a working [development environment](https://wiki.alpinelinux.org/wiki/Developer_Documentation#Development) available and submit your commits from your git client.
### Before you start making changes
1. Check whether the change you want to introduce is not already present in the aports repository.
Main aports repository can be cloned from: git://git.alpinelinux.org/aports
There is also web frontend available at: http://git.alpinelinux.org/cgit/aports
GitHub mirror of aports repository: https://github.com/alpinelinux/aports
2. Check whether the change you want to introduce has not been already submitted by someone else.
- https://patchwork.alpinelinux.org/project/aports/list/
- https://github.com/alpinelinux/aports/pulls
3. If you've found that someone already did what you wanted to do, then be patient. The change should be applied soon in the main repository, unless maintainers are busy or the patch needs to be improved.
If it seems that your change won't be duplicating already done work, then please continue.
### Creating a Pull Request (PR)
1. [Fork](https://help.github.com/articles/fork-a-repo/) our Alpine Linux aports repository.
2. Clone your copy of aports `git clone https://github.com/username/aports`.
3. Create a feature branch `git checkout -b my_new_feature`.
4. Make your desired changes and commit them with a [correct commit message](https://git-scm.com/book/ch5-2.html#Commit-Guidelines).
* Begin the commit message with a single short line summarizing the changes, followed by a blank line and then a more thorough description. Examples of correctly formated summary lines are:
* When adding a new aport: testing/apkname: new aport
* When modifying an aport: testing/apkname: short description about changes
* If needed provide a proper formatted (line wrapped) description of what your patch will do. You can provide a description in the PR, but you must include a message for this specific commit in the commit description. If in the future we would like to distance ourselves from Github the PR information could be lost.
5. Open your copy of the aports repository at github.com and switch to your feature branch. You should now see an option to create your PR. [More info](https://help.github.com/articles/creating-a-pull-request/)
6. Wait for an Alpine Linux developer to review your changes.
7. If all is ok your PR will be merged but if a developer asks for changes please do as follows:
* Make the requested changes.
* Add your file(s) to git and commit (we will squash your commits if needed).
* Push your changes `git push origin my_new_feature`.
8. Goto #6.
### Submitting a package with new dependencies
When you want to submit a package including its new dependencies to our repository, you should bundle these commits into a single PR.
This is needed so our [CI](https://en.wikipedia.org/wiki/Continuous_integration) will first build the dependencies after which it will build the parent package.
Failing to include __new__ dependencies will fail the CI tests.
### Clean-up a Pull Request (PR)
If by some mistake you end up with multiple commits in your PR and one of our developers asks you to squash your commits please do __NOT__ create a new pull request.
Instead please follow [this rebase tutorial](https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages).
### Pull Request (PR) max age
Pull Requests that have not been updated in the last 180 days will automatically be labeled S-stale. After 7 days of additional inactivity the PR will automatically be closed except if one of the Alpine developers will label it with S-WIP (Work In Progress).
R-main: /main
R-community: /community
R-testing: /testing
R-unmaintained: /unmaintained
R-non-free: /non-free
R-aports: ["/.github", "/.githooks", "/scripts"]
Run `git config -e` and add the block below then run `git fetch --all` to update all the GitHub pull request branches.
```
[remote "github"]
url = https://github.com/alpinelinux/aports.git
fetch = +refs/heads/*:refs/remotes/github/*
fetch = +refs/pull/*:refs/remotes/github/pr/*
```
After you have done this you can merge / squash / rebase / cherry-pick from the command line.
For example, `git rebase master github/pr/XXX/head; git checkout master` would migrate all the commits from PR #XXX.
You can then push the results back to the "origin" remote which should be the official Alpine Linux aports repository.
# Configuration for probot-stale - https://github.com/probot/stale
pulls:
daysUntilStale: 60
daysUntilClose: 14
staleLabel: S-stale
exemptLabels:
- S-help-wanted
- S-needs-review
- S-ready
- S-waiting-maintainer-review
- S-WIP
- T-backport-it
- T-security
markComment: |
Sorry to bother you, but we noticed there has't been any activity on this
pull request for 60 days. Because we have to deal with a lot of pull
requests, we use this stupid bot to automatically mark it as stale.
If you still want this PR to be merged, you can do the following:
1. Rebase the PR on the latest master.
2. Apply any feedback you might have received.
3. Make sure the package builds without issues in CI.
4. If the PR is waiting on us, feel free to ping one of us here or on IRC.
If you are no longer interested in this PR, you don't have to do anything.
The PR will automatically be closed in 14 days.
closeComment: >
This pull request has been automatically closed.
......@@ -12,3 +12,6 @@ src
pkg
pkg-*
build.log
core
!core/
.vscode/
\ No newline at end of file
stages:
- lint
# Make sure master points to the correct upstream commit
before_script:
- >
git fetch $CI_MERGE_REQUEST_PROJECT_URL
+refs/heads/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME:refs/heads/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
lint:
stage: lint
image: alpinelinux/apkbuild-lint-tools:latest
script:
- changed-aports $CI_MERGE_REQUEST_TARGET_BRANCH_NAME | lint
allow_failure: true
only:
- merge_requests
tags:
- docker-alpine
- x86_64
......@@ -2,3 +2,9 @@ Timo Teräs <timo.teras@iki.fi>
Natanael Copa <ncopa@alpinelinux.org> <natanael.copa@gmail.com>
Natanael Copa <ncopa@alpinelinux.org> <ncopa@ncopa-laptop.localdomain>
Natanael Copa <ncopa@alpinelinux.org> <ncopa@alpine-netbook.(none)>
Kevin Daudt <kdaudt@alpinelinux.org> <ops@ikke.info>
Lucas Ramage <ramage.lucas@protonmail.com> <oxr463@gmx.us>
Lucas Ramage <ramage.lucas@protonmail.com> <ramage.lucas@openmailbox.org>
Lucas Ramage <ramage.lucas@protonmail.com> <lramage@star2star.com>
<eu@eju.no> <eivind@uggedal.com>
Oliver Smith <ollieparanoid@postmarketos.org> <ollieparanoid@bitmessage.ch>
dist: trusty
sudo: required
language: minimal
install:
- sudo .travis/install-alpine
- sudo .travis/setup-alpine
script: |
source .travis/common.sh
alpine_run $USER .travis/build-pkgs
notifications:
email: false