Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing GNUstep using gnustep-web-install-dev seems to produce a broken GNUstep installation #21

Closed
IOOI-SqAR opened this issue Oct 15, 2024 · 2 comments

Comments

@IOOI-SqAR
Copy link
Contributor

Hi,

after temporarily overcoming #18 , #19 and #20 , gnustep-web-install-dev finished successfully.

However, the resulting installation of GNUstep seems to have issues: in gnustep/apps-gworkspace#37 (comment) @rmottola mentions that my GNUstep installation is likely broken, I was not able to get neither GWorkspace.app nor Gorm.app to work:

After building and installing GWorkspace.app like this:

cd apps-gworkspace/
./configure
make
sudo -E make install

I get a somewhat broken state of the app:

lars@Ubuntu-2404-VirtualBox:~$ GWorkspace 
2024-10-15 03:10:25.675 GWorkspace[2671:2671] File NSData.m: 279. In BOOL readContentsOfFile(NSString *, void **, off_t *, NSZone *) Open ((null)) attempt failed - bad path
2024-10-15 03:10:25.681 GWorkspace[2671:2671] File NSData.m: 279. In BOOL readContentsOfFile(NSString *, void **, off_t *, NSZone *) Open ((null)) attempt failed - bad path
2024-10-15 03:10:25.682 GWorkspace[2671:2671] File NSData.m: 279. In BOOL readContentsOfFile(NSString *, void **, off_t *, NSZone *) Open ((null)) attempt failed - bad path
2024-10-15 03:10:25.966 fswatcher[2763:2763] register client 2
2024-10-15 03:10:26.029 GWorkspace[2671:2671] no icon in cache for key /home/lars/.Trash and no WS icon for /home/lars/.Trash
2024-10-15 03:10:26.029 GWorkspace[2671:2671] Warning: No icon found for /home/lars/.Trash
Calling [NSButtonCell -state] with incorrect signature.  Method has q16@0:8 (q16@0:8), selector has Q16@0:8
Calling [NSButtonCell -state] with incorrect signature.  Method has q16@0:8 (q16@0:8), selector has Q16@0:8
Calling [NSButtonCell -state] with incorrect signature.  Method has q16@0:8 (q16@0:8), selector has Q16@0:8
Calling [NSButtonCell -state] with incorrect signature.  Method has q16@0:8 (q16@0:8), selector has Q16@0:8
Calling [NSButtonCell -state] with incorrect signature.  Method has q16@0:8 (q16@0:8), selector has Q16@0:8
2024-10-15 03:10:26.531 GWorkspace[2671:2671] no image found for HomeDirectory
2024-10-15 03:10:26.541 GWorkspace[2671:2671] Exception occurred while loading model: Tried to add nil value for key 'HomeDirectory' to dictionary
2024-10-15 03:10:26.541 GWorkspace[2671:2671] Failed to load Gorm
Calling [NSButtonCell -state] with incorrect signature.  Method has q16@0:8 (q16@0:8), selector has Q16@0:8
Calling [NSButtonCell -state] with incorrect signature.  Method has q16@0:8 (q16@0:8), selector has Q16@0:8
Calling [NSButtonCell -state] with incorrect signature.  Method has q16@0:8 (q16@0:8), selector has Q16@0:8
Calling [NSButtonCell -state] with incorrect signature.  Method has q16@0:8 (q16@0:8), selector has Q16@0:8
Calling [NSButtonCell -state] with incorrect signature.  Method has q16@0:8 (q16@0:8), selector has Q16@0:8
2024-10-15 03:10:26.811 GWorkspace[2671:2671] no image found for HomeDirectory
2024-10-15 03:10:26.814 GWorkspace[2671:2671] Exception occurred while loading model: Tried to add nil value for key 'HomeDirectory' to dictionary
2024-10-15 03:10:26.814 GWorkspace[2671:2671] Failed to load Gorm
2024-10-15 03:10:26.815 GWorkspace[2671:2671] Preferences: failed to load PrefWindow!
2024-10-15 03:10:27.386 GWorkspace[2671:2671] no image found for HomeDirectory
2024-10-15 03:10:27.389 GWorkspace[2671:2671] Problem posting <GSNotification: 0x5ff17ac7a968> Name: NSApplicationWillFinishLaunchingNotification Object: <NSApplication: 0x5ff17acb0588> Info: (null): <NSException: 0x5ff17cfd3a38> NAME:NSInvalidArgumentException REASON:Tried to add nil value for key 'HomeDirectory' to dictionary INFO:{}
2024-10-15 03:10:28.035 GWorkspace[2671:2671] Unable to obtain lock (null)
2024-10-15 03:13:46.348 GWorkspace[2671:2671] no image found for HomeDirectory

