Bug 2045568 - hunspell-1.7.0-13 causes image compose failures due to missing ln
Summary: hunspell-1.7.0-13 causes image compose failures due to missing ln
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: hunspell
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2041930
TreeView+ depends on / blocked
 
Reported: 2022-01-25 17:26 UTC by Kevin Fenzi
Modified: 2022-01-31 09:28 UTC (History)
10 users (show)

Fixed In Version: hunspell-1.7.0-15.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-31 09:28:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Kevin Fenzi 2022-01-25 17:26:15 UTC
From todays failed rawhide compose: 

08:29:49,894 DDEBUG dnf: RPM transaction start.
08:30:27,647 INF dnf.rpm: /var/tmp/rpm-tmp.zeypl5: line 1: ln: command not found
warning: %post(hunspell-1.7.0-13.fc36.x86_64) scriptlet failed, exit status 127

08:30:27,649 ERR dnf.rpm: Error in POSTIN scriptlet in rpm package hunspell


So, I guess you need a 'Requires: coreutils' or to change that post to use lua. 

'Requires: coreutils' might cause a loop...

Comment 1 Miro Hrončok 2022-01-25 17:28:51 UTC
This was introduced in https://src.fedoraproject.org/rpms/hunspell/c/09babb9078789004d270e8b7369279cdad64fd73?branch=rawhide maybe?

Seems like the package either needs Requires(post): coreutils (that should not cause a loop, or at least I don't know why) or to write both the scriptlets in Lua, not just the %pretrans one.

Comment 2 Jens Petersen 2022-01-26 03:21:15 UTC
I just pushed a hunspell-1.7.0-14.fc36 build to koji rawhide
with the Requires(post) change. Hopefully that is enough to
unbreak the compose.

(I wasn't smart enough to work out how to do symlinks easily in LUA.;-)

Comment 3 Miro Hrončok 2022-01-26 08:11:35 UTC
https://rpm-software-management.github.io/rpm/manual/lua.html suggests it is posix.symlink('existing', 'link')

Comment 4 Jens Petersen 2022-01-26 15:25:04 UTC
Thanks, Miro! That was helpful

I opened https://src.fedoraproject.org/rpms/hunspell/pull-request/4

which also adds an existence check to %post than was missing.

Comment 5 Jens Petersen 2022-01-26 15:32:47 UTC
I am also curious if relative or absolute symlink makes any difference here.
Probably not much in this case?  To be conservative we went with absolute so far.


Note You need to log in before you can comment on or make changes to this bug.