Bug 440650
| Summary: | unopkg runs 'mktemp --tmpdir' which fails | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Alex Lancaster <alex> |
| Component: | openoffice.org | Assignee: | Caolan McNamara <caolanm> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 8 | CC: | vpvainio |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | 2.3.0-6.14.fc8 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2008-04-22 22:41:30 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 441027 | ||
|
Description
Alex Lancaster
2008-04-04 12:25:57 UTC
Thanks for reporting this, I'm also CCing Caolan.
I don't think the mktemps in oo.o-voikko are to blame here, as they do
"TMP_HOME="$(mktemp -t -d %{name}.XXXXXX)" || exit 1", so shouldn't the whole
RPM transaction fail if that mktemp fails?
I also added some echo statements to the RPM scripts to get an idea on what's
happening.
When installing, I get this:
Running Transaction
leaving pre
Installing: openoffice.org-voikko ######################### [1/1]
post
will run mktemp -t -d openoffice.org-voikko.XXXXXX
/tmp/openoffice.org-voikko.Lw6423
/bin/mktemp: invalid option -- -
Usage: mktemp [-V] | [-dqtu] [-p prefix] [template]
leaving post
When removing, I get this:
Running Transaction
preun
will run mktemp -t -d openoffice.org-voikko.XXXXXX
/tmp/openoffice.org-voikko.wR6599
/bin/mktemp: invalid option -- -
Usage: mktemp [-V] | [-dqtu] [-p prefix] [template]
leaving preun
Erasing : openoffice.org-voikko ######################### [1/1]
I think this also shows that the mktemp call in oo.o-voikko succeeds, as I can
print the path to the temp dir.
I guess the bug may be in openoffice.org itself, Caolan, could you take a look
at this as well?
I think I found the cause. F-8 and F-9 have different versions of the coreutils package and mktemp's command line option handling has changed between those versions. The script /usr/lib/openoffice.org/program/unopkg does "/bin/mktemp -d --tmpdir unoinstall.XXXXXX" and --tmpdir works on F-9 but not on F-8. I guess -t should be used in F-8. I'll try to reassign this bug to Caolan, let's see if I have enough bugzilla skills for it ;) I'm hit with the same issue on F-8 when packaging the extension ooolatex: bug #441027 That would be bug 441027 ah!, good thing I did some test versions at least. Builds in progress openoffice.org-2.3.0-6.13.fc8 has been submitted as an update for Fedora 8 openoffice.org-2.3.0-6.14.fc8 has been submitted as an update for Fedora 8 openoffice.org-2.3.0-6.14.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report. Had verified this problem could not be reproduced on F9. |