Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 425744 - sys-freebsd/freebsd-ubin: should depend sys-apps/nawk
Summary: sys-freebsd/freebsd-ubin: should depend sys-apps/nawk
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on: 419555 455786
Blocks: 418473
  Show dependency tree
 
Reported: 2012-07-10 21:52 UTC by Christoph Junghans (RETIRED)
Modified: 2015-03-08 00:12 UTC (History)
0 users

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 Christoph Junghans (RETIRED) gentoo-dev 2012-07-10 21:52:03 UTC
nawk is in the tree, so freebsd-ubin should depend on it and add "awk" to REMOVE_SUBDIRS.
Comment 1 Alexis Ballier gentoo-dev 2012-08-07 02:19:51 UTC
why?
Comment 2 Christoph Junghans (RETIRED) gentoo-dev 2012-08-07 03:49:54 UTC
(In reply to comment #1)
> why?
nawk is the same as the awk inside freebsd-ubin. So this avoids duplication.
Comment 3 Alexis Ballier gentoo-dev 2012-08-07 15:36:25 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > why?
> nawk is the same as the awk inside freebsd-ubin. So this avoids duplication.

is it taken from freebsd or freebsd took it ?
Comment 4 Christoph Junghans (RETIRED) gentoo-dev 2012-08-07 16:05:57 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > why?
> > nawk is the same as the awk inside freebsd-ubin. So this avoids duplication.
> 
> is it taken from freebsd or freebsd took it ?
I am not good at history, but freebsd's "one-true-awk" is the 2005 version of Brian Kernighan's awk, which is normally called nawk.

http://www.freebsd.org/cgi/cvsweb.cgi/src/contrib/one-true-awk/FREEBSD-upgrade?rev=1.9&content-type=text/x-cvsweb-markup
Comment 5 Alexis Ballier gentoo-dev 2012-08-07 20:02:47 UTC
yep it seems its the same, though its not the 2005 version here:
awk --version
awk version 20110810 (FreeBSD)


however, it seems that if gawk is installed before nawk, awk will be gawk, which is a no-go from freebsd POV
Comment 6 Christoph Junghans (RETIRED) gentoo-dev 2012-08-07 22:05:38 UTC
(In reply to comment #5)
> yep it seems its the same, though its not the 2005 version here:
> awk --version
> awk version 20110810 (FreeBSD)
Like I said, I am not good at history, the nawk version in the tree is 20110810 as well.

> however, it seems that if gawk is installed before nawk, awk will be gawk,
> which is a no-go from freebsd POV
If sys-freebsd/freebsd-ubin would depend on nawk directly and not virtual/awk, so the nawk ebuild would call "eselect awk" first. Or we could change the order depending on the userland in virtual/awk.

fbsd profile also sets: alias awk=gawk
Comment 7 Alexis Ballier gentoo-dev 2012-08-07 23:57:02 UTC
(In reply to comment #6)
> > however, it seems that if gawk is installed before nawk, awk will be gawk,
> > which is a no-go from freebsd POV
> If sys-freebsd/freebsd-ubin would depend on nawk directly and not
> virtual/awk, so the nawk ebuild would call "eselect awk" first. Or we could
> change the order depending on the userland in virtual/awk.

this doesnt ensure it, heck, packages.build lists gawk before fbsd-ubin, so its likely that new stages will have gawk set.
anyway, i dont think it is a good idea to rely on a merge order which we have no control over (remember stages having python3 as default interpreter ? :) )

i would prefer a way to specify 'i want nawk but do not touch it if _user_ changed it' instead of the current behavior which is 'give nawk if nothing else provides it'

> fbsd profile also sets: alias awk=gawk

this is only for ebuilds
Comment 8 Christoph Junghans (RETIRED) gentoo-dev 2012-08-08 00:33:20 UTC
(In reply to comment #7)
> (In reply to comment #6)
> i would prefer a way to specify 'i want nawk but do not touch it if _user_
> changed it' instead of the current behavior which is 'give nawk if nothing
> else provides it'
Currently one can not distinguish if an ebuild or a user has called "eselect awk" and I also don't see a clean way to do it. "eselect awk --nouser" is a bit hacky. How was the problem solved in the case of python?

emacs has a livecd use flag, which calls "eselect emacs" instead of the normal "eselect emacs --ifunset", would something like this help?
Comment 9 Richard Yao (RETIRED) gentoo-dev 2012-08-08 00:48:59 UTC
We could resolve this by modifying the gawk ebuild to avoid making a symlink when userland_BSD is set and also modifying the nawk ebuild to make a symlink when userland_BSD is set and none exists.
Comment 10 Alexis Ballier gentoo-dev 2012-08-08 02:30:28 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #6)
> > i would prefer a way to specify 'i want nawk but do not touch it if _user_
> > changed it' instead of the current behavior which is 'give nawk if nothing
> > else provides it'
> Currently one can not distinguish if an ebuild or a user has called "eselect
> awk" and I also don't see a clean way to do it. "eselect awk --nouser" is a
> bit hacky. How was the problem solved in the case of python?

wait sufficiently long so that python3 being default isnt an issue I guess, as the current amd64 autobuild definitely has python 3.2.3 as default interpreter.

try a 'ALL python stage' search in bugzilla

> emacs has a livecd use flag, which calls "eselect emacs" instead of the
> normal "eselect emacs --ifunset", would something like this help?

sounds even more hacky and ugly than what you proposed above :)
Comment 11 Alexis Ballier gentoo-dev 2012-08-08 14:49:14 UTC
thinking more about it, putting nawk before gawk in packages.build might do the right thing, got to try that.
Comment 12 Alexis Ballier gentoo-dev 2012-08-08 14:51:10 UTC
and anyway, if you want this to have a chance to happen, you should file a keywordreq bug :)
Comment 13 Christoph Junghans (RETIRED) gentoo-dev 2013-05-19 19:27:16 UTC
(In reply to comment #12)
> and anyway, if you want this to have a chance to happen, you should file a
> keywordreq bug :)
Keywording was done.

How should we process here?
Comment 14 Christoph Junghans (RETIRED) gentoo-dev 2013-12-24 00:49:42 UTC
ping @ bsd