Compare commits

..

6 Commits

Author SHA1 Message Date
2ba8cb4fa5 deploypkg: fix exit code 2023-05-03 23:45:58 +02:00
278a6d17a7 buildtree: fix exit codes 2023-05-03 17:50:19 +02:00
d068fa6b75 Merge pull request 'buildtree: don't strip arch maintainer' (#69) from Dudemanguy/artools:keep-original-maintainer into master
Reviewed-on: #69
2023-05-03 17:47:01 +02:00
70e93c3843 buildtree: don't strip arch maintainer
Instead of completely overwriting the first maintainer line when doing
an import, copy it to the second line and then find/replace maintainer
with contributor.
2023-05-01 20:27:43 -05:00
8a0168cbe5 arch patches 2023-04-30 19:03:11 +02:00
c2082be241 upd makepkg.conf 2023-01-20 00:12:22 +01:00
8 changed files with 40 additions and 9 deletions

View File

@@ -93,7 +93,7 @@ done
unshare --mount basestrap -${umode}Mc ${pacman_conf:+-C "$pacman_conf"} "$working_dir" \
"${cache_dirs[@]/#/--cachedir=}" "$@" || die 'Failed to install all packages'
printf '%s.UTF-8 UTF-8\n' C en_US de_DE > "$working_dir/etc/locale.gen"
printf '%s.UTF-8 UTF-8\n' en_US de_DE > "$working_dir/etc/locale.gen"
printf 'LANG=C.UTF-8\n' > "$working_dir/etc/locale.conf"
# printf 'KEYMAP=en\n' > "$working_dir/etc/vconsole.conf"
printf "%s\n" "${CHROOTVERSION}" > "$working_dir/.artools"

View File

@@ -114,8 +114,11 @@ set_maintainer() {
local name email path="$1"
name=$(git -C $path config --get user.name)
email=$(git -C $path config --get user.email)
firstline=$(head -n 1 "$path"/PKGBUILD)
sed "2i ${firstline}" -i "$path"/PKGBUILD
sed -e "1s|Maintainer:.*|Maintainer: $name <$email>|" \
-i "$path"/PKGBUILD
sed -e "2s|Maintainer|Contributor|" -i "$path"/PKGBUILD
}
patch_pkg(){
@@ -323,12 +326,22 @@ shift $(( OPTIND - 1 ))
set_arch_repos "$testing" "$staging" "$unstable"
${sync} && sync_repos
if ${sync}; then
sync_repos
fi
${view} && view_build
if ${view}; then
view_build
fi
${check} && check_tree
if ${check}; then
check_tree
fi
${import} && from_arch
if ${import}; then
from_arch
fi
${createnew} && pkgrepo_new
if ${createnew}; then
pkgrepo_new
fi

View File

@@ -42,7 +42,9 @@ repo_action(){
cd "$repo_path" || return
if [[ -n "${action}" ]]; then
repo-"${action}" -R "${dest_repo}"."${pkgdb_ext}" "${packages[@]}"
${linksdb} && links-"${action}" "${dest_repo}"."${linksdb_ext}" "${packages[@]}"
if ${linksdb}; then
links-"${action}" "${dest_repo}"."${linksdb_ext}" "${packages[@]}"
fi
fi
}

View File

@@ -240,6 +240,8 @@ diff_pkgs() {
fi
}
shopt -s extglob
fetch_pkg() {
local pkg pkgdest pkgurl
case $1 in
@@ -288,6 +290,8 @@ fetch_pkg() {
echo "$pkgdest"
}
shopt -u extglob
if (( $# < 2 )); then
if [[ ! -f PKGBUILD ]]; then
die "This must be run in the directory of a built package.\nTry '$(basename "$0") --help' for more information."

View File

@@ -50,6 +50,8 @@ else
pushd "$WORKDIR" >/dev/null
fi
shopt -s extglob
process_sofile() {
# extract the library name: libfoo.so
shopt -s extglob nullglob
@@ -67,6 +69,8 @@ process_sofile() {
fi
}
shopt -u extglob
case $script_mode in
deps) find_args=(-perm -u+x);;
provides) find_args=(-name '*.so*');;

View File

@@ -46,13 +46,13 @@ CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
LTOFLAGS="-flto=auto"
#RUSTFLAGS="-C opt-level=2"
RUSTFLAGS=""
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"
#-- Debugging flags
DEBUG_CFLAGS="-g"
DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
#DEBUG_RUSTFLAGS="-C debuginfo=2"
DEBUG_RUSTFLAGS="-C debuginfo=2"
#########################################################################
# BUILD ENVIRONMENT

View File

@@ -2,6 +2,8 @@
#{{{ functions
shopt -s extglob
find_cached_pkgfile() {
local searchdirs=("$PKGDEST" "$PWD") results=()
local pkg="$1"
@@ -25,6 +27,8 @@ find_cached_pkgfile() {
esac
}
shopt -u extglob
get_pkgbasename() {
local name="$1"
local rm_pkg=${name%.pkg.tar*}

View File

@@ -12,6 +12,8 @@ pkgver_equal() {
fi
}
shopt -s extglob
find_cached_package() {
local searchdirs=("$PWD" "$PKGDEST") results=()
local targetname=$1 targetver=$2 targetarch=$3
@@ -68,4 +70,6 @@ find_cached_package() {
esac
}
shopt -u extglob
#}}}