DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 20th November 2009
Sam Sam is offline
Port Guard
 
Join Date: Nov 2009
Posts: 19
Default error message gnome

Hello

I have a problem with the configuration of gnome, when I close my GUI it gives me the following message.

Code:
gnome-session[22233]: WARNING: Failed to execute '/usr/obj/i386/gnome-session-2.24.3p17/bin/gconftool-2 --shutdown' on logout: Failed to execute child process "/usr/obj/i386/gnome-session-2.24.3p17/bin/gconftool-2" (No such file or directory)  
gnome-session[28294]: WARNING: Failed to execute '/usr/obj/i386/gnome-session-2.24.3p17/bin/gconftool-2 --shutdown' on logout: Failed to execute child process "/usr/obj/i386/gnome-session-2.24.3p17/bin/gconftool-2" (No such file or directory)
Reply With Quote
  #2   (View Single Post)  
Old 20th November 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,052
Default

This looks like a packaging error -- gnome-session is looking for gconftool-2 in a directory that only existed at the time gnome-session was built.

Gnome is maintained by a team, rather than an individual. Antoine Jacoutot (ajacoutot@) has made all of the recent commits for gnome-session. If these warning messages on exit cause concern, or causes gconf processes to hang, you could always post about them to the ports@ mailing list, or send a note to Antoine.

It is possible that Antoine or another developer could produce a -stable port with a fix.
Reply With Quote
  #3   (View Single Post)  
Old 20th November 2009
Sam Sam is offline
Port Guard
 
Join Date: Nov 2009
Posts: 19
Default

Hello,

I've sent them an email explaining my problem

Thank you very much
Reply With Quote
  #4   (View Single Post)  
Old 20th November 2009
Sam Sam is offline
Port Guard
 
Join Date: Nov 2009
Posts: 19
Default

Hello,

I received a reply from Antoine Jacoutot, He sent me the following link

Code:
http://www.openbsd.org/cgi-bin/cvsweb/ports/x11/gnome/session/Makefile.diff?r1=1.84&r2=1.85&f=h

Reply With Quote
  #5   (View Single Post)  
Old 20th November 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,052
Default

I was not aware that this was a known, fixed problem, when I first replied.

