Commit 6e9a09bb authored by Vitaly Lipatov's avatar Vitaly Lipatov

backported to c8.1 as 2.5.8-alt0.M80C.1.1 (with rpmbph script)

parents 7a65335d 835a9dde
...@@ -406,7 +406,7 @@ done ...@@ -406,7 +406,7 @@ done
# if input is not console and run script from file, get pkgs from stdin too # if input is not console and run script from file, get pkgs from stdin too
if ! inputisatty && [ -n "$PROGDIR" ] ; then if ! inputisatty && [ -n "$PROGDIR" ] ; then
for opt in $(withtimeout 1 cat) ; do for opt in $(withtimeout 2 cat) ; do
# FIXME: do not work # FIXME: do not work
# workaround against # yes | epme # workaround against # yes | epme
[ "$opt" = "y" ] && break; [ "$opt" = "y" ] && break;
......
...@@ -22,7 +22,7 @@ load_helper epm-search ...@@ -22,7 +22,7 @@ load_helper epm-search
__epm_query_package() __epm_query_package()
{ {
pkg_filenames="$*" quoted_args="$*" quiet=1 epm_query_package (pkg_filenames="$*" quoted_args="$*" quiet=1 epm_query_package)
} }
epm_query_package() epm_query_package()
...@@ -33,5 +33,5 @@ epm_query_package() ...@@ -33,5 +33,5 @@ epm_query_package()
MGS=$(eval __epm_search_make_grep $quoted_args) MGS=$(eval __epm_search_make_grep $quoted_args)
EXTRA_SHOWDOCMD=$MGS EXTRA_SHOWDOCMD=$MGS
# Note: get all packages list and do grep # Note: get all packages list and do grep
eval "pkg_filenames='' epm_packages \"$(eval get_firstarg $quoted_args)\" $MGS" (eval "pkg_filenames='' epm_packages \"$(eval get_firstarg $quoted_args)\" $MGS")
} }
# This spec is backported to ALTLinux p8 automatically by rpmbph script from etersoft-build-utils. # This spec is backported to ALTLinux c8.1 automatically by rpmbph script from etersoft-build-utils.
# #
Name: eepm Name: eepm
Version: 2.5.7 Version: 2.5.8
Release: alt0.M80C.1 Release: alt0.M80C.1.1
Summary: Etersoft EPM package manager Summary: Etersoft EPM package manager
...@@ -90,8 +90,13 @@ rm -f %buildroot%_datadir/%name/tools_eget ...@@ -90,8 +90,13 @@ rm -f %buildroot%_datadir/%name/tools_eget
%_sysconfdir/bash_completion.d/cerv %_sysconfdir/bash_completion.d/cerv
%changelog %changelog
* Wed Feb 27 2019 Andrey Cherepanov <cas@altlinux.org> 2.5.7-alt0.M80C.1 * Tue Mar 26 2019 Vitaly Lipatov <lav@altlinux.ru> 2.5.8-alt0.M80C.1.1
- backport new version to c8 branch - backport to ALTLinux c8.1 (by rpmbph script)
* Tue Mar 26 2019 Vitaly Lipatov <lav@altlinux.ru> 2.5.8-alt1
- add trueconf-client repack config
- epm: set timeout for 2 secs
- fix broken pkg_filenames
* Mon Feb 25 2019 Vitaly Lipatov <lav@altlinux.ru> 2.5.7-alt1 * Mon Feb 25 2019 Vitaly Lipatov <lav@altlinux.ru> 2.5.7-alt1
- epm downgrade: add --auto support - epm downgrade: add --auto support
...@@ -99,9 +104,6 @@ rm -f %buildroot%_datadir/%name/tools_eget ...@@ -99,9 +104,6 @@ rm -f %buildroot%_datadir/%name/tools_eget
- add repack scripts for chromium-gost and google-chrome - add repack scripts for chromium-gost and google-chrome
- fix comments - fix comments
* Sat Feb 23 2019 Andrey Cherepanov <cas@altlinux.org> 2.5.6-alt0.M80C.1
- backport new version to c8 branch
* Tue Feb 05 2019 Vitaly Lipatov <lav@altlinux.ru> 2.5.6-alt1 * Tue Feb 05 2019 Vitaly Lipatov <lav@altlinux.ru> 2.5.6-alt1
- check: improve remove dupls: remove identical packages, add common removing - check: improve remove dupls: remove identical packages, add common removing
......
...@@ -27,6 +27,7 @@ fi ...@@ -27,6 +27,7 @@ fi
# will replaced to /usr/share/eepm during install # will replaced to /usr/share/eepm during install
SHAREDIR=$PROGDIR SHAREDIR=$PROGDIR
CONFIGDIR=$PROGDIR/..
load_helper() load_helper()
{ {
...@@ -649,7 +650,7 @@ case $PMTYPE in ...@@ -649,7 +650,7 @@ case $PMTYPE in
if echo "$repo" | grep -q "https://" ; then if echo "$repo" | grep -q "https://" ; then
assure_exists apt-transport-https assure_exists apt-transport-https
fi fi
apt-add-repository "$repo" sudocmd apt-add-repository "$repo"
info "Check file /etc/apt/sources.list if needed" info "Check file /etc/apt/sources.list if needed"
;; ;;
aptitude-dpkg) aptitude-dpkg)
...@@ -1266,19 +1267,52 @@ epm_changelog() ...@@ -1266,19 +1267,52 @@ epm_changelog()
# File bin/epm-check: # File bin/epm-check:
try_fix_apt_rpm_dupls()
{
info "Check for duplicates ..."
local TESTPKG="ignoreflock"
local has_testpkg=""
if epm --quiet installed $TESTPKG ; then
has_testpkg=1
sudocmd epm remove --auto $TESTPKG || return
fi
local PKGLIST
PKGLIST=$(LANG=C $SUDO apt-get install $TESTPKG 2>&1 | grep "W: There are multiple versions of" | \
sed -e 's|W: There are multiple versions of "\(.*\)" in your system.|\1|')
local TODEL
for i in $PKGLIST ; do
local pkg=${i/.32bit/}
local todel="$(rpm -q $pkg | head -n1)"
local todel2="$(rpm -q $pkg | head -n2 | tail -n1)"
if [ "$todel" = "$todel2" ] ; then
echo "Fix the same name duplicates for $pkg..."
sudocmd rpm -e "$todel" --allmatches --nodeps && epm install $pkg && continue
fi
sudocmd rpm -e "$todel" || TODEL="$TODEL $todel"
done
[ -n "$TODEL" ] && sudocmd rpm -e "$TODEL"
[ -n "$has_testpkg" ] && epm install $TESTPKG
}
epm_check() epm_check()
{ {
case $PMTYPE in case $PMTYPE in
apt-rpm|apt-dpkg) apt-rpm)
#sudocmd apt-get check || exit #sudocmd apt-get check || exit
#sudocmd apt-get update || exit #sudocmd apt-get update || exit
sudocmd apt-get -f install sudocmd apt-get -f install || return
try_fix_apt_rpm_dupls
;;
apt-dpkg)
#sudocmd apt-get check || exit
#sudocmd apt-get update || exit
sudocmd apt-get -f install || return
;; ;;
apt-dpkg) apt-dpkg)
#sudocmd apt-get update || exit #sudocmd apt-get update || exit
#sudocmd apt-get check || exit #sudocmd apt-get check || exit
sudocmd apt-get -f install || return sudocmd apt-get -f install || return
sudocmd apt-get autoremove #sudocmd apt-get autoremove
;; ;;
aptitude-dpkg) aptitude-dpkg)
sudocmd aptitude -f install || return sudocmd aptitude -f install || return
...@@ -1743,20 +1777,22 @@ epm_downgrade() ...@@ -1743,20 +1777,22 @@ epm_downgrade()
case $PMTYPE in case $PMTYPE in
apt-rpm) apt-rpm)
local APTOPTIONS="$(subst_option non_interactive -y)"
__epm_add_alt_apt_downgrade_preferences || return __epm_add_alt_apt_downgrade_preferences || return
if [ -n "$pkg_filenames" ] ; then if [ -n "$pkg_filenames" ] ; then
sudocmd apt-get install $pkg_filenames sudocmd apt-get $APTOPTIONS install $pkg_filenames
else else
sudocmd apt-get dist-upgrade sudocmd apt-get $APTOPTIONS dist-upgrade
fi fi
__epm_remove_apt_downgrade_preferences __epm_remove_apt_downgrade_preferences
;; ;;
apt-dpkg) apt-dpkg)
local APTOPTIONS="$(subst_option non_interactive -y)"
__epm_add_deb_apt_downgrade_preferences || return __epm_add_deb_apt_downgrade_preferences || return
if [ -n "$pkg_filenames" ] ; then if [ -n "$pkg_filenames" ] ; then
sudocmd apt-get install $pkg_filenames sudocmd apt-get $APTOPTIONS install $pkg_filenames
else else
sudocmd apt-get dist-upgrade sudocmd apt-get $APTOPTIONS dist-upgrade
fi fi
__epm_remove_apt_downgrade_preferences __epm_remove_apt_downgrade_preferences
;; ;;
...@@ -4061,7 +4097,7 @@ epm_query_file() ...@@ -4061,7 +4097,7 @@ epm_query_file()
__epm_query_package() __epm_query_package()
{ {
pkg_filenames="$*" quoted_args="$*" quiet=1 epm_query_package (pkg_filenames="$*" quoted_args="$*" quiet=1 epm_query_package)
} }
epm_query_package() epm_query_package()
...@@ -4072,7 +4108,7 @@ epm_query_package() ...@@ -4072,7 +4108,7 @@ epm_query_package()
MGS=$(eval __epm_search_make_grep $quoted_args) MGS=$(eval __epm_search_make_grep $quoted_args)
EXTRA_SHOWDOCMD=$MGS EXTRA_SHOWDOCMD=$MGS
# Note: get all packages list and do grep # Note: get all packages list and do grep
eval "pkg_filenames='' epm_packages \"$(eval get_firstarg $quoted_args)\" $MGS" (eval "pkg_filenames='' epm_packages \"$(eval get_firstarg $quoted_args)\" $MGS")
} }
# File bin/epm-reinstall: # File bin/epm-reinstall:
...@@ -4297,7 +4333,7 @@ __update_to_the_distro() ...@@ -4297,7 +4333,7 @@ __update_to_the_distro()
Sisyphus) Sisyphus)
docmd epm update || fatal docmd epm update || fatal
local ADDPKG local ADDPKG
ADDPKG=$(epm -q --short make-initrd) ADDPKG=$(epm -q --short make-initrd sssd-ad 2>/dev/null)
docmd epm install librpm7 librpm rpm apt $ADDPKG "$(get_fix_release_pkg --force "$TO")" ConsoleKit2- || fatal "Check an error and run again" docmd epm install librpm7 librpm rpm apt $ADDPKG "$(get_fix_release_pkg --force "$TO")" ConsoleKit2- || fatal "Check an error and run again"
#docmd apt-get upgrade || fatal "Check an error and run epm release-upgrade or just epm upgrade again" #docmd apt-get upgrade || fatal "Check an error and run epm release-upgrade or just epm upgrade again"
docmd epm upgrade || fatal "Check an error and run epm release-upgrade or just epm upgrade again" docmd epm upgrade || fatal "Check an error and run epm release-upgrade or just epm upgrade again"
...@@ -4850,7 +4886,7 @@ esac; ...@@ -4850,7 +4886,7 @@ esac;
case $PMTYPE in case $PMTYPE in
apt-dpkg) apt-dpkg)
assure_exists apt-add-repository software-properties-common assure_exists apt-add-repository software-properties-common
apt-add-repository --remove "$repo" sudocmd apt-add-repository --remove "$repo"
info "Check file /etc/apt/sources.list if needed" info "Check file /etc/apt/sources.list if needed"
;; ;;
aptitude-dpkg) aptitude-dpkg)
...@@ -4998,7 +5034,7 @@ __fix_spec() ...@@ -4998,7 +5034,7 @@ __fix_spec()
__apply_fix_code() __apply_fix_code()
{ {
local repackcode="/etc/eepm/repack.d/$1.sh" local repackcode="$CONFIGDIR/repack.d/$1.sh"
[ -x "$repackcode" ] || return [ -x "$repackcode" ] || return
shift shift
docmd $repackcode "$1" "$2" || warning "There was errors with $repackcode script" docmd $repackcode "$1" "$2" || warning "There was errors with $repackcode script"
...@@ -7501,7 +7537,7 @@ $(get_help HELPOPT) ...@@ -7501,7 +7537,7 @@ $(get_help HELPOPT)
print_version() print_version()
{ {
echo "EPM package manager version 2.5.4" echo "EPM package manager version 2.5.8"
echo "Running on $($DISTRVENDOR) ('$PMTYPE' package manager uses '$PKGFORMAT' package format)" echo "Running on $($DISTRVENDOR) ('$PMTYPE' package manager uses '$PKGFORMAT' package format)"
echo "Copyright (c) Etersoft 2012-2018" echo "Copyright (c) Etersoft 2012-2018"
echo "This program may be freely redistributed under the terms of the GNU AGPLv3." echo "This program may be freely redistributed under the terms of the GNU AGPLv3."
...@@ -7511,7 +7547,7 @@ print_version() ...@@ -7511,7 +7547,7 @@ print_version()
Usage="Usage: epm [options] <command> [package name(s), package files]..." Usage="Usage: epm [options] <command> [package name(s), package files]..."
Descr="epm - EPM package manager" Descr="epm - EPM package manager"
EPMVERSION=2.5.4 EPMVERSION=2.5.8
verbose= verbose=
quiet= quiet=
nodeps= nodeps=
...@@ -7842,7 +7878,7 @@ done ...@@ -7842,7 +7878,7 @@ done
# if input is not console and run script from file, get pkgs from stdin too # if input is not console and run script from file, get pkgs from stdin too
if ! inputisatty && [ -n "$PROGDIR" ] ; then if ! inputisatty && [ -n "$PROGDIR" ] ; then
for opt in $(withtimeout 1 cat) ; do for opt in $(withtimeout 2 cat) ; do
# FIXME: do not work # FIXME: do not work
# workaround against # yes | epme # workaround against # yes | epme
[ "$opt" = "y" ] && break; [ "$opt" = "y" ] && break;
......
...@@ -2240,7 +2240,7 @@ $(get_help HELPOPT) ...@@ -2240,7 +2240,7 @@ $(get_help HELPOPT)
print_version() print_version()
{ {
echo "Service manager version 2.5.4" echo "Service manager version 2.5.8"
echo "Running on $($DISTRVENDOR) with $SERVICETYPE" echo "Running on $($DISTRVENDOR) with $SERVICETYPE"
echo "Copyright (c) Etersoft 2012-2018" echo "Copyright (c) Etersoft 2012-2018"
echo "This program may be freely redistributed under the terms of the GNU AGPLv3." echo "This program may be freely redistributed under the terms of the GNU AGPLv3."
......
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
subst 's|%dir "/usr/share/icons/hicolor/.*||' $SPEC
# Make relative symlink
# TODO: alien does not support ghost files?
mkdir -p $BUILDROOT/usr/bin/
rm -f $BUILDROOT/usr/bin/trueconf
ln -s ../../opt/trueconf/trueconf-client $BUILDROOT/usr/bin/trueconf
chmod a+x $BUILDROOT/opt/trueconf/trueconf-client
rm -rvf $BUILDROOT/usr/local/
[ "$(distr_info -b)" = 64 ] && LIBUDEV=/lib64/libudev.so.0 || LIBUDEV=/lib/libudev.so.0
ln -s $LIBUDEV $BUILDROOT/opt/trueconf/lib/libudev.so.0
REQUIRES="libudev1 pulseaudio alsa-utils libv4l sqlite gtk2 libpng openssl udev libxslt xdg-utils"
subst "s|^\(Name: .*\)$|# FIXME: due libcrypto.so.10(libcrypto.so.10)(64bit) autoreqs\nAutoReq:yes,nolib\n# Converted from original package requires\nRequires:$REQUIRES\n\1|g" $SPEC
subst 's|.*/usr/local.*||' $SPEC
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment