Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 888115 - dev-lang/tcc: incorrect shebang documented in man file
Summary: dev-lang/tcc: incorrect shebang documented in man file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Yixun Lan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-24 01:10 UTC by Jeff Gazso
Modified: 2023-01-04 00:28 UTC (History)
2 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 Jeff Gazso 2022-12-24 01:10:59 UTC
One of the lesser-known features of dev-lang/tcc is its ability to directly execute C as if the language were interpreted. The man file lists the shabang as:

#!/usr/local/bin/tcc -run

This shabang is in the official documentation upstream. Likely, a lot of Linux distros do (or did) install tcc to that location. But dev-lang/tcc presently installs to /usr/bin/tcc. So, Gentoo's version of the man file should be patched to read:

#!/usr/bin/tcc -run

Or possibly:

#!/usr/bin/env -S tcc -run
Comment 1 Larry the Git Cow gentoo-dev 2023-01-04 00:28:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b2e36e1d2ca03a062d0fa4983a4168a691d422e

commit 1b2e36e1d2ca03a062d0fa4983a4168a691d422e
Author:     Yixun Lan <dlan@gentoo.org>
AuthorDate: 2023-01-04 00:24:46 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2023-01-04 00:27:49 +0000

    dev-lang/tcc: fix shabang in man documentation
    
    Closes: https://bugs.gentoo.org/888115
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 dev-lang/tcc/tcc-0.9.27_p20211022.ebuild | 5 ++++-
 dev-lang/tcc/tcc-9999.ebuild             | 7 +++++--
 2 files changed, 9 insertions(+), 3 deletions(-)