Summary: | www-client/netsurf (new package) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Brandon Captain <caibbor> |
Component: | New packages | Assignee: | Default Assignee for New Packages <maintainer-wanted> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | chithanh, xmw |
Priority: | High | Keywords: | EBUILD |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://www.netsurf-browser.org/ | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
net-libs/hubbub
net-libs/libcss net-libs/libnsbmp net-libs/libnsfb net-libs/libnsgif net-libs/libparserutils net-libs/libsvgtiny net-libs/libwapcaplet www-client/netsurf www-client/netsurf/files/fix-font-path.patch www-client/netsurf/files/netsurf patch to ebuild fixing freetype support for framebuffer build |
Description
Brandon Captain
2010-12-01 19:54:32 UTC
Created attachment 261255 [details]
net-libs/hubbub
hubbub dep
Created attachment 261257 [details]
net-libs/libcss
libcss dep
Created attachment 261258 [details]
net-libs/libnsbmp
libnsbmp dep
Created attachment 261259 [details]
net-libs/libnsfb
fb dep
Created attachment 261260 [details]
net-libs/libnsgif
gif dep
Created attachment 261261 [details]
net-libs/libparserutils
Created attachment 261263 [details]
net-libs/libsvgtiny
Created attachment 261265 [details]
net-libs/libwapcaplet
Created attachment 261266 [details]
www-client/netsurf
Created attachment 261267 [details, diff]
www-client/netsurf/files/fix-font-path.patch
A patch that changes font path that is used in fb mode. Netsurf will crush without it.
Created attachment 261268 [details]
www-client/netsurf/files/netsurf
NetSurf should be executed inside of it's directory. So we should cd there at first.
It was a nightmare. :) And in the end it doesn't work in fb mode outside of X... :D It screams that "Failed to initialize SDL Video: No available video device", meanwhile it should use "linux" not "sdl" as an fb frontend. I searched a lot and didn't get why. There is an NETSURF_FB_FRONTEND option that could be overrided in Makefile.config for choosing appropriate fb device (valid values are: linux, sdl, vnc, able) at compile time. But it's already set to "linux" and overriding it to "linux" does nothing, off course. :) OK, what's about USE flags: freetype - it is related only to FB mode. NetSurf uses internal font system by default. And it has a single built in monospaced face with CP467 encoding. So, if you are interested in something more (i repeat, in FB mode which doesn't work outside of X) - you should turn that USE on. pdf - it is related only to X mode. It is used for PDF export and printing. svgtiny - it breaks NetSurf's SVG rendering at the moment. But someday... :) Do like this to run netsurf: netsurf netsurf gentoo.org or netsurf -fb netsurf -fb gentoo.org Regards, Incinerator I'm taking a look at it and commit it to http://git.overlays.gentoo.org/gitweb/?p=dev/xmw.git;a=summary (it should be in layman soon) I'll commit this to the main tree as soon as it works fine. I've finished my work, please take a look to the overlay. Michael, I had a play with the ebuild (and dependencies) in your repositories. netsurf with gtk useflag works great. However, with the fbcon use flag it just exits with 1 exit status. I was under the impression that the netsurf framebuffer build is a wrapper straight into X (not the linux framebuffer) - is this correct? Any thoughts on why it isn't working for me? strace proved inscrutable to me, and gdb reported nothing untoward happening. Many thanks for the work. OK, scratch the nsfb complaint, it's working fine. I didn't realise, but running the X surface of netsurf just needs 'nsfb -f x', and then it works. nsfb suprised me by being quite slow, but the packaging is obviously not at fault there. Michael, your ebuild had a little typo that meant freetype wasn't enabled for the framebuffer build. Also, for freetype to work, a font path needs to be passed to the compile. I passed the dejavu path; hopefully that's generic enough to be useful. I'll attach a patch to the latest ebuild in your repository making these two changes. Created attachment 283175 [details, diff]
patch to ebuild fixing freetype support for framebuffer build
I'll look into updating the ebuilds for netsurf-2.9 and then adding it to portage. xmw: feel free to beat me to it i'm currently updating/commiting this into the tree. (In reply to comment #18) > Created attachment 283175 [details, diff] [details, diff] > patch to ebuild fixing freetype support for framebuffer build Thanks for the patch. I sould stick with the USE flags freetype here, because it selects the specific implementation (media-libs/freetype) over the internal implementation. In tree ;-) |