Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179062 - x11-drivers/ati-drivers - atieventsd init script b0rks the whole init system - file has windows line endings
Summary: x11-drivers/ati-drivers - atieventsd init script b0rks the whole init system ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Marien Zwart (RETIRED)
URL:
Whiteboard:
Keywords:
: 179117 179797 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-18 23:50 UTC by Elias Probst
Modified: 2007-05-25 20:01 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Probst 2007-05-18 23:50:56 UTC
The changes made on May, 18th causes some trouble:

  18 May 2007; Roy Marples <uberlord@gentoo.org> files/atieventsd.init:
  Fix the init script to work on baselayout-2

It looks like this file was saved using windows linebreaks.
When running "/etc/init.d/atieventsd foobar" the output looks like:

-su: /etc/init.d/atieventsd: /sbin/runscript^M: bad interpreter: File or command not found

After running a "dos2unix /etc/init.d/atieventsd" all worked as expected.

Please fix this ASAP, because it makes the whole init-system going mad.

A lot of initscripts stop working, because the generated dependency file (/var/lib/init.d/depcache) doesn't work because of the windows linebreaks.

Maybe portage should be more tolerant concerning this, maybe an autodetection of such linebreaks could be implemented to correct the depcache file automagically and display a warning about such hazardous files.

Regards, Elias P.

Reproducible: Always

Steps to Reproduce:
1. Sync the portage tree to have the changes made on May, 18th in it
2. (Re-)Install x11-drivers/ati-drivers
3. Reboot your system or try to restart /etc/init.d/atieventsd
Comment 1 Marien Zwart (RETIRED) gentoo-dev 2007-05-18 23:59:46 UTC
Eep. Should be fixed now, thanks for reporting. Please verify this is actually fixed on the rsync mirrors about an hour from now and close if it is actually fixed (I don't feel comfortable closing this since I'm pretty sure those line endings were correct on uberlord's box when he committed this, must have broken somewhere between testing and the cvs server...)
Comment 2 Elias Probst 2007-05-19 11:05:29 UTC
Seems to  be o.k. now.
Thx for fixing it that fast!
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-05-19 16:10:45 UTC
*** Bug 179117 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-05-25 20:01:43 UTC
*** Bug 179797 has been marked as a duplicate of this bug. ***