Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583694 - www-client/surfraw-2.2.9-r1 dysfunctional installation with gentoo-hardened amd64 gcc
Summary: www-client/surfraw-2.2.9-r1 dysfunctional installation with gentoo-hardened a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-21 17:16 UTC by ng0
Modified: 2016-05-24 12:05 UTC (History)
1 user (show)

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


Attachments
build.log (sr-build.log,54.07 KB, text/x-log)
2016-05-24 11:34 UTC, ng0
Details
emerge --info (emerge--info_20160524,5.08 KB, text/plain)
2016-05-24 11:37 UTC, ng0
Details
surfraw (surfraw,17.05 KB, application/x-shellscript)
2016-05-24 11:41 UTC, ng0
Details
surfraw (vanilla gcc system) (surfraw,17.05 KB, application/x-shellscript)
2016-05-24 11:47 UTC, ng0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ng0 2016-05-21 17:16:18 UTC
Installing surfraw on a gentoo-hardened, gcc, amd64 system leads to surfraw binary getting installed as textfile and not binary/executable.

Reproducible: Always

Steps to Reproduce:
1. emerge surfraw on vanilla gcc system
2. emerge surfraw on hardened gcc system
compare results through `sr archwiki arm`
Actual Results:  
hardened:
~ # sr archwiki
/usr/bin/surfraw: line 487: https://wiki.archlinux.org/: No such file or directory

vanilla:
(it just works and opens a textbrowser/default $BROWSER)
Comment 1 Pacho Ramos gentoo-dev 2016-05-24 10:02:16 UTC
Please provide emerge --info output and the full build.log

Also the contents of the text file if possible
Comment 2 ng0 2016-05-24 11:34:48 UTC
Created attachment 435200 [details]
build.log

build.log from /var/tmp/portage/www-client/surfraw-2.2.9-r1/temp$
Comment 3 ng0 2016-05-24 11:37:28 UTC
Created attachment 435202 [details]
emerge --info

emerge --info as of 2016-05-24
Comment 4 ng0 2016-05-24 11:41:11 UTC
Created attachment 435204 [details]
surfraw

content/file /usr/bin/surfraw
Comment 5 ng0 2016-05-24 11:47:13 UTC
Created attachment 435206 [details]
surfraw (vanilla gcc system)

this is the surfraw from a vanilla gcc system.
Comment 6 ng0 2016-05-24 11:50:29 UTC
Eh.... problem sits in front of the laptop:

I haven't used surfraw in a while and I was ignorant to the lack of a .surfraw.conf on the problematic machine.

Problem was solved with the creation of such a file and its content.
Comment 7 ng0 2016-05-24 11:51:33 UTC
User created problem, not caused by hardened.
Comment 8 ng0 2016-05-24 11:55:15 UTC
Though this should've just worked with the system defaults file, so there might be a problem.

vanilla:
niasterisk@greendragon ~ $ cat /etc/surfraw.conf
cat: /etc/surfraw.conf: No such file or directory

hardened:
ng0@khazad-dum:~$ cat /etc/surfraw.conf
cat: /etc/surfraw.conf: No such file or directory


>>> Installing (1 of 1) www-client/surfraw-2.2.9-r1::gentoo
 *
 * You can get a list of installed elvi by just typing 'surfraw' or

 *
 * You can try some searches, for example:
 * $ sr ask why is jeeves gay?
 * $ sr google -results=100 RMS, GNU, which is sinner, which is sin?
 * $ sr rhyme -method=perfect Julian
 *
 * The system configuration file is /etc/surfraw.conf
 *
 * Users can specify preferences in '~/.surfraw.conf'  e.g.
 * SURFRAW_graphical_browser=mozilla
 * SURFRAW_text_browser=w3m
 * SURFRAW_graphical=no
 *
 * surfraw works with any graphical and/or text WWW browser
 *


The post-install message should be fixed then if no file is provided by gentoo anymore.