Compare commits

..

6 Commits

Author SHA1 Message Date
artoo
02b28e82ef Merge pull request #53 from artix-linux/devel
upd missing build deps
2018-02-17 21:58:53 +01:00
udeved
fb6d1d4c1b upd missing build deps 2018-02-17 21:58:09 +01:00
artoo
9fc3fbd14d Merge pull request #52 from artix-linux/devel
Devel
2018-02-17 21:57:15 +01:00
udeved
72f2781cb9 buildtree: fix new imports that don't exist 2018-02-17 21:54:59 +01:00
udeved
9ddd73c8b4 buildtree: use find_tree() to determine the git repo 2018-02-17 12:59:17 +01:00
udeved
3c92d5c87a mkchrootpkg: place comments for workarounds 2018-02-17 12:58:31 +01:00
3 changed files with 82 additions and 48 deletions

View File

@@ -83,7 +83,7 @@ show_version_table(){
}
show_artix_table(){
msg_table_header "%-20s %-20s %-25s %-30s %-30s" "Arch Repo" "Artix Repo" "Package" "Arch version" "Artix version"
msg_table_header "%-20s %-20s %-25s %-30s %-30s" "Arch Repo" "Artix Repo" "Package" "Arch version" "Artix version"
for tree in packages packages-galaxy;do
local git=$(find ${tree_dir_artix}/$tree/ -mindepth 1 -maxdepth 1 -type d)
for pkg_path in ${git[@]}; do
@@ -126,32 +126,45 @@ show_artix_table(){
}
from_arch(){
local pkg="$1" archtree="$2" artixtree="$3" src= dest=
src=${tree_dir_arch}/$archtree/$pkg/trunk
dest=${tree_dir_artix}/$artixtree/$pkg/trunk
local pkg="$1" src= dest=
local git_tree_arch=$(find_tree "${tree_dir_arch}" "$pkg")
[[ -z $git_tree_arch ]] && die "Package '%s' does not exist!" "$pkg"
src=${tree_dir_arch}/$git_tree_arch/$pkg/trunk
local git_tree_artix=$(find_tree "${tree_dir_artix}" "$pkg")
dest=${tree_dir_artix}/$git_tree_artix/$pkg/trunk
cd ${tree_dir_arch}/$git_tree_arch
source $src/PKGBUILD 2>/dev/null
cd ${tree_dir_arch}/$archtree
msg "Package: %s" "$pkg"
local archver=$(get_full_version $pkg)
msg "Package: %s" "$pkg"
msg2 "Arch Version: %s" "$archver"
[[ -n ${makedepends[@]} ]] && msg2 "makedepends: %s" "${makedepends[*]}"
[[ -n ${checkdepends[@]} ]] && msg2 "depends: %s" "${checkdepends[*]}"
[[ -n ${depends[@]} ]] && msg2 "depends: %s" "${depends[*]}"
if [[ -d $dest ]];then
cd ${tree_dir_artix}/$git_tree_artix
source $dest/PKGBUILD 2>/dev/null
cd ${tree_dir_artix}/$artixtree
local artixver=$(get_full_version $pkg)
msg2 "Artix Version: %s" "$artixver"
if [ $(vercmp $artixver $archver) -lt 0 ];then
info "Importing from archlinux (%s)" "$archtree"
rsync "${rsync_args[@]}" $src/ $dest/
patch_pkg "$pkg" "$tree"
else
warning "Versions match! Nothing to do!"
fi
info "Update from archlinux (%s)" "$git_tree_arch"
rsync "${rsync_args[@]}" $src/ $dest/
patch_pkg "$pkg" "$tree"
else
cd ${tree_dir_artix}/$artixtree
info "Importing from archlinux (%s)" "$archtree"
[[ $git_tree_arch == 'packages' ]] && git_tree_artix=$git_tree_arch
[[ $git_tree_arch == 'community' ]] && git_tree_artix='packages-galaxy'
cd ${tree_dir_artix}/$git_tree_artix
dest=${tree_dir_artix}/$git_tree_artix/$pkg/trunk
mkdir $pkg
info "Import from archlinux (%s)" "$git_tree_arch"
rsync "${rsync_args[@]}" $src/ $dest/
patch_pkg "$pkg" "$tree"
fi
@@ -175,8 +188,7 @@ display_settings(){
msg2 "upgrades: %s" "${upgrades}"
msg2 "downgrades: %s" "${downgrades}"
msg2 "artix: %s" "${artix}"
msg2 "import_packages: %s" "${import_packages}"
msg2 "import_community: %s" "${import_community}"
msg2 "import: %s" "${import}"
msg "PATHS:"
msg2 "tree_dir_artix: %s" "${tree_dir_artix}"
@@ -195,13 +207,9 @@ compare=false
upgrades=true
downgrades=false
artix=false
import_packages=false
import_community=false
import=false
package=''
git_artix='packages'
git_arch='packages'
rsync_args=(-aWxvci --progress --delete-before --no-R --no-implied-dirs)
usage() {
@@ -212,8 +220,7 @@ usage() {
echo ' -u Show upgrade packages'
echo ' -d Show downgrade packages'
echo ' -a Show artix specific packages'
echo ' -i Import from arch packages'
echo ' -j Import from arch community'
echo ' -i Import a package from arch'
echo ' -q Query settings'
echo ' -h This help'
echo ''
@@ -223,7 +230,7 @@ usage() {
orig_argv=("$0" "$@")
opts='p:csudaijqh'
opts='p:csudaiqh'
while getopts "${opts}" arg; do
case "${arg}" in
@@ -233,8 +240,7 @@ while getopts "${opts}" arg; do
u) upgrades=false ;;
d) downgrades=true ;;
a) artix=true ;;
i) import_packages=true ;;
j) import_community=true; git_artix='packages-galaxy'; git_arch='community' ;;
i) import=true ;;
q) pretend=true ;;
h|?) usage 0 ;;
*) echo "invalid argument '${arg}'"; usage 1 ;;
@@ -254,6 +260,4 @@ ${compare} && show_version_table
${artix} && show_artix_table
${import_packages} && from_arch "${package}" "${git_arch}" "${git_artix}"
${import_community} && from_arch "${package}" "${git_arch}" "${git_artix}"
${import} && from_arch "${package}"

