Hi,

I am trying to package SOGo for Nix/NixOS. This involves some hacking of gnustep because Nix follows it’s own kind of FHS by design. Everything works quite well now, and my efforts can be viewed at https://github.com/layus/nixpkgs/commits/sogo-init

Now, when I start SOGo, it is not able to serve static resources. The log shows lines such as the following one, and the page rendering is beyond scrambled.

|Jan 31 08:58:13 .sogod-wrapped [9484]: localhost "GET /.woa/WebServerResources/css/theme-default.css HTTP/1.1" 404 145/0 0.021 - - 0 |

The right file in this case is in |/nix/store/m49bq6pp3rkaw0lsli2pnq62b0q8n2v4-SOGo-4.0.4/lib/GNUstep/SOGo/WebServerResources/css/theme-default.css|

With strace, we can see that SOGo looks at sensible prefixes, but not for the right suffix. Namely, it looks for |WebServerResources/css.lproj/theme-default.css| and |WebServerResources/theme-default.css| but not for |WebServerResources/css/theme-default.css| which would be the right location and coincidentally also happens to be the exact suffix in the requested url above.

Has this kind of issue already surfaced or is it specific to Nix packaging ?

PS: It should be quite obvious from the logs, but this is SOGo 4.0.4.

|stat( "/home/user/GNUstep/Library/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat("/nix/store/8k46asb5kgisfpgrgmh2idp95kl53jmk-gnustep-make-2.7.0/local/lib/GNUstep/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/f4fy29c57vhjg5d8k79jx37nssa1z3ih-gnustep-base-1.25.1/lib/GNUstep/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/m49bq6pp3rkaw0lsli2pnq62b0q8n2v4-SOGo-4.0.4/lib/GNUstep/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/8k46asb5kgisfpgrgmh2idp95kl53jmk-gnustep-make-2.7.0/lib/GNUstep/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/home/user/GNUstep/Library/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat("/nix/store/8k46asb5kgisfpgrgmh2idp95kl53jmk-gnustep-make-2.7.0/local/lib/GNUstep/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/f4fy29c57vhjg5d8k79jx37nssa1z3ih-gnustep-base-1.25.1/lib/GNUstep/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/m49bq6pp3rkaw0lsli2pnq62b0q8n2v4-SOGo-4.0.4/lib/GNUstep/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/8k46asb5kgisfpgrgmh2idp95kl53jmk-gnustep-make-2.7.0/lib/GNUstep/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/home/user/GNUstep/Library/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat("/nix/store/8k46asb5kgisfpgrgmh2idp95kl53jmk-gnustep-make-2.7.0/local/lib/GNUstep/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/f4fy29c57vhjg5d8k79jx37nssa1z3ih-gnustep-base-1.25.1/lib/GNUstep/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/m49bq6pp3rkaw0lsli2pnq62b0q8n2v4-SOGo-4.0.4/lib/GNUstep/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/8k46asb5kgisfpgrgmh2idp95kl53jmk-gnustep-make-2.7.0/lib/GNUstep/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/home/user/GNUstep/Library/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat("/nix/store/8k46asb5kgisfpgrgmh2idp95kl53jmk-gnustep-make-2.7.0/local/lib/GNUstep/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/f4fy29c57vhjg5d8k79jx37nssa1z3ih-gnustep-base-1.25.1/lib/GNUstep/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/m49bq6pp3rkaw0lsli2pnq62b0q8n2v4-SOGo-4.0.4/lib/GNUstep/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/8k46asb5kgisfpgrgmh2idp95kl53jmk-gnustep-make-2.7.0/lib/GNUstep/SOGo/WebServerResources/css.lproj/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/home/user/GNUstep/Library/SOGo/WebServerResources/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat("/nix/store/8k46asb5kgisfpgrgmh2idp95kl53jmk-gnustep-make-2.7.0/local/lib/GNUstep/SOGo/WebServerResources/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/f4fy29c57vhjg5d8k79jx37nssa1z3ih-gnustep-base-1.25.1/lib/GNUstep/SOGo/WebServerResources/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/m49bq6pp3rkaw0lsli2pnq62b0q8n2v4-SOGo-4.0.4/lib/GNUstep/SOGo/WebServerResources/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/8k46asb5kgisfpgrgmh2idp95kl53jmk-gnustep-make-2.7.0/lib/GNUstep/SOGo/WebServerResources/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/home/user/GNUstep/Library/SOGo/WebServerResources/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat("/nix/store/8k46asb5kgisfpgrgmh2idp95kl53jmk-gnustep-make-2.7.0/local/lib/GNUstep/SOGo/WebServerResources/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/f4fy29c57vhjg5d8k79jx37nssa1z3ih-gnustep-base-1.25.1/lib/GNUstep/SOGo/WebServerResources/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/m49bq6pp3rkaw0lsli2pnq62b0q8n2v4-SOGo-4.0.4/lib/GNUstep/SOGo/WebServerResources/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) stat( "/nix/store/8k46asb5kgisfpgrgmh2idp95kl53jmk-gnustep-make-2.7.0/lib/GNUstep/SOGo/WebServerResources/theme-default.css", 0x7ffc539def40) = -1 ENOENT (No such file or directory) |

Regards,

— Layus.

​
--
[email protected]
https://inverse.ca/sogo/lists

Reply via email to