Bug 32007 - execution of %post scriptlet failed in mkimage
Summary: execution of %post scriptlet failed in mkimage
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: java-1.8.0-openjdk (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-21 11:24 MSK by enp
Modified: 2016-04-22 21:17 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 enp 2016-04-21 11:24:17 MSK
Все java-пакеты прекрасно устанавливаются в hasher, но не могут установиться в mkimage:

$ hsh --initroot-only
$ hsh-install java-1.8.0-openjdk-headless
...
<13>Apr 21 08:19:03 rpmi: java-1.8.0-openjdk-headless-0:1.8.0.71-alt3_1.b15jpp8 1456432297 installed

$ cat Makefile 
CONFIGDIR = /usr/share/mkimage
include $(CONFIGDIR)/config.mk
IMAGE_PACKAGES = java-1.8.0-openjdk-headless
MKI_PACK_RESULTS = tar:java.tar
include $(CONFIGDIR)/targets.mk
all: build-image pack-image

$ make
...
<13>Apr 21 08:21:21 rpmi: java-1.8.0-openjdk-headless-0:1.8.0.71-alt3_1.b15jpp8 1456432297 installed
error: execution of %post scriptlet from java-1.8.0-openjdk-headless-1.8.0.71-alt3_1.b15jpp8 failed, exit status 127
hsh-install: Packages installation failed.
make: *** [build-image] Ошибка 1
Comment 1 viy 2016-04-21 11:30:42 MSK
кстати, а как проверить, что %post вызывается внутри hasher?
там имеет смысл некоторые вещи просто выключать.
Comment 2 enp 2016-04-21 14:16:13 MSK
(В ответ на комментарий №1)
> кстати, а как проверить, что %post вызывается внутри hasher?

$ hsh-shell --rooter

# env | grep -i fake
LD_PRELOAD=libfakeroot.so
LD_LIBRARY_PATH=/usr/lib64/libfakeroot:/usr/lib64/libfakeroot:/usr/lib32/libfakeroot
FAKEROOTKEY=747228896
FAKED_MODE=unknown-is-root

?
Comment 3 viy 2016-04-21 23:12:36 MSK
Спасибо, сразу с новой версией выложу, сегодня уже не успел.
Comment 4 viy 2016-04-22 21:17:16 MSK
java-1.8.0-openjdk-1.8.0.71-alt4_1.b15jpp8.src.rpm