View File

@@ -202,11 +202,15 @@ _chrootbuild() {
# No coredumps
ulimit -c 0
exec </dev/console
# Work around chroot-run not giving a ctty
# exec </dev/console
. /etc/profile
export LANG=en_US.UTF-8
# workaround meson locale errors
# supposedly fixed with coming python-3.7
locale-gen &> /dev/null
sudo --preserve-env=SOURCE_DATE_EPOCH -iu builduser bash -c 'cd /startdir; makepkg "$@"' -bash "$@"

View File

@@ -1,25 +1,51 @@
extra/speexdsp
extra/spandsp
extra/soundtouch
extra/sbc
extra/neon
extra/mjpegtools
extra/libmp4v2
extra/js
extra/gst-plugins-bad
extra/faac
extra/enchant
extra/chromaprint
extra/python-appdirs
extra/python-beaker
extra/python-mako
extra/python-markupsafe
extra/python-packaging
extra/python-pyparsing
extra/libmp4v2
extra/libmpdclient
extra/audiofile
extra/libid3tag
extra/idnkit
extra/neon
extra/sbc
extra/enchant
extra/chromaprint
extra/ttf-liberation
extra/appstream-glib
extra/libxkbui
extra/libxkbfile
extra/libunicodenames
extra/ethtool
extra/pygobject2-devel
extra/python2-gobject2
extra/faac
extra/mjpegtools
extra/mpg123
extra/serf
extra/tinycdb
extra/js
extra/speexdsp
extra/spandsp
extra/soundtouch
extra/gst-plugins-bad
extra/appstream-glib
extra/opencl-headers
# openrc-world deps
extra/metalog
extra/clamav
extra/lighttpd
extra/dnsmasq
extra/postgresql-libs
extra/postfix
extra/wicd
extra/cyrus-sasl
extra/mpd
extra/bitlbee
extra/bind
extra/lirc
extra/sane
extra/transmission-cli