VirtualBox_Ubuntu 24 04_15_10_2024_03_15_43

The same goes on for Gorm.app too:

cd apps-gorm/
make
sudo -E make install

trying to run Gorm.app:

lars@Ubuntu-2404-VirtualBox:~/GNUstep-shared/gnustep/apps-gorm$ Gorm 
2024-10-15 10:31:28.243 Gorm[4914:4914] Warning: [NSBundle+bundleForClass:] unable to determine version of library '/usr/GNUstep/System/Library/Libraries/libgnustep-gui.so.0' containing 'NSApplication' for executable '/usr/GNUstep/Local/Applications/Gorm.app/Gorm'
Calling [NSFormCell -state] with incorrect signature.  Method has q16@0:8 (q16@0:8), selector has Q16@0:8
Calling [NSFormCell -state] with incorrect signature.  Method has q16@0:8 (q16@0:8), selector has Q16@0:8
Calling [NSButtonCell -state] with incorrect signature.  Method has q16@0:8 (q16@0:8), selector has Q16@0:8
Calling [NSButtonCell -state] with incorrect signature.  Method has q16@0:8 (q16@0:8), selector has Q16@0:8
2024-10-15 10:31:36.713 Gorm[4914:4914] ClassInformation.plist missing from resources

I installed GNUstep onto a fresh copy of Ubuntu 24.04 without any bells and whistles, e.g. no special configuration.

If you need more information please let me know.

Kind regards,

Lars

@rmottola
Copy link
Member

Do you have any new attempts on this?

@IOOI-SqAR
Copy link
Contributor Author

IOOI-SqAR commented Dec 16, 2024

GNUstep was installed like this:

go to https://ubuntu.com/download/desktop and download ubuntu-24.04.1-desktop-amd64.iso

Set up the VM in Vbox

Install tools to enable Guest Additions Install:

sudo apt-get update
sudo apt-get install bzip2
sudo apt-get install gcc
sudo apt-get install make
sudo apt-get install perl

Run autorun.sh from Guest Additions CD image

needed for running gnustep-web-install-dev from web

sudo apt-get install curl
sudo apt-get install git

needed for github access

cd ~/.ssh
touch id_rsa
vi id_rsa

paste the private github key, save and exit

touch id_rsa.pub
vi id_rsa.pub

paste the public github key, save and exit

chmod 600 ~/.ssh/*

ssh-add ~/.ssh/id_rsa

set root user password. Currently needed for gnustep-web-install-dev

sudo su -c passwd

optional: install ntp to avoid clock skew

sudo apt-get install ntp

NEVER: create shared folder between host and guest (GNUstep-shared)

sudo adduser lars vboxsf
sudo chmod 755 GNUstep-shared
cd ~/GNUstep-shared/

the last action which produced a broken installation of GNUstep, because the VirtualBox shared folder functionality changed the owner to root for all git checked out stuff inside ~/GNUstep-shared/. Basically every file was then owned by root which caused problems when opening bundles.

### Moral of the story: Never check out GNUstep sources to a Virtual Box shared folder because it changes file ownership of every checked out file to root.

@gcasa This issue can be closed.

@gcasa gcasa closed this as completed Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants