forked from artix/artools
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
02b28e82ef | ||
![]() |
fb6d1d4c1b | ||
![]() |
9fc3fbd14d | ||
![]() |
72f2781cb9 | ||
![]() |
9ddd73c8b4 | ||
![]() |
3c92d5c87a |
@@ -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}"
|
||||
|
@@ -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 "$@"
|
||||
|
58
data/missing
58
data/missing
@@ -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
|
||||
|
Reference in New Issue
Block a user