[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBundle and Frameworks

From: Ivan Vučica
Subject: Re: NSBundle and Frameworks
Date: Mon, 04 Dec 2017 23:05:38 +0000

It feels wrong that you would need this. In which bundle is GSMime.plist located? Is it in the WebObjects.framework?

What's the value of bundlePath on line 804?

Your change, if it's doing the right thing, seems to be in a totally wrong place. That chunk of code deals with Versions, according to the comment on lines 801-803; so with your change, that comment would be quite misleading.

I think I might finally get around to play with GNUstep tomorrow a bit on Debian. Can you provide closer repro steps? Is it enough to build gsweb's 'hello' example to reproduce this?

I'd also suggest pulling the latest code from Git... you seem to have an expanded $Date$ and $Revision$ macro, which I don't think Git cares about or would expand.

On Sun, Dec 3, 2017 at 4:47 AM David Wetzel <address@hidden> wrote:

I don't know if I shot my GNUstep installation by updating some FreeBSD ports, but I had to add this to make GSWeb find MIME.plist

My frameworks are in


The lib in


This was just a fast hack. I feel like we should have a nicer refactored version of

+ _addFrameworkFromClass:

Is anybody seeing this too?



*** /home/dave/libs-base/Source/NSBundle.m      Sat Dec  2 23:34:52 2017
--- NSBundle.m  Sat Dec  2 23:39:46 2017
*** 28,34 ****

     <title>NSBundle class reference</title>
!    $Date$ $Revision$

  #define       EXPOSE_NSBundle_IVARS   1
--- 28,34 ----

     <title>NSBundle class reference</title>
!    $Date: 2016-06-27 20:06:12 +0100 (Mon, 27 Jun 2016) $ $Revision: 39933 $

  #define       EXPOSE_NSBundle_IVARS   1
*** 804,809 ****
--- 804,818 ----
          bundlePath = [bundlePath stringByDeletingLastPathComponent];

          pathComponent = [bundlePath lastPathComponent];
+         if ([pathComponent isEqual: @"Library"])
+           {
+             bundlePath = [bundlePath stringByAppendingPathComponent: @"Frameworks"];
+             bundlePath = [bundlePath stringByAppendingPathComponent:
+                 [NSString stringWithFormat: @"address@hidden@", name, @".framework"]];
+           /* Try creating the bundle.  */
+                   if (bundlePath)
+                     bundle = [[self alloc] initWithPath: bundlePath];
+    }
            if ([pathComponent isEqual: @"Versions"])
              bundlePath = [bundlePath stringByDeletingLastPathComponent];

Gnustep-dev mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]