Bug 46216

Summary: Некорректная работа утилиты rpmgp
Product: Sisyphus Reporter: Savelev Pavel <savelevpa>
Component: etersoft-build-utilsAssignee: Vitaly Lipatov <lav>
Status: REOPENED --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: amakeenk, lav, sin, soldatovsu
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Savelev Pavel 2023-05-23 14:09:37 MSK
Версия пакета с ошибкой: etersoft-build-utils-3.2.1-alt1

Стенды с ошибкой:

education-10.1-x86-64
education-10.1-x86-64-kde
kworkstation-10.1-x86-64
workstation-10.1-x86-64
server-10.1-x86-64

Шаги для воспроизведения:

1. # apt-get install etersoft-build-utils pdsh hasher git perl-LWP-Protocol-https ccache

2. # visudo

Раскомментируйте строчки

WHEEL_USERS ALL=(ALL:ALL) ALL
WHEEL_USERS ALL=(ALL:ALL) NOPASSWD: ALL

3. # apt-get install festival-doc

4. $ rpmgp -b p8 -c festival-doc

Вывод в терминал:

Get repositories at :
 $ ssh find-package festival-doc
ssh: Could not resolve hostname find-package: Name or service not known
 $ /usr/bin/gacl -b p8 festival-doc show
 $ ssh acl p8 festival-doc show
:p8 ACL for ssh: Could not resolve hostname acl: Name or service not known

Checking 'festival-doc' in '' ...
 $ rsync -n /files/SRPMS/festival-doc-[0-9]*
Local package festival-doc-1.4.2-alt1.src.rpm differs from the latest version from

Утилита не может получить данные из репозитория о пакете.

В версии пакета etersoft-build-utils-3.0.11-alt1 из P10.

$ rpmgp -b p8 -c nano
Get repositories at git.alt:
ssh: Could not resolve hostname git.alt: Name or service not known
 $ /usr/bin/gacl git.alt -b p8 nano show
a $ ssh gear.alt acl p8 nano show
gear.alt:p8 ACL for ssh: Could not resolve hostname gear.alt: Name or service not known

Checking 'nano' in 'rsync.altlinux.org::ALTLinux/p8/branch' ...
 $ rsync -n rsync.altlinux.org::ALTLinux/p8/branch/files/SRPMS/nano-[0-9]*
-rw-r--r--      1.524.465 2018/11/15 14:46:10 nano-2.2.4-alt1.qa1.2.src.rpm
Local package nano-5.8-alt1.src.rpm differs from the latest version from rsync.altlinux.org::ALTLinux/p8/branch
[test@kworkstation-10-20230520 ~]$ rpmgp -b p8 -c festival-doc
Get repositories at git.alt:
ssh: Could not resolve hostname git.alt: Name or service not known
 $ /usr/bin/gacl git.alt -b p8 festival-doc show
 $ ssh gear.alt acl p8 festival-doc show
gear.alt:p8 ACL for ssh: Could not resolve hostname gear.alt: Name or service not known

Checking 'festival-doc' in 'rsync.altlinux.org::ALTLinux/p8/branch' ...
-rw-r--r--      1.656.135 2006/10/29 23:04:50 festival-doc-1.4.2-alt1.src.rpm
Package festival-doc-1.4.2-alt1.src.rpm is the latest version from rsync.altlinux.org::ALTLinux/p8/branch

Утилита отрабатывает корректно. В новой версиии наблюдается регрессия.

Хотя в версии из P10 наблюдается такая-же проблема, если попытаться получить данные из других репозиториев.

$ rpmgp -b p9 -c festival-doc
Get repositories at git.alt:
ssh: Could not resolve hostname git.alt: Name or service not known
 $ /usr/bin/gacl git.alt -b p9 festival-doc show
 $ ssh gear.alt acl p9 festival-doc show
gear.alt:p9 ACL for ssh: Could not resolve hostname gear.alt: Name or service not known

Checking 'festival-doc' in '' ...
 $ rsync -n /files/SRPMS/festival-doc-[0-9]*
