Bug 1146733 - ghc-doc-index bashism
Summary: ghc-doc-index bashism
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ghc
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-25 23:24 UTC by Michael Samuel
Modified: 2015-01-14 23:55 UTC (History)
3 users (show)

Fixed In Version: ghc-7.6.3-26.3.fc21
Clone Of:
Environment:
Last Closed: 2015-01-14 23:55:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael Samuel 2014-09-25 23:24:18 UTC
Description of problem:
The line:
  mv -f $PKGDIRCACHE{.new,}
in ghc-doc-index doesn't work when dash is /bin/sh (it only resolves to one argument).

This is easily fixed, either by just specifying it as two arguments:

  mv -f "${PKGDIRCACHE}" "${PKGDIRCACHE}.new"

or just putting #!/bin/bash in the top line.

Version-Release number of selected component (if applicable):

ghc-doc-index-7.6.3-18.3.fc20.x86_64

Steps to Reproduce:

yum install dash && cd /bin && ln -sf sh dash

Actual results:
Email from cron:
/etc/cron.hourly/ghc-doc-index:

mv: missing destination file operand after ‘/var/lib/ghc/pkg-dir.cache{.new,}’
Try 'mv --help' for more information.

Expected results:
No email from cron

Comment 1 Jens Petersen 2014-09-29 04:41:47 UTC
Thanks for reporting this!

I fixed it now in pkg git master.

It may take some time for this tiny change to reach F20 though,
I hope you can live with a local workaround in the meantime.

Comment 2 Fedora Update System 2014-11-19 01:20:36 UTC
ghc-7.6.3-26.1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/ghc-7.6.3-26.1.fc21

Comment 3 Fedora Update System 2014-12-25 08:30:23 UTC
ghc-7.6.3-26.3.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/ghc-7.6.3-26.3.fc21

Comment 4 Fedora Update System 2014-12-27 09:23:31 UTC
Package ghc-7.6.3-26.3.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ghc-7.6.3-26.3.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-17631/ghc-7.6.3-26.3.fc21
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-01-14 23:55:35 UTC
ghc-7.6.3-26.3.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


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