Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 341855 - x11-wm/sawfish-1.8.1 version bump
Summary: x11-wm/sawfish-1.8.1 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://sawfish.wikia.com/wiki/2010_10...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-20 08:44 UTC by tonich
Modified: 2011-09-12 14:09 UTC (History)
5 users (show)

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


Attachments
sawfish-1.7.0.1.ebuild (sawfish-1.7.0.1.ebuild,1.73 KB, text/plain)
2010-11-27 06:20 UTC, katabami
Details
librep-0.91.0.ebuild (librep-0.91.0.ebuild,1.49 KB, text/plain)
2010-11-27 06:21 UTC, katabami
Details
sawfish-1.7.1.ebuild with emacs support. (sawfish-1.7.1.ebuild,2.20 KB, text/plain)
2011-01-25 06:09 UTC, katabami
Details
50sawfish-gentoo.el (50sawfish-gentoo.el,332 bytes, text/plain)
2011-01-25 06:12 UTC, katabami
Details
librep-0.92.0.ebuild (librep-0.92.0.ebuild,1.36 KB, text/plain)
2011-07-25 13:09 UTC, Pacho Ramos
Details
rep-gtk-0.90.6.ebuild (rep-gtk-0.90.6.ebuild,823 bytes, text/plain)
2011-07-25 13:10 UTC, Pacho Ramos
Details
sawfish-1.8.1.ebuild (sawfish-1.8.1.ebuild,1.73 KB, text/plain)
2011-07-25 13:10 UTC, Pacho Ramos
Details
librep-0.92.0-disable-elisp.patch (librep-0.92.0-disable-elisp.patch,810 bytes, patch)
2011-07-25 13:11 UTC, Pacho Ramos
Details | Diff
librep-0.92.0-disable-elisp.patch (librep-0.92.0-disable-elisp.patch,810 bytes, patch)
2011-07-28 19:36 UTC, Pacho Ramos
Details | Diff
librep-0.92.0-r1.ebuild (librep-0.92.0-r1.ebuild,1.57 KB, text/plain)
2011-08-28 18:41 UTC, dragongrot
Details
librep-0.92.0-disable-elisp.patch (librep-0.92.0-disable-elisp.patch,762 bytes, patch)
2011-08-28 18:42 UTC, dragongrot
Details | Diff
rep-gtk-0.90.6-r1.ebuild (rep-gtk-0.90.6-r1.ebuild,992 bytes, text/plain)
2011-08-28 18:43 UTC, dragongrot
Details
sawfish-1.8.1-r1.ebuild (sawfish-1.8.1-r1.ebuild,2.75 KB, text/plain)
2011-08-28 18:44 UTC, dragongrot
Details
50sawfish-gentoo.el (50sawfish-gentoo.el,490 bytes, text/plain)
2011-08-28 18:45 UTC, dragongrot
Details
x11-misc/sawfish-pager-0.90.2-r1.ebuild (sawfish-pager-0.90.2-r1.ebuild,802 bytes, text/plain)
2011-08-28 18:46 UTC, dragongrot
Details
filter optimization -O? from CFLAGS (sawfish-1.8.1-r1-CFLAGS-O2-filter.patch,447 bytes, patch)
2011-09-01 22:45 UTC, womble
Details | Diff
icccm selection bugfix, diff of 1.8.1 to developers git tree (sawfish-icccm-selection.patch,539 bytes, patch)
2011-09-09 01:49 UTC, womble
Details | Diff
adding `epatch' line in ebuild (sawfish-icccm-selection-ebuild.patch,311 bytes, patch)
2011-09-09 01:49 UTC, womble
Details | Diff
x11-wm/sawfish-1.8.2 version bump (sawfish-1.8.2.ebuild,2.75 KB, text/plain)
2011-09-11 17:43 UTC, dragongrot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tonich 2010-10-20 08:44:03 UTC
x11-wm/sawfish-1.7.0 version bump

Reproducible: Always
Comment 1 katabami 2010-11-27 06:18:56 UTC
Hi. Let me send ebuilds for x11-wm/sawfish and its backend dev-libs/rep-gtk.

And please bump x11-libs/rep-gtk to 0.90.4. Renaming the last ebuild in
the portage tree suffices.

The attached version of Sawfish is 1.7.0.1, which fixes a new bug in 1.7.0.

Changes in sawfish-1.7.0.1.ebuild from the latest in portage tree:
Updated dependency. Dropped a bugfix patch which was necessary for 1.6.3.
Minor fix in dodoc, by dropping "DOC" file which is used by Sawfish, and
not human readable.

Changes in librep-0.91.0 from the latest in portage tree:

Added one new USE flag, gmp. Dodoc files are updated. Homepage
update. Added elog, saying :
 elog "If you have updated from librep < 0.91.0, then you have to"
 elog "rebuild x11-libs/rep-gtk and x11-wm/sawfish, in this order."
(I understand tab should be used, instead of spaces. :)

In sawfish's ebuild, there remains snapshot building support, but I think
it can be deleted. In 2003 - 2008 Sawfish development was stale, and
gentoo made CVS snapshot ebuilds. But now releases are made regularly.

Thanks beforehand. 
Comment 2 katabami 2010-11-27 06:20:19 UTC
Created attachment 255549 [details]
sawfish-1.7.0.1.ebuild

sawfish-1.7.0.1.ebuild
Comment 3 katabami 2010-11-27 06:21:35 UTC
Created attachment 255551 [details]
librep-0.91.0.ebuild
Comment 4 katabami 2011-01-25 06:09:39 UTC
Created attachment 260642 [details]
sawfish-1.7.1.ebuild with emacs support.

This new ebuild supports emacs; sawfish.el is included in Sawfish >= 1.7.0. I named the attachment as sawfish-1.7.0.1.ebuild, but in fact it can be used for any of 1.7.0, 1.7.0.1, and 1.7.1.
Comment 5 katabami 2011-01-25 06:12:08 UTC
Created attachment 260644 [details]
50sawfish-gentoo.el

Emacs site-lisp file. Put it under x11-wm/sawfish/files.
Comment 6 taaroa 2011-05-18 14:52:18 UTC

>>> Downloading 'http://download.tuxfamily.org/sawfish/sawfish/sawfish-1.7.1.tar.bz2'
--2011-05-18 22:47:05--  http://download.tuxfamily.org/sawfish/sawfish/sawfish-1.7.1.tar.bz2
Resolving download.tuxfamily.org (download.tuxfamily.org)... 212.85.158.13
Connecting to download.tuxfamily.org (download.tuxfamily.org)|212.85.158.13|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-05-18 22:47:05 ERROR 404: Not Found.

>>> Downloading 'http://download.tuxfamily.org/sawfish/librep/librep-0.91.0.tar.bz2'
--2011-05-18 22:48:48--  http://download.tuxfamily.org/sawfish/librep/librep-0.91.0.tar.bz2
Resolving download.tuxfamily.org (download.tuxfamily.org)... 212.85.158.13
Connecting to download.tuxfamily.org (download.tuxfamily.org)|212.85.158.13|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-05-18 22:48:48 ERROR 404: Not Found.

!!! Couldn't download 'librep-0.91.0.tar.bz2'. Aborting.
!!! Fetch failed for librep-0.91.0.tar.bz2, can't update Manifest



see also #367623
Comment 7 dragongrot 2011-05-18 18:59:10 UTC

(In reply to comment #6)
> ....

Here you can check the current dowload source(s):
http://sawfish.wikia.com/wiki/Download
Check SRC_URI in the ebuilds.

Or you can try my git ebuilds:
http://mitglied.lycos.de/fuchur2004/gentoo-sawfish-git-ebuilds.tar.bz2
Comment 8 Pacho Ramos gentoo-dev 2011-07-25 13:09:29 UTC
Created attachment 280909 [details]
librep-0.92.0.ebuild
Comment 9 Pacho Ramos gentoo-dev 2011-07-25 13:10:02 UTC
Created attachment 280911 [details]
rep-gtk-0.90.6.ebuild
Comment 10 Pacho Ramos gentoo-dev 2011-07-25 13:10:25 UTC
Created attachment 280913 [details]
sawfish-1.8.1.ebuild
Comment 11 Pacho Ramos gentoo-dev 2011-07-25 13:11:59 UTC
Created attachment 280915 [details, diff]
librep-0.92.0-disable-elisp.patch

These are the updated ebuilds, but I couldn't bump it in the tree as sawfish-1.8.x has stopped to start from gdm neither running "sawfish --replace" from a gnome session, it exits with:

"You may only run one window manager"

This problem needs to be solved first
Comment 12 Pacho Ramos gentoo-dev 2011-07-28 16:34:49 UTC
(In reply to comment #11)
> Created attachment 280915 [details, diff]
> librep-0.92.0-disable-elisp.patch
> 
> These are the updated ebuilds, but I couldn't bump it in the tree as
> sawfish-1.8.x has stopped to start from gdm neither running "sawfish --replace"
> from a gnome session, it exits with:
> 
> "You may only run one window manager"
> 
> This problem needs to be solved first

If anyone knows how could this be solved it would be nice since I cannot find how to fix this problem and, if it's not fixed, I cannot bump it :-(
Comment 13 dragongrot 2011-07-28 18:02:15 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > Created attachment 280915 [details, diff]
> > librep-0.92.0-disable-elisp.patch
> > 
> > These are the updated ebuilds, but I couldn't bump it in the tree as
> > sawfish-1.8.x has stopped to start from gdm neither running "sawfish --replace"
> > from a gnome session, it exits with:
> > 
> > "You may only run one window manager"
> > 
> > This problem needs to be solved first
> 
> If anyone knows how could this be solved it would be nice since I cannot find
> how to fix this problem and, if it's not fixed, I cannot bump it :-(

Sawfish --replace works here, I run:
"metacity --replace" and then
"sawfish --replace" without problems

But you can set with gconf-editor the default windowmanager for gnome.
Open gconf-editor go to "/desktop/gnome/session/required_components/windowmanager" and replace by windowmanager metacity with sawfish.
If you restart the gnome-session sawfish and not metacity will run in gnome.
Comment 14 Pacho Ramos gentoo-dev 2011-07-28 18:39:44 UTC
Don't understand why it doesn't work for me :-(

Does it work when login in sawfish directly after selecting it in sessions menu from gdm?
Comment 15 dragongrot 2011-07-28 19:20:39 UTC
(In reply to comment #14)
> Don't understand why it doesn't work for me :-(
> 
> Does it work when login in sawfish directly after selecting it in sessions menu
> from gdm?

Yes. I can run sawfish direkt from gdm as windowmanager.
Have you add a other windowmanager or script in ~/.xinitrc or in gnome-session-properties that run by login"? I also don't understand that, it's not a know bug.
Comment 16 Pacho Ramos gentoo-dev 2011-07-28 19:36:44 UTC
Created attachment 281337 [details, diff]
librep-0.92.0-disable-elisp.patch
Comment 17 Pacho Ramos gentoo-dev 2011-07-28 20:02:00 UTC
It still fails for me even on a new created user account

In /desktop/gnome/session/required_components/windowmanager I am using "gnome-wm" that shouldn't cause problems as it doesn't cause problems for icewm, openbox and sawfish-1.6.3

When running from a failsafe console, I have seen I can make it start if simply running "sawfish", but it fails when running "/etc/X11/gdm/Xsession sawfish"
Comment 18 dragongrot 2011-07-28 22:22:31 UTC
(In reply to comment #17)
> 
> When running from a failsafe console, I have seen I can make it start if simply
> running "sawfish", but it fails when running "/etc/X11/gdm/Xsession sawfish"

Move ~/.sawfish and try again so that sawfish start without any custom scipts/lips and defaut settings. If sawfish then not work i have no idea.
Comment 19 Pacho Ramos gentoo-dev 2011-07-29 17:49:51 UTC
I tried it at first time without success :(
Comment 20 Priit Laes (IRC: plaes) 2011-08-16 14:30:40 UTC
(In reply to comment #19)
> I tried it at first time without success :(

I have the same issue with 1.6.3 (on GNOME3) as a new user too..
Comment 21 Pacho Ramos gentoo-dev 2011-08-27 21:51:16 UTC
Would be nice if you could contact upstream in their mailing list or IRC channel, I tried to ask on IRC at end July and didn't get any reply... maybe you are luckier (I will be devaway again for the first week of September and probably around third week also :S and, then, won't have time for this)
Comment 22 dragongrot 2011-08-27 22:06:23 UTC
(In reply to comment #21)
> Would be nice if you could contact upstream in their mailing list or IRC
> channel, I tried to ask on IRC at end July and didn't get any reply... maybe
> you are luckier (I will be devaway again for the first week of September and
> probably around third week also :S and, then, won't have time for this)

I have open a thread on the sawfish-mailinglist for some time but nobody can reproduces this. You can read it here:
http://www.mail-archive.com/sawfish@lists.tuxfamily.org/msg00094.html
Comment 23 Pacho Ramos gentoo-dev 2011-08-28 09:01:16 UTC
Have you tried using my ebuilds attached to this bug report? Or are you using some different ones?
Comment 24 dragongrot 2011-08-28 11:03:09 UTC
(In reply to comment #23)
> Have you tried using my ebuilds attached to this bug report? Or are you using
> some different ones?

I have test it with my ebuilds from comment 7.
Comment 25 Pacho Ramos gentoo-dev 2011-08-28 11:23:14 UTC
Try then with my ebuilds (in non-obsolete attachments shown above in this report) as maybe they are missing anything :-/
Comment 26 dragongrot 2011-08-28 18:41:40 UTC
Created attachment 284911 [details]
librep-0.92.0-r1.ebuild
Comment 27 dragongrot 2011-08-28 18:42:34 UTC
Created attachment 284913 [details, diff]
librep-0.92.0-disable-elisp.patch
Comment 28 dragongrot 2011-08-28 18:43:18 UTC
Created attachment 284915 [details]
rep-gtk-0.90.6-r1.ebuild
Comment 29 dragongrot 2011-08-28 18:44:06 UTC
Created attachment 284917 [details]
sawfish-1.8.1-r1.ebuild
Comment 30 dragongrot 2011-08-28 18:45:04 UTC
Created attachment 284919 [details]
50sawfish-gentoo.el
Comment 31 dragongrot 2011-08-28 18:46:25 UTC
Created attachment 284921 [details]
x11-misc/sawfish-pager-0.90.2-r1.ebuild
Comment 32 dragongrot 2011-08-28 18:47:37 UTC
(In reply to comment #25)
> Try then with my ebuilds (in non-obsolete attachments shown above in this
> report) as maybe they are missing anything :-/

I have add a set of ebuilds and a patch. I also add a emacs file and you can set the emacs use-flag in sawfish, it makes "app-emacs/sawfish" obsolete.
Comment 33 dragongrot 2011-08-28 18:51:15 UTC
(In reply to comment #32)
> I have add a set of ebuilds and a patch. I also add a emacs file and you can
> set the emacs use-flag in sawfish, it makes "app-emacs/sawfish" obsolete.

Only tested on x86.
Comment 34 dragongrot 2011-08-28 19:00:09 UTC
(In reply to comment #32)
> I have add a set of ebuilds and a patch. I also add a emacs file and you can
> set the emacs use-flag in sawfish, it makes "app-emacs/sawfish" obsolete.

Only tested on x86.
Comment 35 Pacho Ramos gentoo-dev 2011-08-29 15:16:03 UTC
Regarding emacs stuff, why do you prefer to merge it into the same sawfish.ebuild?  Looking to app-emacs category seems that the way to go is current one (a different ebuild for emacs stuff). It would also reduce changes over current ebuilds...
Comment 36 dragongrot 2011-08-29 16:20:53 UTC
(In reply to comment #35)
> Regarding emacs stuff, why do you prefer to merge it into the same
> sawfish.ebuild?  Looking to app-emacs category seems that the way to go is
> current one (a different ebuild for emacs stuff). It would also reduce changes
> over current ebuilds...

A updated emacs file is in the sawfish sources. You only have the "SITEFILE" in the ebuild and it is not a emacs app. If you want to run/support sawish code in emacs you need the useflag emacs. Look at other ebuild with emacs flag like app-text/a2ps dev-scheme/guile dev-vcs/git etc. and you understand how it work. I not sure, but i think i'am not wrong with my ebuild here.
Comment 37 katabami 2011-08-30 07:17:08 UTC
Yep, since Sawfish-1.7.0, sawfish.el, the emacs major-mode for Sawfish, is included in the Sawfish itself, and it has many updates. See for example:
 http://sawfish.wikia.com/wiki/2010_10_02:_sawfish_1.7.0_released
and search for "emacs" inside that page.

And examples like git are correct, aren't they?

With best regards.
Comment 38 womble 2011-09-01 22:42:49 UTC
(In reply to comment #11 and related )
> Created attachment 280915 [details, diff]
> librep-0.92.0-disable-elisp.patch
> 
> These are the updated ebuilds, but I couldn't bump it in the tree as
> sawfish-1.8.x has stopped to start from gdm neither running "sawfish --replace"
> from a gnome session, it exits with:
> 
> "You may only run one window manager"
> 
> This problem needs to be solved first

Maybe the issue for that weired message has to do with optimization. I just switched from sawfish-1.6.3 to your new ebuilds including sawfish-1.8.1-r1, 
and hit the same problem.

(Not exactly the same setup, though, because I first tried the new sawfish
from within my chrooted test environment, running Xephyr inside the "real"
X. However, I got the same message.)

Recompiling with optimization flags -O? removed resolved the bug for me.
Can you please try this out?

Attached below an ebuild patch, using 'flag-o-matic' to remove -O? 
from CFLAGS.

Regards.
Comment 39 womble 2011-09-01 22:45:02 UTC
Created attachment 285295 [details, diff]
filter optimization -O? from CFLAGS
Comment 40 dragongrot 2011-09-01 23:29:41 UTC
(In reply to comment #39)
> Created attachment 285295 [details, diff]
> filter optimization -O? from CFLAGS

With your patch we have 2x inherit in the ebuild!

On my x86 system i don't have this problems. What for "CFLAGS" do you use, do you use recommended settings?
Comment 41 womble 2011-09-02 19:54:29 UTC
(In reply to comment #40)
> (In reply to comment #39)
> > Created attachment 285295 [details, diff]
> > filter optimization -O? from CFLAGS
> 
> With your patch we have 2x inherit in the ebuild!
> 
> On my x86 system i don't have this problems. What for "CFLAGS" do you use, do
> you use recommended settings?

You are of course right with the double 'inherit', although it is new to me
that this is not ok. I'm not an ebuild expert, however.

The 1st time I used the vanilla CFLAGS for my machine, as they are
set in 'make.conf' during inital install,

   CFLAGS="-march=athlon64 -O2 -pipe"

however, when I run into the bug I decided to takle the problem,
set CFLAGS="-g" and RESTRICT=strip in an temporary ebuild, and
prepared myself to use gdb with sawfish. But then the bug disapeard ...

Maybe I give it a try by just adding "-g" to CFLAGS, however, since
I think debugging X11 problems is rather difficult, I don't know yet.
Without -O2 it just works for me, and IMO optimization is not a big issue
with sawfish, since I think that most time is spend in its lisp code anyway.
Comment 42 womble 2011-09-09 01:47:37 UTC
I have looked into that problem with gdb, and send a bug report + fix to the
mailing list on sawfish@lists.tuxfamily.org (Indeed wether using `-O2' or
not has changed things). It got an response from one of the developers, that
he has accepted it and made a commit (`3df9fa36e731f941aa1f83b1fa38a4b18489aed8', "Fix a bug in manager selection handling.")

It is not yet in the "offical" tree at http://git.tuxfamily.org/sawfish/main.git,
though.

The small changes to are attached as `sawfish-icccm-selection.patch', and
the new `epatch' line in the ebuild as `sawfish-icccm-selection-ebuild.patch'.

I works for me (_with_ default compiler settings), and if that works for
you, sawfish could be bumped in gentoo. Or not?
Comment 43 womble 2011-09-09 01:49:07 UTC
Created attachment 285905 [details, diff]
icccm selection bugfix, diff of 1.8.1 to developers git tree
Comment 44 womble 2011-09-09 01:49:59 UTC
Created attachment 285907 [details, diff]
adding `epatch' line in ebuild
Comment 45 dragongrot 2011-09-11 17:43:02 UTC
Created attachment 286139 [details]
x11-wm/sawfish-1.8.2 version bump
Comment 46 Pacho Ramos gentoo-dev 2011-09-12 14:09:23 UTC
+*sawfish-1.8.2 (12 Sep 2011)
+
+  12 Sep 2011; Pacho Ramos <pacho@gentoo.org> +sawfish-1.8.2.ebuild:
+  Version bump, drop .la files.
+