Local package festival-doc-1.4.2-alt1.src.rpm differs from the latest version from.
Comment 1 Vitaly Lipatov 2023-05-23 22:49:08 MSK
>2. # visudo
>
>Раскомментируйте строчки
>
>WHEEL_USERS ALL=(ALL:ALL) ALL
>WHEEL_USERS ALL=(ALL:ALL) NOPASSWD: ALL

Если можно, уберите из сценария настройку sudo, это не нужно при сборке в общем случае.
Comment 2 Repository Robot 2023-05-24 04:40:05 MSK
etersoft-build-utils-3.2.5-alt1 -> sisyphus:

 Tue May 23 2023 Vitaly Lipatov <lav@altlinux.ru> 3.2.5-alt1
 - rpmgs: use case insensitive search for Url
 - rpmgs: check VCS/url only for the first Source
 - add missed alias SS -> sisyphus (ALT bug 46213)
 - repos/rsync: add gitery support (ALT bug 46216)
Comment 3 Савелий Солдатов 2024-04-11 17:29:34 MSK
Версия пакета: etersoft-build-utils-3.2.10-alt1.noarch
Ошибка воспроизводится
Comment 4 Repository Robot 2024-04-11 17:50:20 MSK
etersoft-build-utils-3.2.10-alt1 -> p10:

 Thu Mar 28 2024 Vitaly Lipatov <lav@altlinux.ru> 3.2.10-alt1
 - rpmgs: case insensitive VCS
 - rpmgs: improve removing libs from windows/winapi cargo modules
 - config: add check if _topdir is incorrect default /usr/src/RPM
 - hasher: add workaround for commented lines in apt.conf, print out used apt.conf
 - rpmgs: return on failed erc
 - spec: fix eval spec on non ALT platforms
 - spec: use checkbashisms only if it is installed
 Wed Dec 27 2023 Vitaly Lipatov <lav@altlinux.ru> 3.2.9-alt1
 - parse_cmd_pre_spec(): add spec detection inside hasher
 - rpmrb: fix -n support
 Sat Nov 11 2023 Vitaly Lipatov <lav@altlinux.ru> 3.2.8-alt1
 - rpmrb: add -n to skip install built package in hasher
 - improve pkgrepls
 - fix slashes in regexps
 - functions/common: hide csed using
 Sun Aug 06 2023 Vitaly Lipatov <lav@altlinux.ru> 3.2.7-alt1
 - rpmcs: don't add packager field
 - rpmgs: refactored source downloading
 - rpmgs: allow /commit in Source-url with git
 - rpmgs: add Cargo.lock in subdirs
 Tue May 30 2023 Vitaly Lipatov <lav@altlinux.ru> 3.2.6-alt1
 - rpmgs: add support for git repo for Source-url (create tarball from the git url)
 - rpmgs: add source url to tarball commit message
 - gitask: add -u|--user USER
 Tue May 23 2023 Vitaly Lipatov <lav@altlinux.ru> 3.2.5-alt1
 - rpmgs: use case insensitive search for Url
 - rpmgs: check VCS/url only for the first Source
 - add missed alias SS -> sisyphus (ALT bug 46213)
 - repos/rsync: add gitery support (ALT bug 46216)
 Sat May 20 2023 Vitaly Lipatov <lav@altlinux.ru> 3.2.4-alt1
 - rpmgs: add VCS: support, check also Url if VCS is missed
 - functions/common: use DISTRVENDOR from EPMCMD
 - functions/spec: user --target for rpmbuild
 - rpmbps: some improvements
 Thu May 18 2023 Vitaly Lipatov <lav@altlinux.ru> 3.2.3-alt1
 - sources.list: change to external repos
 Thu May 11 2023 Vitaly Lipatov <lav@altlinux.ru> 3.2.2-alt1
 - fix get_release for gitery
 - gitask: add support from <branch> for add copy
 - download_url: use epm tool eget instead of wget
 - etc/repos/srpms: fix suse tumbleweed repo
 Tue May 02 2023 Vitaly Lipatov <lav@altlinux.ru> 3.2.1-alt1
 - gitask find: improve output dates
 - implement gitery support and git host detection
 - rpmgp: use gita for find packages in the repo
 - fix set_gear_host()
 Mon May 01 2023 Vitaly Lipatov <lav@altlinux.ru> 3.2.0-alt1
 - gitask: improve description
 - myhsh: add -e for fast build after -l (lazy cleanup)
 - rpmbsh: implement -e for fast build (via hsh-rebuild) after -l (lazy cleanup)
 - rpmbps: use name part for release from KORINFTARGETRELEASE if set
 - rpmbs: remove obsoleted key -e
 - runinhsh: rewrite
 - /etc/apt/sources: add examples for p10 and Sisyphus
 Fri Mar 17 2023 Vitaly Lipatov <lav@altlinux.ru> 3.1.1-alt1
 - rpmreqs: fix missed reqs
 - functions/common: improve git root detection
 - update srpms list
 - functions/common: add subst() if missed
 - rpmgs: update submodules recursive
 - etc/apt: add c9f2 configs
 - gitask: add build alias: gita add build <repo> <tag>
 - small fixes
 Thu Aug 11 2022 Vitaly Lipatov <lav@altlinux.ru> 3.1.0-alt1
 - rpmreqs: fix work on x86_64
 - egrep -> grep -E
 - gitask: fix return status
 - commit pkgrepl
 - add TARGETARCH support
 - repl: fix 32bit build
 Mon Apr 18 2022 Vitaly Lipatov <lav@altlinux.ru> 3.0.12-alt1
 - rpmbsh: fix p10 support
 - repl: rewrite internal_repl_list to support major only versions and fix sorted order
 - jmake: drop docmd
 - move from SS to sisyphus suffix
 - config: check rpm via which
 - gitask: add support for srpms replacement
 - rpmbb: fix on non ALT platform
