Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178430 - net-misc/vnc-4.1.2-r3 ~x86-fbsd ebuild & keyword request
Summary: net-misc/vnc-4.1.2-r3 ~x86-fbsd ebuild & keyword request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High enhancement (vote)
Assignee: Raúl Porcel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-13 20:50 UTC by Joe Peterson (RETIRED)
Modified: 2010-01-24 17:38 UTC (History)
2 users (show)

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


Attachments
vnc-4.1.2-r3.ebuild (this is a diff) (vnc-4.1.2-r3.ebuild.diff,1.04 KB, patch)
2007-05-13 20:51 UTC, Joe Peterson (RETIRED)
Details | Diff
files/vnc-4.1.2-freebsd.patch (vnc-4.1.2-freebsd.patch,807 bytes, patch)
2007-05-14 04:26 UTC, Joe Peterson (RETIRED)
Details | Diff
vnc-4.1.2-r3.ebuild (diff) (vnc-4.1.2-r3.ebuild.diff,1.15 KB, patch)
2007-05-14 04:28 UTC, Joe Peterson (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Peterson (RETIRED) gentoo-dev 2007-05-13 20:50:15 UTC
1) Changed "cp -a" to "cp -RPp" for bsd compat (needed for "server" USE flag)
2) Tested both vncviewer and vncserver

Requesting keyword ~x86-fbsd with this new ebuild (to be attached).


Reproducible: Always
Comment 1 Joe Peterson (RETIRED) gentoo-dev 2007-05-13 20:51:01 UTC
Created attachment 119148 [details, diff]
vnc-4.1.2-r3.ebuild  (this is a diff)
Comment 2 Joe Peterson (RETIRED) gentoo-dev 2007-05-14 04:26:51 UTC
Created attachment 119171 [details, diff]
files/vnc-4.1.2-freebsd.patch

Patch to create xauth cookie on FreeBDS without the need for "mcookie" (only available in Linux).
Comment 3 Joe Peterson (RETIRED) gentoo-dev 2007-05-14 04:28:34 UTC
Created attachment 119173 [details, diff]
vnc-4.1.2-r3.ebuild (diff)

Incorporate patch that allows creation of xauth cookies on FreeBSD
Comment 4 Joe Peterson (RETIRED) gentoo-dev 2007-06-08 18:30:13 UTC
Adding maintainer to CC
Comment 5 Raúl Porcel (RETIRED) gentoo-dev 2007-06-09 19:06:32 UTC
Patch and ebuild added, thanks.

Keyword it :)
Comment 6 Joe Peterson (RETIRED) gentoo-dev 2007-06-09 19:49:41 UTC
Keyworded (vnc-4.1.2-r3).  Thanks!
Comment 7 SpanKY gentoo-dev 2007-06-11 06:39:44 UTC
wouldnt it be cleaner to try and use `mcookie` and if that fails, fall back to doing rand ?  that way there would be no direct dependency on FreeBSD
Comment 8 Joe Peterson (RETIRED) gentoo-dev 2007-06-11 15:45:18 UTC
Vapier, that sounds like it would work fine and yes, potentially then not be OS-based.  The only downside I can think of is that by doing this, the Linux archs would either use mcookie or the other method, depending on if mcookie were installed.  Maybe this doesn't matter, but there might be a good reason to have predictable cookie generation on a given arch.  If so, it would probably be good to have vnc RDEPEND on the package containing mcookie...
Comment 9 SpanKY gentoo-dev 2007-06-11 20:17:00 UTC
which oddly enough is the util-linux package ...
Comment 10 Joe Peterson (RETIRED) gentoo-dev 2007-06-11 23:01:59 UTC
Are you suggesting that we leave it as-is but that RDEPEND depend on util-linux for linux only?  Or do you feel that this should be done at runtime by detecting a failure with mcookie?

I'm re-assinging to Raúl for now, since he did the patch checkin and may want to weigh in on this.
Comment 11 SpanKY gentoo-dev 2007-06-11 23:16:16 UTC
the runtime code should see if mcookie works and if it does, use it ... otherwise it should generate its own

considering the output is simply a md5 hash, there might be a better way than the current rand() ... maybe grab a few bytes from /dev/random and run md5 on that

i dont think we need a direct depend on util-linux in RDEPEND since that package is required in the system target for all Linux profiles
Comment 12 Joe Peterson (RETIRED) gentoo-dev 2008-11-10 14:43:41 UTC
Raúl,

Just looking back at this bug; I think it is fixed, unless you had input (see comments 8-11).  In other words, you can probably close this out unless you want to revisit.

-Thanks, Joe
Comment 13 Raúl Porcel (RETIRED) gentoo-dev 2010-01-24 17:38:23 UTC
net-misc/vnc is going away