13aeb gnome2 on xorg7.5 + src update (head) - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old May 6th, 2010, 19:48
zeiz's Avatar
zeiz zeiz is offline
Member
 
Join Date: Nov 2008
Location: Canada
Posts: 691
Thanks: 38
Thanked 54 Times in 52 Posts
Default gnome2 on xorg7.5 + src update (head)

kinda report.
perfectly working 9-current with latest sources + updated gnome2 => upgrade xorg7.4>7.5 = hang.
Power down, bad dismount, single, fsck. total = 3 attempts.
Reinstall from snapshot 9.0-201004, xorg7.5 install (without hal) = success, all working.
Rebuild world+kernel(custom) to current src => xorg, twm working, mouse ok.
updated ports =># portupgrade -NP gnome2=> installation failed in the middle=hang. Power down, bad dismount, single, fsck. Reinstall from 9.0-201004, xorg7.5 => # cd /usr/ports/x11/gnome2 ; make install clean
Error1 (Totem). make clean => # portupgrade -N gnome2 totem=success but gnome-power-manager Error1: .../dpmsstr - no such file or directory. google => bug, fix: patch in latest sources... update to latest src = hang, hang, hang during almost any build (not just gnome-power-manager).
Tried custom, generic - hang, hang, hang. Return to kernel 201004 => ok except gnome-power-manager. Currently: "checking whether we are using GNU C compiler...." = hang. but could be another statement.
Cannot recall another situation with so fatal hanging: nothing works except power button.
Gnome seems work properly but only with hald_enable="YES" in rc.conf.

google: change smth in ${WORKDIR}/src/... to manually fix gnome-power-manager bug. Couldn't find "src" in gnome-power-manager/work
Does somebody know how to fix?

Another question: What I'm doing wrong or what's wrong with latest src?
Last question: Is HAL immortal?

Last edited by zeiz; May 7th, 2010 at 01:41.
Reply With Quote
  #2  
Old May 7th, 2010, 01:31
zeiz's Avatar
zeiz zeiz is offline
Member
 
Join Date: Nov 2008
Location: Canada
Posts: 691
Thanks: 38
Thanked 54 Times in 52 Posts
Default

Was able to fix gnome-power-manager bug having kernel 201004 though.
1. After main install fails with message: "...X11/extensions/dpmsstr.h - no such file or directory"Error1... Stop in ...
2. # ee /usr/ports/sysutils/gnome-power-manager/work/gnome-power-manager-2.24.4/src/gpm-dpms.c
3. find the place below (not far from the file beginning) and edit it:

Code:
   #ifdef HAVE_DPMS_EXTENSION
   #include <X11/extensions/Xproto.h
   #include <X11/extensions/dpms.h
 - #include <X11/extensions/dpmsstr.h   (delete this line)
 + #include <X11/extensions/dpmsconst.h (add this line)
 + #include <X11/extentions/dpmsproto.h (add this line)
   #endif
Then run
Code:
# cd /usr/ports/sysutils/gnome-power-manager && make
# make install
# make clean
That's it. gnome-power-manager was installed and then installation of gnome2 meta package became possible that allowed building of own packages for gnome2 port.

Perhaps it's simply brilliant to apply somehow the patch below but...I just don't know how

Code:
--- src/gpm-dpms.c.orig 2010-05-02 17:27:20.000000000 +0200
+++ src/gpm-dpms.c      2010-05-02 17:27:57.000000000 +0200
@@ -39,7 +39,8 @@
 #ifdef HAVE_DPMS_EXTENSION
 #include <X11/Xproto.h>
 #include <X11/extensions/dpms.h>
-#include <X11/extensions/dpmsstr.h>
+#include <X11/extensions/dpmsconst.h>
+#include <X11/extensions/dpmsproto.h>
 #endif

 #include "gpm-conf.h"
Nevertheless a question still remains:
1. Why current src for 'head' are incompatible with current Gnome?
Reply With Quote
  #3  
Old May 7th, 2010, 10:29
ondra_knezour ondra_knezour is offline
Member
 
Join Date: Nov 2008
Location: Prague, Czech Republic, Europe
Posts: 215
Thanks: 9
Thanked 29 Times in 28 Posts
Default

Submit your patch to FreeBSD Problem Report database either using www interface http://www.freebsd.org/send-pr.html or by send-pr tool available on your computer. Its should be assigned to FreeBSD Gnome team.

There is short FAQ about (status of) development of FreeBSD Gnome at http://www.freebsd.org/gnome/docs/faq228.html.
Reply With Quote
  #4  
Old May 7th, 2010, 10:41
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

Quote:
Originally Posted by zeiz View Post
Nevertheless a question still remains:
1. Why current src for 'head' are incompatible with current Gnome?
Because -CURRENT is a work in progress. It might not even compile.

Quote:
24.5.1.1 What Is FreeBSD-CURRENT?

