Bug 34940 - сломано на e2k
Summary: сломано на e2k
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: apt-conf-sisyphus (show other bugs)
Version: unstable
Hardware: e2k Linux
: P3 normal
Assignee: Gleb F-Malinovskiy
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-23 15:53 MSK by Michael Shigorin
Modified: 2018-12-20 21:56 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Shigorin 2018-05-23 15:53:04 MSK
Спасибо за починку насчёт arepo, но теперь на e2k собирается так:

[builder@localhost apt-conf-sisyphus-7.2]$ cat data/sources.list.d/alt.list 
# ftp.altlinux.org (ALT Linux, Moscow)

# ALT Linux Sisyphus
#rpm [alt] ftp://ftp.altlinux.org/pub/distributions/ALTLinux Sisyphus/ classic
#rpm [alt] ftp://ftp.altlinux.org/pub/distributions/ALTLinux Sisyphus/noarch classic

#rpm [alt] http://ftp.altlinux.org/pub/distributions/ALTLinux Sisyphus/ classic
#rpm [alt] http://ftp.altlinux.org/pub/distributions/ALTLinux Sisyphus/noarch classic

#rpm [alt] rsync://ftp.altlinux.org/ALTLinux Sisyphus/ classic
#rpm [alt] rsync://ftp.altlinux.org/ALTLinux Sisyphus/noarch classic

Просьба вернуть архитектуру :)
Comment 1 Michael Shigorin 2018-05-23 16:09:54 MSK
Как вариант (проверено на e2k и e2kv4):

diff --git a/apt-conf/mksourcelists b/apt-conf/mksourcelists
index 0bffe18..9334372 100755
--- a/apt-conf/mksourcelists
+++ b/apt-conf/mksourcelists
@@ -10,6 +10,10 @@ repolist="$@"
 
 mkdir -p -- "$listdir"
 
+# handle earlier flavour too
+[ -n "$RPM_ARCH" ] || RPM_ARCH="$RPM_TARGET_ARCH"
+[ -n "$RPM_ARCH" ] || exit 1
+
 for m in "$mirrordir"/*.desktop; do
 
     mname="$(meta "$m" Name) ($(meta "$m" Comment))"
Comment 2 Michael Shigorin 2018-07-15 21:30:48 MSK
ping
Comment 3 Michael Shigorin 2018-07-24 17:05:17 MSK
Отправил NMU в задании #210741.
Comment 4 Michael Shigorin 2018-07-31 14:12:31 MSK
ping!
Comment 5 Repository Robot 2018-12-20 21:39:31 MSK
apt-conf-sisyphus-7.4-alt1 -> sisyphus:

Thu Dec 20 2018 Dmitry V. Levin <ldv@altlinux> 7.4-alt1
- Updated URL and license information.
- Fixed build with bash4.

Wed May 23 2018 Michael Shigorin <mike@altlinux> 7.3-alt1
- Consider RPM_TARGET_ARCH if RPM_ARCH is empty (closes: #34940).
Comment 6 Michael Shigorin 2018-12-20 21:52:11 MSK
RTT меньше полугода, уже ничего :-)
Спасибо!
Comment 7 Dmitry V. Levin 2018-12-20 21:56:27 MSK
Я так и не понял, зачем это изменение было нужно (у всех есть непустой $RPM_ARCH), но оно вроде бы ничего не ломает и ладно.