Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80008 - x11-themes/commonbox-styles needs bsetbg
Summary: x11-themes/commonbox-styles needs bsetbg
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-29 16:17 UTC by Alexandru Toma
Modified: 2013-10-19 15:36 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 Alexandru Toma 2005-01-29 16:17:02 UTC
A lot of the styles from commonbox-styles (like Fieron2 for example, which I use) use bsetbg which is only provided by commonbox-utils

Replacing bsetbg with bsetroot (provided by fluxbox) works seems they seem to have the same syntax and function.

As I see it you have several options:
1) Depend on commonbox-utils
2) Replace bsetbg with bsetroot (However, I don't know if bsetroot is also provided by other *box wms besides Fluxbox)
3) Something else

Of course, since I'm using Fluxbox, I don't like option number 1 that much since commonbox-utils depends on xv (Why!?)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Alexandru Toma 2005-01-29 16:18:09 UTC
> Replacing bsetbg with bsetroot (provided by fluxbox) works seems they seem
Replacing bsetbg with bsetroot (provided by fluxbox) works _since_ they seem
Comment 2 Alexandru Toma 2006-04-14 14:21:10 UTC
OK, here's a new analysis of the problem.

The styles in commonbox-styles try to run either bsetbg or bsetroot:
cloud ~ # grep bset /usr/share/commonbox/styles/*
/usr/share/commonbox/styles/Aqualos:rootCommand:        bsetbg  -solid "#6684b6"
/usr/share/commonbox/styles/Aqualos:!rootCommand: bsetbg -f ~/.openbox/backgrounds/aquablue.jpg
/usr/share/commonbox/styles/Artwiz:rootCommand: bsetroot -mod 4 4 -bg rgb:10/18/20 -fg rgb:30/38/40
/usr/share/commonbox/styles/BBS:rootCommand:    bsetbg -solid '#5d718e'
/usr/share/commonbox/styles/Blue:rootCommand:     bsetroot -gradient flatverticalgradient  -from lightblue -to blue
/usr/share/commonbox/styles/BlueNight:rootCommand:  bsetroot -solid rgb:6A/9A/AF
/usr/share/commonbox/styles/Bluebox:rootCommand:        bsetbg -solid "#414b57"
/usr/share/commonbox/styles/Carbondioxide:rootCommand: bsetroot -gradient flatverticalgradient -from black -to white
/usr/share/commonbox/styles/Clean:rootCommand:  bsetroot -solid rgb:9A/9A/90
/usr/share/commonbox/styles/CleanColor:rootCommand:     bsetroot -mod 4 4 -bg rgb:9A/9A/9A -fg rgb:30/60/90
/usr/share/commonbox/styles/Cthulhain:rootCommand:                             bsetbg -solid "#3a404b"
/usr/share/commonbox/styles/Deep:rootCommand:   bsetbg -mod 2 2 -bg rgb:22/35/26 -fg rgb:3f/58/81
/usr/share/commonbox/styles/Fieron:rootCommand: bsetbg -solid "#474e56"
/usr/share/commonbox/styles/Fieron2:rootCommand: bsetbg -solid "#272a2f"
/usr/share/commonbox/styles/Flux:rootCommand:                   bsetroot -solid rgb:4/4/38
/usr/share/commonbox/styles/Frobozz:#rootCommand:       bsetbg -solid "#484848"
/usr/share/commonbox/styles/Frobozz:rootCommand: bsetbg -gradient flatinterlaced -bg "#485561" -fg "#"484848
/usr/share/commonbox/styles/Frobust:rootCommand:        bsetroot -mod 4 4 -bg "#4c4c4c" -fg "#3c3c3c"
/usr/share/commonbox/styles/LemonSpace:rootCommand: bsetroot -solid rgb:db/bc/83
/usr/share/commonbox/styles/Makro:rootCommand:  bsetroot -solid rgb:9A/9A/90
/usr/share/commonbox/styles/MbdTeX:rootCommand: bsetbg -solid "#5a6975"
/usr/share/commonbox/styles/Mbdtex:rootCommand: bsetbg -solid "#5a6975"
/usr/share/commonbox/styles/MerleyKay:rootCommand: bsetroot -mod 5 5 -fg rgb:62/70/85 -bg rgb:52/60/75
/usr/share/commonbox/styles/Miklos:! rootCommand:        bsetroot -gradient interlaced -from rgb:5b/67/5b -to rgb:6f/78/6b
/usr/share/commonbox/styles/Miklos:rootCommand: bsetroot -gradient interlaced -from rgb:47/50/47 -to rgb:5b/67/5b
/usr/share/commonbox/styles/Miklos:! rootCommand:       bsetroot -gradient interlaced -from rgb:56/5d/53 -to rgb:5b/67/5b
/usr/share/commonbox/styles/Minimal:rootCommand:                    bsetroot -solid SlateGrey
/usr/share/commonbox/styles/Monochrome:rootCommand: bsetbg -gradient gradientdiagonal -to "#b5b5bf" -from "#98a8d6"
/usr/share/commonbox/styles/Monochrome:!rootCommand: bsetbg -f ~/.blackbox/backgrounds/scene.png
/usr/share/commonbox/styles/Nyz:rootCommand:                    bsetroot -solid grey20
/usr/share/commonbox/styles/Nyzclone:rootCommand:       bsetbg -solid '#385070'
/usr/share/commonbox/styles/OB20:rootCommand:   bsetbg -solid "#333333"
/usr/share/commonbox/styles/Operation:rootCommand:                      bsetroot -gradient flatcrossdiagonalgradient -from rgb:4/6/8 -to rgb:3/48/6
/usr/share/commonbox/styles/Outcomes:rootCommand:                       bsetroot -mod 4 4 -fg rgb:54/6/6 -bg grey20
/usr/share/commonbox/styles/Paper:rootCommand:                      bsetbg -gradient flatinterlacedhorizontalgradient -from rgb:35/34/33 -to rgb:57/56/55
/usr/share/commonbox/styles/Purplehaaze:rootCommand:    bsetbg -solid "#8187a1"
/usr/share/commonbox/styles/Qnx-photon:rootCommand:  bsetbg -solid white
/usr/share/commonbox/styles/Rampage:rootCommand:        bsetroot -mod 16 8 -bg rgb:0/8/8 -fg rgb:0/9/9
/usr/share/commonbox/styles/Rancor:rootCommand:                 bsetroot -gradient interlacedflatcrossdiagonalgradient -from rgb:4c/04/03 -to black
/usr/share/commonbox/styles/Results:rootCommand:                        bsetroot -mod 4 4 -fg rgb:6/6/5c -bg grey20
/usr/share/commonbox/styles/Shade:rootCommand:                  bsetroot -solid rgb:4/4/4
/usr/share/commonbox/styles/Spiff:rootCommand:  bsetroot -mod 2 2 -fg rgb:48/50/68 -bg rgb:50/58/70
/usr/share/commonbox/styles/Steelblue:!rootCommand:     bsetbg -solid "#3c5979"
/usr/share/commonbox/styles/Steelblue:rootCommand:      bsetbg -mod 4 4 -to "#44668a" -from "#7788bb"
/usr/share/commonbox/styles/Steelblue2:rootCommand:     bsetbg -solid "#6e7a8a"
/usr/share/commonbox/styles/Steelblue3:rootCommand:     bsetbg -solid "#6e7a8a"
/usr/share/commonbox/styles/Superb1:rootCommand:        bsetbg  -solid "#525651"
/usr/share/commonbox/styles/Superb2:rootCommand:        bsetbg -gradient gradientdiagonal -to "#c7c7c7" -from "#efefef"
/usr/share/commonbox/styles/TDF:rootCommand:                    bsetroot -gradient flatcrossdiagonalgradient -from black -to rgb:af/89/7c
/usr/share/commonbox/styles/The_Orange:rootCommand:     bsetroot -solid rgb:50/50/50
/usr/share/commonbox/styles/Trisb:rootCommand:  bsetbg -solid "#4b4b4b"
/usr/share/commonbox/styles/Twice:rootCommand:                  bsetroot -solid grey20
/usr/share/commonbox/styles/Warp-XP:rootCommand: bsetbg -solid "#4468b2"
/usr/share/commonbox/styles/XP: ! rootCommand:  bsetbg -f /home/miklos/.openbox/backgrounds/xp.jpg
/usr/share/commonbox/styles/XP:rootCommand: bsetbg -solid "#587cdc"

