[devel] I: package build errors uncovered by bash4

Dmitry V. Levin ldv на altlinux.org
Пт Дек 21 01:27:17 MSK 2018


Hi,

Переключение bash на bash4 в Сизифе выявило несколько типовых
тривиальных ошибок сборки пакетов, которые на данный момент ещё
не исправлены:

# source с файлом, которого нет в $PATH:

OpenAD-20140315-alt3.1
	+ export DESTDIR=/usr/src/tmp/OpenAD-buildroot
	+ DESTDIR=/usr/src/tmp/OpenAD-buildroot
	+ export TOPDIR=/usr/src/RPM/BUILD/OpenAD-20140315
	+ TOPDIR=/usr/src/RPM/BUILD/OpenAD-20140315
	+ install -d /usr/src/tmp/OpenAD-buildroot/usr/lib64/whirl2f
	+ source ./setenv.sh
	++ ./tools/setenv/setenv.py --shell=sh
	++ '[' 0 -ne 0 ']'
	++ source setenv.tmp~
	./setenv.sh: line 12: source: setenv.tmp~: file not found

python-module-hachoir-core-1:1.3.4-alt5
	return stat
	def validateStat(self, stat):
	+ exit 0
	Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.62697
	+ umask 022
	+ /bin/mkdir -p /usr/src/RPM/BUILD
	+ cd /usr/src/RPM/BUILD
	+ cd python-module-hachoir-core-1.3.4
	+ . setupenv.sh
	/usr/src/tmp/rpm-tmp.62697: line 122: .: setupenv.sh: file not found

# ошибка в дочернем шелле, которую bash4 не игнорирует:

clip-1.2.0cvs-alt3.qa5
	+ cd doc
	/usr/src/tmp/rpm-tmp.20832: line 102: cd: doc: No such file or directory

fonts-otf-asana-math-000.955-alt1
	+ cd /usr/src/tmp/fonts-otf-asana-math-buildroot/usr/share/fonts/Asana-Math
	/usr/src/tmp/rpm-tmp.28923: line 103: cd:
	/usr/src/tmp/fonts-otf-asana-math-buildroot/usr/share/fonts/Asana-Math: No such file
	or directory

golang-tools-0-alt6.git24acc66e
	mkdir -p $WORK/b001/exe/
	cd .
	/usr/lib64/golang/pkg/tool/linux_amd64/link -o
	$WORK/b001/exe/a.out -importcfg $WORK/b001/importcfg.link -buildmode=exe
	-buildid=2qnclbH9N-Z1XckXnANV/pACa9yt0N-K5Q97Q3zmP/YePgUL5BqZG-Mmpn54ZD/2qnclbH9N-Z1XckXnANV
	-extld=gcc $WORK/b001/_pkg_.a
	/usr/lib64/golang/pkg/tool/linux_amd64/buildid -w $WORK/b001/exe/a.out # internal
	mkdir -p /usr/src/RPM/BUILD/golang-tools-0/.build/bin/
	mv $WORK/b001/exe/a.out /usr/src/RPM/BUILD/golang-tools-0/.build/bin/stringer
	rm -r $WORK/b001/
	tip.go:28:2: cannot find package "golang.org/x/crypto/acme/autocert" in any of:
	/usr/lib64/golang/src/golang.org/x/crypto/acme/autocert (from $GOROOT)
	/usr/src/RPM/BUILD/golang-tools-0/.build/src/golang.org/x/crypto/acme/autocert (from
	$GOPATH)

kde4utils-15.12.1-alt3
	+ '[' superkaramba == superkaramba ']'
	+ '[' -d superkaramba ']'
	+ '[' -d superkaramba/cmake-modules ']'
	+ '[' -d superkaramba/cmake/modules ']'
	+ read d
	+ '[' sweeper == sweeper ']'
	+ '[' -d sweeper ']'
	+ '[' -d sweeper/cmake-modules ']'
	+ '[' -d sweeper/cmake/modules ']'
	+ read d

libqwt-1:5.2.3-alt1
	make: Entering directory '/usr/src/RPM/BUILD/libqwt-5.2.3/examples'
	make: *** No rule to make target 'distclean'.  Stop.
	make: Leaving directory '/usr/src/RPM/BUILD/libqwt-5.2.3/examples'

lout-3.40-alt2
	lout file "mydefs" (from "mybook" line 28, from "all" line 12):
	9,6: fatal error: exiting now (error in definitions)

# popd с параметрами:

handbrake-1.1.2-alt3
	&& rm -f $file && /usr/bin/msgfmt -o $file
	/usr/src/RPM/BUILD/HandBrake-1.1.2/build/../gtk/po/zh_CN.po
	make[3]: Leaving directory '/usr/src/RPM/BUILD/HandBrake-1.1.2/build/gtk/po'
	make[3]: Entering directory '/usr/src/RPM/BUILD/HandBrake-1.1.2/build/gtk'
	make[3]: Leaving directory '/usr/src/RPM/BUILD/HandBrake-1.1.2/build/gtk'
	make[2]: Leaving directory '/usr/src/RPM/BUILD/HandBrake-1.1.2/build/gtk'
	make[1]: Leaving directory '/usr/src/RPM/BUILD/HandBrake-1.1.2/build/gtk'
	make: Leaving directory '/usr/src/RPM/BUILD/HandBrake-1.1.2/build'
	+ popd build
	/usr/src/tmp/rpm-tmp.1169: line 139: popd: build: invalid argument
	popd: usage: popd [-n] [+N | -N]

# pushd с лишними параметрами:

python3-module-pywikibot-3.0.20180710-alt3
	+ cd pywikibot-3.0.20180710
	+ /bin/chmod -c -Rf u+rwX,go-w .
	+ exit 0
	Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.17604
	+ umask 022
	+ /bin/mkdir -p /usr/src/RPM/BUILD
	+ cd /usr/src/RPM/BUILD
	+ cd pywikibot-3.0.20180710
	+ pushd core python3-module-pywikibot.spec
	/usr/src/tmp/rpm-tmp.17604: line 122: pushd: too many arguments


-- 
ldv
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : signature.asc
Тип     : application/pgp-signature
Размер  : 801 байтов
Описание: отсутствует
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20181221/18454eec/attachment.bin>


Подробная информация о списке рассылки Devel