Comment 5 Alexander Makeenkov 2024-04-11 17:54:27 MSK
(Ответ для Савелий Солдатов на комментарий #3)
> Версия пакета: etersoft-build-utils-3.2.10-alt1.noarch
> Ошибка воспроизводится
Comment 6 Vitaly Lipatov 2024-04-12 03:35:37 MSK
Не понимаю, что именно не работает. rpmgp рассчитывает на пседоним gitery в ~/.ssh/config

$ rpmgp -b p9 -c festival-doc
пакет festival-doc не установлен
Get repositories at gitery:
 $ ssh gitery find-package festival-doc
 $ /srv/lav/Projects/git/etersoft-build-utils/bin/gacl gitery -b p9 festival-doc show
 $ ssh gyle acl p9 festival-doc show
gyle:p9 ACL for 
Checking 'festival-doc-[0-9]*' in 'rsync.altlinux.org::ALTLinux/p9/branch' ...
 $ rsync -n rsync.altlinux.org::ALTLinux/p9/branch/files/SRPMS/festival-doc-[0-9]*
-rw-r--r--      1.656.135 2006/10/29 23:04:50 festival-doc-1.4.2-alt1.src.rpm
Package 'festival-doc' is not installed locally


$ rpmgp -b p9 -g festival-doc
 $ git clone gitery:/srpms/f/festival-doc.git
Cloning into 'festival-doc'...
remote: Enumerating objects: 683, done.
remote: Counting objects: 100% (683/683), done.
remote: Compressing objects: 100% (275/275), done.
remote: Total 683 (delta 391), reused 683 (delta 391), pack-reused 0
Receiving objects: 100% (683/683), 1.62 MiB | 12.54 MiB/s, done.
Resolving deltas: 100% (391/391), done.
 $ git remote rename origin gear
Renaming remote references: 100% (22/22), done.
 $ git checkout sisyphus
Already on 'sisyphus'
Your branch is up to date with 'gear/sisyphus'.
See other repos at gitery:
 $ ssh gitery find-package festival-doc