FS#43248 - infinite loop in code to start slimboat

Attached to Project: AUR web interface
Opened by Peter Rounce (par29) - Saturday, 27 December 2014, 14:44 GMT
Last edited by Lukas Fleischer (lfleischer) - Saturday, 27 December 2014, 14:50 GMT
Task Type Bug Report
Category Backend
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 3.5.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi
, I downloaded the package slimboat 1.1.52-1. I got makepkg to complete after changing the mdsum in the slimboat.install file as described in the comments. I installed the package using pacman -U as described. When I ran slimboat, it went into a loop creating multiple instances of the slimboat startup script (/usr/bin/slimboat) the reason for this is as follows:-

1) /usr/bin/slimboat is just a link to /opt/slimboat/slimboat.sh
lrwxrwxrwx 1 root root 25 Dec 27 12:08 /usr/bin/slimboat -> /opt/slimboat/slimboat.sh

2) the end result of executing slimboat.sh is the execution of "/usr/bin/slimboat" i.e. a call back to /opt/slimboat/slimboat.sh, giving an infinite loop.


The slimboat.sh scripts uses dirname to extract an directory name to use to call the slimboat executable which resides in /opt/slimboat. However, dirname returns "/usr/bin" and not "/opt/slimboat". This is because although /opt/slimboat/slimboat.sh is executed the $0 parameter (used to acquire the directory name) is "/usr/bin/slimboat", presumably because a link is used.

Replacing the link /usr/bin/slimboat with an executable script:
#!/bin/sh
/opt/slimboat/slimboat.sh

cured the problem!


This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Saturday, 27 December 2014, 14:50 GMT
Reason for closing:  Not a bug
Additional comments about closing:  **This is the bug tracker for the AUR.**

Use this tracker to report bugs or make feature requests regarding the behaviour or implementation of the AUR.
Please read the Reporting Bug Guidelines before filing a new task.
http://wiki.archlinux.org/index.php/Repo rting_Bug_Guidelines

- Please report bugs related to Arch Linux official packages here: http://bugs.archlinux.org/index.php?proj ect=1
- Please report bugs for [community] packages here: http://bugs.archlinux.org/index.php?proj ect=5
- For any packages in the AUR contact the maintainer or leave a comment on the package's detail page.

Loading...