FreeBSD-CURRENT is the latest working sources for FreeBSD. This includes work in progress, experimental changes, and transitional mechanisms that might or might not be present in the next official release of the software. While many FreeBSD developers compile the FreeBSD-CURRENT source code daily, there are periods of time when the sources are not buildable. These problems are resolved as expeditiously as possible, but whether or not FreeBSD-CURRENT brings disaster or greatly desired functionality can be a matter of which exact moment you grabbed the source code in!
http://www.freebsd.org/doc/en_US.ISO...nt-stable.html
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #5  
Old May 7th, 2010, 15:38
zeiz's Avatar
zeiz zeiz is offline
Member
 
Join Date: Nov 2008
Location: Canada
Posts: 691
Thanks: 38
Thanked 54 Times in 52 Posts
Default

Thanks guys.
Actually I'm familiar with Handbook and the links it's providing.
My question wasn't rhetoric, sorry if it didn't reflect what I meant. I'm trying -CURRENT since 8 being aware that it's unstable but never had problems like now...though this trying is exactly looking for troubles (I like troubleshooting)
BTW the described gnome-power-manager's behavior under xorg7.5 is already known bug appeared due to splitting dpmsstr.h onto 2 files: dpmsconst.h and dpmsproto.h. I hoped that latest src contain a fix or patch but they cause even bigger problem: unpredictable hangs anywhere during compiling (not only Gnome related).
It's fine to live with src 201004 for a little while. I only hoped somebody knows what's currently going on and when to expect changes. I also hopped to learn: if somebody knows how to apply the patch properly with just patch command.
By googling I only found the patch itself, nothing more.
Thanks anyway for noticing my thread.
Reply With Quote
  #6  
Old May 7th, 2010, 15:53
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

If I read this correctly it's a problem with one of the Xorg header files? You may have more luck posting to the freebsd-x11@ mailing list. There aren't a lot of developers on this forum
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #7  
Old May 7th, 2010, 20:25
zeiz's Avatar
zeiz zeiz is offline
Member
 
Join Date: Nov 2008
Location: Canada
Posts: 691
Thanks: 38
Thanked 54 Times in 52 Posts
Default

Yes, Sir... But
1. It's known bug.
2. If a lot of developers doesn't write here it doesn't mean they don't read
3. There could be somebody around here who got the same issue...
Reply With Quote
  #8  
Old May 8th, 2010, 08:25
molli123 molli123 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

zeiz: simply add the lines of my patch into
/usr/ports/sysutils/gnome-power-manager/files/patch-src_gpm-dpms.c

I just saw the ports tree got updated, but it just contains dpmsproto.h, not dpmsconst.h.

I don't know why, but this alone seems to work, too.

Last edited by DutchDaemon; May 8th, 2010 at 19:28.
Reply With Quote
  #9  
Old May 9th, 2010, 03:37
zeiz's Avatar
zeiz zeiz is offline
Member
 
Join Date: Nov 2008
Location: Canada
Posts: 691
Thanks: 38
Thanked 54 Times in 52 Posts
Default

Thanks a lot! Indeed:
I used to add your patch into .../files (it wasn't there) and it didn't work that's why I asked how to apply the patch. That time I manually edited the file in .../work/.../src (after build failure) and it worked.
After that I used to rebuilt world+kernel twice trying different things...
Right now I opened the .../files and found the patch but it's not your patch, it's new one - like you mentioned:
Code:
--- src/gpm-dpms.c.orig 2008-09-04 05:05:15.000000000 -0500
+++ src/gpm-dpms.c      2010-05-07 08:36:53.000000000 -0500
@@ -39,7 +39,7 @@
 #ifdef HAVE_DPMS_EXTENSION
 #include <X11/Xproto.h>
 #include <X11/extensions/dpms.h>
-#include <X11/extensions/dpmsstr.h>
+#include <X11/extensions/dpmsproto.h>
 #endif

 #include "gpm-conf.h"
In meantime gnome-power-manager bumped to 2.24.4_10, portupgrade failed (hang again) but 'make install' worked after 'Stop...' => 'make deinstall ; make reinstall' so everything is like you said.

Now I'm trying to figure out a source of steady hangs during any compiling: they've begun only after upgrade xorg7.4>7.5 (newest src + 7.4 - no problems). This hardware is 8y.o. but it was just fine so far:
Asus P4S333/c (latest bios), P4 2.4GHz (686), ram 2.5Gb, GeForce3-Ti200.
Thanks again.
Reply With Quote
  #10  
Old May 9th, 2010, 08:46
molli123 molli123 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes, I'm sorry, it was the first time, I used the webinterface instead of send-pr. I didn't know it renamed my file to "patch".
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
a another way to update your src netrookie Installing & Upgrading 22 March 10th, 2010 14:52
gnome2 package halts hitchup Installation and Maintenance of FreeBSD Ports or Packages 8 December 13th, 2009 21:45
gnome2-lite2.26.2 juve_inferno GNOME 14 May 23rd, 2009 23:29
gnome2-2.60 juve_inferno Installation and Maintenance of FreeBSD Ports or Packages 4 May 21st, 2009 10:39
Install or update gnome2 via port, no redundant compilation jronald Installing & Upgrading 1 February 18th, 2009 07:40


All times are GMT +1. The time now is 14:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0