The link that Antoine sent you is to a "for viewing" version of the fix. The log for the patch says (one of Antoine's e-mail addresses redacted):
Code:
CVSROOT:    /cvs Module name:    ports
 Changes by:    ajacoutot@cvs._______.org    2009/08/20 03:40:13

Modified files:
    x11/gnome/session: Makefile 

Log message:
Make sure gnome-session finds gconftool-2.

commiting on behalf of giovanni@
This bug is fixed in -current, but not 4.6-release. Nor is there, today, a 4.6-stable patch. You could apply it, and build the gnome-session port yourself. It requires:
  • The comp46.tgz file set. See FAQ 4.10 if it was not included when you installed or upgraded to 4.6-release.
  • The 4.6-release ports tree, available from your nearest mirror or CD set, per FAQ 15.3.2
  • The patch in unified diff form, which I have supplied, below.
  • A PKG_PATH environment variable set to: /usr/ports/packages/<your arch>/all/:ftp://<your nearest mirror>/pub/OpenBSD/4.6/packages/<your arch>/
  • A review of FAQ 15
  • These step-by-step instructions. Refer to FAQ 15, FAQ 5, patch(1), diff(1), make(1) as needed, do not blindly trust that what I type here is correct, I have not tested it:
# cd /usr/ports/x11/gnome/session
# patch < your.copy.of.the.unified.diff.patch.file
# make package
# pkg_add -r gnome-session
Here is the patch. Copy and paste it into a file on your OpenBSD system so you can use it as input to the patch(1) utility:
Code:
===================================================================
RCS file: /open/anoncvs/cvs/ports/x11/gnome/session/Makefile,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -r1.84 -r1.85
--- ports/x11/gnome/session/Makefile    2009/08/11 09:39:39    1.84
+++ ports/x11/gnome/session/Makefile    2009/08/20 10:40:13    1.85
@@ -1,10 +1,10 @@
-# $OpenBSD: Makefile,v 1.84 2009/08/11 08:39:39 ajacoutot Exp $
+# $OpenBSD: Makefile,v 1.85 2009/08/20 09:40:13 ajacoutot Exp $
 
 COMMENT=        GNOME session
 
 GNOME_PROJECT=        gnome-session
 GNOME_VERSION=        2.24.3
-PKGNAME=        ${DISTNAME}p18
+PKGNAME=        ${DISTNAME}p19
 
 CATEGORIES=        x11
 
@@ -66,6 +66,10 @@
             --disable-rebuilds
 CONFIGURE_ENV=        CPPFLAGS="-I${LOCALBASE}/include" \
             LDFLAGS="-L${LOCALBASE}/lib -lexecinfo"
+
+# XXX gconf2 MODULE changes this value but gsm-gconf.c uses this to
+# find the right path for gconftool-2
+CONFIGURE_ENV+=        GCONFTOOL=${LOCALBASE}/bin/gconftool-2
 
 MAKE_FLAGS=        XSLTPROC="${LOCALBASE}/bin/xsltproc -nonet"

Last edited by jggimi; 20th November 2009 at 08:50 PM.
Reply With Quote
  #6   (View Single Post)  
Old 20th November 2009
Sam Sam is offline
Port Guard
 
Join Date: Nov 2009
Posts: 19
Default

I put this patch in the directory cd /usr/ports/x11/gnome/session
and I type the command patch < gome.patch il m'affiche

he asks me

Code:
File to patch:
No file found--skip this patch? [n]

Code:
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|===================================================================
|RCS file: /open/anoncvs/cvs/ports/x11/gnome/session/Makefile,v
|retrieving revision 1.84
|retrieving revision 1.85
|diff -u -r1.84 -r1.85
|--- ports/x11/gnome/session/Makefile    2009/08/11 09:39:39    1.84
|+++ ports/x11/gnome/session/Makefile    2009/08/20 10:40:13    1.85
--------------------------
File to patch: File to patch:
No file found--skip this patch? [n] File to patch: File to patch:
No file found--skip this patch? [n]
patch: **** can't find File
# No file found--skip this patch? [n]
ksh: No: not found
# patch <path
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|===================================================================
|RCS file: /open/anoncvs/cvs/ports/x11/gnome/session/Makefile,v
|retrieving revision 1.84
|retrieving revision 1.85
|diff -u -r1.84 -r1.85
|--- ports/x11/gnome/session/Makefile    2009/08/11 09:39:39    1.84
|+++ ports/x11/gnome/session/Makefile    2009/08/20 10:40:13    1.85
--------------------------
File to patch:
No file found--skip this patch? [n]
Reply With Quote
  #7   (View Single Post)  
Old 20th November 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,052
Default

Sorry, you must either cd(1) to /usr in order to use the patch file, or use path(1) with the --strip or -p option. As I recommended, above, see the patch(1) man page.

As I'd warned you, you cannot type the commands in blindly and assume they will work.
Reply With Quote
  #8   (View Single Post)  
Old 20th November 2009
Sam Sam is offline
Port Guard
 
Join Date: Nov 2009
Posts: 19
Default

have installed the file comp46.tgz during installation of my openbsd and I use pkg_add gnome session
Reply With Quote
  #9   (View Single Post)  
Old 20th November 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,052
Default

Quote:
Originally Posted by Sam View Post
have installed the file comp46.tgz during installation of my openbsd and I use pkg_add gnome session
Did you -not- understand my comment about patch? Let me be try to be clearer:

The patch file points to files in "ports/x11/gnome/session/..." so you -must- either do:
# cd /usr
# patch < /path/to/your/file
# cd ports/x11/gnome/session
or, while in the /usr/ports/x11/gnome/session directory:
# patch -p3 < /path/to/your/file
or, you can manually edit the patch file. This is not recommended.

I would recommend using patch -p3. Please read about the -p option in the man page.

I am not sure what you are trying to say with your latest post.
Reply With Quote
Old 20th November 2009
Sam Sam is offline
Port Guard
 
Join Date: Nov 2009
Posts: 19
Default

why he asks me

File to patch:
No file found--skip this patch? [n]

Reply With Quote
Old 21st November 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,052
Default

I recreated a -release environment, and running the patch provided, saw that it will not install as written, since there was a patch 1.84 that added in between. It adds some additional dependency libraries to the build.

I did not have your problem. I saw proper errors (hunks failed due to code mismatch).

Here is a new, -tested- patch:
Code:
Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/gnome/session/Makefile,v
retrieving revision 1.83
retrieving revision 1.85
diff -u -r1.83 -r1.85
--- Makefile    16 Jun 2009 15:12:50 -0000    1.83
+++ Makefile    20 Aug 2009 09:40:13 -0000    1.85
@@ -1,10 +1,10 @@
-# $OpenBSD: Makefile,v 1.83 2009/06/16 15:12:50 ajacoutot Exp $
+# $OpenBSD: Makefile,v 1.85 2009/08/20 09:40:13 ajacoutot Exp $
 
 COMMENT=        GNOME session
 
 GNOME_PROJECT=        gnome-session
 GNOME_VERSION=        2.24.3
-PKGNAME=        ${DISTNAME}p17
+PKGNAME=        ${DISTNAME}p19
 
 CATEGORIES=        x11
 
@@ -17,7 +17,7 @@
 WANTLIB=       ICE ORBit-2 ORBitCosNaming-2 SM X11 Xau Xcomposite \
            Xcursor Xdamage Xdmcp Xext Xfixes Xi Xinerama Xrandr \
            Xrender art_lgpl_2 atk-1.0 avahi-client avahi-common \
-           avahi-glib bonobo-2 bonobo-activation \
+           avahi-glib bonobo-2 bonobo-activation pthread-stubs xcb \
            bonoboui-2 c cairo crypto dbus-1 dbus-glib-1 expat \
            fontconfig freetype gailutil gdk-x11-2.0 gdk_pixbuf-2.0 \
            gio-2.0 glade-2.0 glib-2.0 glitz gmodule-2.0 gnome-2 \
@@ -66,6 +66,10 @@
             --disable-rebuilds
 CONFIGURE_ENV=        CPPFLAGS="-I${LOCALBASE}/include" \
             LDFLAGS="-L${LOCALBASE}/lib -lexecinfo"
+
+# XXX gconf2 MODULE changes this value but gsm-gconf.c uses this to
+# find the right path for gconftool-2
+CONFIGURE_ENV+=        GCONFTOOL=${LOCALBASE}/bin/gconftool-2
 
 MAKE_FLAGS=        XSLTPROC="${LOCALBASE}/bin/xsltproc -nonet"
And here is a session log, showing a successful test, with comments:
Code:
(These two commands give me the 4.6-release version of the port scaffolding for 
 gnome-session, in /tmp, to test the new patch against 4.6-release.)

$ cd /tmp
$ cvs get -r OPENBSD_4_6_BASE ports/x11/gnome/session
cvs checkout: Updating ports/x11/gnome/session
U ports/x11/gnome/session/Makefile
U ports/x11/gnome/session/distinfo
cvs checkout: Updating ports/x11/gnome/session/files
U ports/x11/gnome/session/files/README.OpenBSD
cvs checkout: Updating ports/x11/gnome/session/patches
U ports/x11/gnome/session/patches/patch-data_Makefile_in
U ports/x11/gnome/session/patches/patch-data_gnome-session_schemas_in
cvs checkout: Updating ports/x11/gnome/session/pkg
U ports/x11/gnome/session/pkg/DESCR
U ports/x11/gnome/session/pkg/MESSAGE
U ports/x11/gnome/session/pkg/PLIST

(These two commands apply the patch.)

$ cd ports/x11/gnome/session
$ patch < /tmp/better.gnome.session.patch
Hmm...    Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: Makefile
|===================================================================
|RCS file: /cvs/ports/x11/gnome/session/Makefile,v
|retrieving revision 1.83
|retrieving revision 1.85
|diff -u -r1.83 -r1.85
|--- Makefile    16 Jun 2009 15:12:50 -0000    1.83
|+++ Makefile    20 Aug 2009 09:40:13 -0000    1.85
--------------------------
Patching file Makefile using Plan A...
Hunk #1 succeeded at 1.
Hunk #2 succeeded at 17.
Hunk #3 succeeded at 66.
done
$
Reply With Quote
Old 21st November 2009
Sam Sam is offline
Port Guard
 
Join Date: Nov 2009
Posts: 19
Default

Hello,

I just made a test impossible to apply the new path

Code:
Patching file Makefile using Plan A...
Hunk #1 failed at 1.
Hunk #2 failed at 17.
Hunk #3 failed at 66.
3 out of 3 hunks failed--saving rejects to Makefile.rej
done
Reply With Quote
Old 21st November 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,052
Default

Here is the patched Makefile
Attached Files
File Type: txt patched.Makefile.for.Sam.txt (2.7 KB, 59 views)
Reply With Quote
Old 21st November 2009
Sam Sam is offline
Port Guard
 
Join Date: Nov 2009
Posts: 19
Default

Hello

I replace the Makefile with your file?
Reply With Quote
Old 21st November 2009
Sam Sam is offline
Port Guard
 
Join Date: Nov 2009
Posts: 19
Default

Hello

Thank you very much
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
error code 1 whie make install gnome mtm0 NetBSD General 3 4th September 2009 11:56 AM
Error gnome darken FreeBSD Installation and Upgrading 3 27th July 2008 12:21 PM
porting gnome got samba error. bsdnewbie999 OpenBSD General 2 19th June 2008 02:06 AM
Message alerts? ocicat Feedback and Suggestions 2 2nd May 2008 03:25 PM


All times are GMT. The time now is 03:50 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick