Skip to content

seafile-server: 11.0.12 -> 12.0.7 - #369550

Closed
melvyn2 wants to merge 4 commits into
NixOS:masterfrom
melvyn2:seafile-12
Closed

melvyn2 wants to merge 4 commits into
NixOS:masterfrom
melvyn2:seafile-12

Conversation

@melvyn2

@melvyn2 melvyn2 commented Dec 31, 2024 •

Copy link
Copy Markdown
Contributor

https://manual.seafile.com/12.0/upgrade/upgrade_notes_for_12.0.x/

Fixes #373705 and #373703

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions Bot added 6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Dec 31, 2024
@ofborg
ofborg Bot requested review from greizgh and schmittlauch December 31, 2024 12:16
@github-actions github-actions Bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Jan 9, 2025
@melvyn2 melvyn2 changed the title seafile-server: 11.0.12 -> 12.0.6 seafile-server: 11.0.12 -> 12.0.7 Jan 14, 2025
@melvyn2
melvyn2 marked this pull request as ready for review January 14, 2025 16:58
@melvyn2

melvyn2 commented Jan 14, 2025

Copy link
Copy Markdown
Contributor Author

Version 12.0.7 is a full non-beta release, so this is ready for testing.

@qxrein

qxrein commented Jan 14, 2025

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 369550


x86_64-linux

⏩ 9 packages marked as broken and skipped:
  • python312Packages.djangosaml2
  • python312Packages.djangosaml2.dist
  • python312Packages.pysaml2
  • python312Packages.pysaml2.dist
  • python313Packages.djangosaml2
  • python313Packages.djangosaml2.dist
  • python313Packages.pysaml2
  • python313Packages.pysaml2.dist
  • seahub
⏩ 2 packages blacklisted:
  • nixos-install-tools
  • tests.nixos-functions.nixos-test
✅ 4 packages built:
  • seafile-server (python312Packages.seaserv)
  • python313Packages.seaserv
  • seafile-client
  • seafile-shared

@qxrein

qxrein commented Jan 14, 2025

Copy link
Copy Markdown
Member

seahub is broken due to a gcc error

@melvyn2

melvyn2 commented Jan 14, 2025

Copy link
Copy Markdown
Contributor Author

As a hack for avoiding the broken pysaml2 derivation, ADFS support could be disabled in the seahub derivation temporarily. I don't think that we have any users who require this feature, but maybe I'm wrong.

@melvyn2

melvyn2 commented Jan 14, 2025

Copy link
Copy Markdown
Contributor Author

seahub is broken due to a gcc error

I'm not running into this (even rebased onto 2f6a15c), could you send a log please?

@qxrein

qxrein commented Jan 14, 2025

Copy link
Copy Markdown
Member

I'm not running into this (even rebased onto 2f6a15c), could you send a log please?

for /by-name/se/seahub
https://paste.rs/obJ0u.txt

@melvyn2

melvyn2 commented Jan 14, 2025 •

Copy link
Copy Markdown
Contributor Author

I'm not running into this (even rebased onto 2f6a15c), could you send a log please?

for /by-name/se/seahub https://paste.rs/obJ0u.txt

This is for an older libsearpc, the one on nixos-unstable is fixed. I'll try to get it backported.
#373788

@qxrein

qxrein commented Jan 14, 2025

Copy link
Copy Markdown
Member

that makes sense

@melvyn2

melvyn2 commented Jan 14, 2025

Copy link
Copy Markdown
Contributor Author

@melvyn2 clear the commit history in one single commit

I don't understand what you're asking

@qxrein

qxrein commented Jan 14, 2025

Copy link
Copy Markdown
Member

nvm sorry i didn't saw that, approving this PR

@qxrein

qxrein commented Jan 15, 2025

Copy link
Copy Markdown
Member