I run Fluxbox, which provides fbsetbg and fbsetroot
fbsetroot from fluxbox seems to be a drop-in replacement for bsetroot
fbsetbg, however, has a slightly different syntax from bsetbg (from commonbox-utils). bsetbg can pass options like -solid, -gradient or -mod to bsetroot since bsetbg can't process these options. In order for fbsetbg to pass these options to fbsetroot the must be prefixed by the -b or the -B option.

When running bsetbg with the -solid option, for example, I get the following error:
griever@cloud ~ $ bsetbg -solid black
couldn't find bsetroot in /opt/sun-jre-bin-1.5.0.05/bin:/opt/sun-jre-bin-1.5.0.05/j.... (I omitted the rest)

When running fbsetbg with the same option I get:
fbsetbg: unrecognized option `-solid'

Running fbsetbg like this works:
fbsetbg -b -solid black

I have emerge commonbox-utils and created a bsetroot -> fbsetroot symlink and everything seems to work ok now.

Proposed solution:
1) Add commonbox-utils as a runtime dependency to commonbox-styles and commonbox-styles-extra
2) Create a bsetroot symlink.

Point 2 may not work. I am not aware if the other *box wm's provide a bsetroot utility or an alternative to it and under what name. If they do, maybe instead of a symlink a bsetroot wrapper script could be implemented that selects the bsetroot utility based on the current wm).

Sorry for the long post but I wanted to explain the situation as clearly as possible.
Comment 3 Alexandru Toma 2006-04-14 14:25:36 UTC
A little correction:
In order for fbsetbg to pass these options to fbsetroot _they_ must be prefixed by the -b or the -B option.
Comment 4 Alexandru Toma 2006-04-14 14:34:21 UTC
A simpler alternative to point number 2 would be to install the bsetroot program from commonbox-utils since it is not being installed currently. Again, I don't know if other *box wm's apart from Fluxbox provide a bsetroot utility under this exact name. The Fluxbox utility is under the fbsetroot name.

I would speculate that the x11-wm/blackbox package provides the utilities I mentioned under the bsetbg and bsetroot name (Fluxbox = fbxxxx, Blackbox = bxxxx). In that case we could simply have commonbox-styles* depend on x11-misc/commonbox-utils || x11-wm/blackbox

I don't know about Openbox so that remains to be seen.
Comment 5 Alexandru Toma 2006-04-14 14:36:33 UTC
> In that case we could simply have commonbox-styles* depend on
> x11-misc/commonbox-utils || x11-wm/blackbox

And we would also need a blocker between x11-misc/commonbox-utils and x11-wm/blackbox in that case

Sorry about the comment spam.
Comment 6 Pacho Ramos gentoo-dev 2012-10-22 17:52:58 UTC
What is the status of this now? We doesn't even have commonbox-utils in the tree now :/
Comment 7 Pacho Ramos gentoo-dev 2013-10-19 15:36:20 UTC
(In reply to Pacho Ramos from comment #6)
> What is the status of this now? We doesn't even have commonbox-utils in the
> tree now :/