has merge conflits

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jan 15, 2025
@melvyn2 melvyn2 mentioned this pull request Feb 11, 2025
4 of 13 tasks
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Feb 15, 2025
@github-actions github-actions Bot removed the 6.topic: python Python is a high-level, general-purpose programming language. label Apr 5, 2025
@ofborg ofborg Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Apr 5, 2025
@github-actions github-actions Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. and removed 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Apr 5, 2025
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Apr 7, 2025
@ofborg ofborg Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Apr 18, 2025
@melvyn2

melvyn2 commented Apr 18, 2025

Copy link
Copy Markdown
Contributor Author

Merge conflicts should be fixed. Given that integration tests are passing, I'd say this is ready for user testing.

@github-actions github-actions Bot added 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation labels Apr 19, 2025
@melvyn2

melvyn2 commented Apr 19, 2025

Copy link
Copy Markdown
Contributor Author

Now working fine on my own seafile instance.

@melvyn2

melvyn2 commented Apr 20, 2025

Copy link
Copy Markdown
Contributor Author

Failing CI is from a GitHub 429, doesn't seem to be actually caused by this PR.

@melvyn2
melvyn2 marked this pull request as draft April 20, 2025 17:58
@melvyn2

melvyn2 commented Apr 20, 2025 •

Copy link
Copy Markdown
Contributor Author

Drafted pending PR: haiwen/seafile-server#753
For now I'm using this patch applied to seafile-server:

diff --git a/server/seafile-session.c b/server/seafile-session.c
index 7cc59fb..06f0821 100644
--- a/server/seafile-session.c
+++ b/server/seafile-session.c
@@ -116,6 +116,8 @@ load_config (SeafileSession *session, const char *config_file_path)
     const char *private_key = NULL;
     const char *site_root = NULL;
     const char *log_to_stdout = NULL;
+    const char *seahub_host = NULL;
+    const char *seahub_proto = NULL;
 
     config = g_key_file_new ();
     if (!g_key_file_load_from_file (config, config_file_path,
@@ -148,6 +150,8 @@ load_config (SeafileSession *session, const char *config_file_path)
     private_key = g_getenv("JWT_PRIVATE_KEY");
     site_root = g_getenv("SITE_ROOT");
     log_to_stdout = g_getenv("SEAFILE_LOG_TO_STDOUT");
+    seahub_host = g_getenv("SEAFILE_SERVER_HOSTNAME");
+    seahub_proto = g_getenv("SEAFILE_SERVER_PROTOCOL");
 
     if (!private_key) {
         seaf_warning ("Failed to read JWT_PRIVATE_KEY.\n");
@@ -164,7 +168,7 @@ load_config (SeafileSession *session, const char *config_file_path)
     if (!site_root || g_strcmp0 (site_root, "") == 0) {
         site_root = "/";
     }
-    session->seahub_url = g_strdup_printf("http://127.0.0.1:8000%sapi/v2.1/internal", site_root);
+    session->seahub_url = g_strdup_printf("%s://%s%sapi/v2.1/internal", seahub_proto, seahub_host, site_root);
     session->seahub_conn_pool = connection_pool_new ();
 
     if (g_strcmp0 (log_to_stdout, "true") == 0) {

@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jun 9, 2025
@melvyn2

melvyn2 commented Jul 14, 2025

Copy link
Copy Markdown
Contributor Author

As of major version 13: https://manual.seafile.com/13.0/upgrade/upgrade_notes_for_13.0.x/#important-release-changes

Deploying Seafile with binary package is no longer supported for community edition. We recommend you to migrate your existing Seafile deployment to docker based.

I will be moving my own installation to a docker-based setup, as keeping this module working has not been worth the effort. @schmittlauch unless you wish to keep maintaining this module yourself, I will soon file a PR to have it removed, as well as the seafile-server and seahub derivations.

@melvyn2 melvyn2 closed this Jul 14, 2025
@melvyn2
melvyn2 deleted the seafile-12 branch August 19, 2025 16:52
@melvyn2 melvyn2 mentioned this pull request Aug 22, 2025
2 of 13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Request: seahub 11.0.12 → 12.0.7

3 participants