Skip to content

microsoft-edge: refresh package#421185

Closed
Soveu wants to merge 1 commit intoNixOS:masterfrom
Soveu:msedge
Closed

microsoft-edge: refresh package#421185
Soveu wants to merge 1 commit intoNixOS:masterfrom
Soveu:msedge

Conversation

@Soveu
Copy link
Contributor

@Soveu Soveu commented Jun 30, 2025

As this package from 25.05 is unmaintained, I can step up to be responsible for it.
Basically, I started from scratch, it turned out to be relatively easy.

Edge also required the libxml2 workaround, see those:

Testing locally, I was able to successfully sync Edge with my company account and also I don't see any major errors in logs.

Things done

Updated version to 138.0.3351.55-1, use autoPatchelfHook and qt6.wrapQtAppsHook, remove the packaged QT5 shim.

  • 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/)
  • Nixpkgs 25.11 Release Notes (or backporting 24.11 and 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 24.11 and 25.05 NixOS Release notes)
    • (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, pkgs/README.md, maintainers/README.md and other contributing documentation in corresponding paths.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Jun 30, 2025
@Daholli
Copy link
Member

Daholli commented Jun 30, 2025

I'm a bit confused with this change, I'll have a look when I'm at my PC.

@Soveu
Copy link
Contributor Author

Soveu commented Jun 30, 2025

I'm a bit confused with this change, I'll have a look when I'm at my PC.

What confuses you?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather not move back to the rec could you keep the finalAttrs

Comment on lines 290 to 139
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure you should just remove all these people. They all clearly have interest in the package and are active.

See:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, then it is interesting why after update to 25.05 I got message that the package is unmaintained 🤔

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The package was briefly removed due to there only being one maintainer. Then all these lovely people stepped up :D

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you from not removing us from the maintainers list 🙂

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we at least replace the update script :p

@maeve-oake
Copy link
Contributor

The package is not unmaintained. The current maintainers were added after the package was removed for lack of maintenance recently in the commits that Isabel linked above

Please feel free to add yourself as a new maintainer though!

Comment on lines +23691 to +23695
Soveu = {
name = "Soveu";
github = "Soveu";
githubId = 34382234;
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in its own commit before the commit altering microsoft-edge. The commit should be called maintainers: add Soveu see https://github.com/NixOS/nixpkgs/blob/master/maintainers/README.md#how-to-become-a-maintainer for more detail.

@Soveu
Copy link
Contributor Author

Soveu commented Jun 30, 2025

The package is not unmaintained. The current maintainers were added after the package was removed for lack of maintenance recently in the commits that Isabel linked above

Please feel free to add yourself as a new maintainer though!

oh, then I'm late to the party 😅 Sorry for the confusion

@Daholli
Copy link
Member

Daholli commented Jun 30, 2025

you can just change the PR to instead update to 138.0.3351.55 I was out for the weekend and didn't have time to update the version yet

@nixpkgs-ci nixpkgs-ci bot added the 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` label Jun 30, 2025
in

stdenvNoCC.mkDerivation (finalAttrs: {
stdenv.mkDerivation rec {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also should note that this was specifically moved to stdenvNoCC (see #415521) is there a reason for moving it back?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think he started more or less from a blank file and was not aware we already took over maintaining the package

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dependency is needed for stdenv.cc.cc in buildDependencies

@Daholli
Copy link
Member

Daholli commented Jun 30, 2025

And since we aren't the original code owners, maybe it does make sense to use autopatchelf instead, but for that I want to first understand why it was done this way deliberately

@Soveu
Copy link
Contributor Author

Soveu commented Jun 30, 2025

you can just change the PR to instead update to 138.0.3351.55 I was out for the weekend and didn't have time to update the version yet

There is a lot more going on for this package - basically I assumed it was still unmaintained and started from scratch, because the original derivation was... very convoluted to say the least

@Daholli
Copy link
Member

Daholli commented Jun 30, 2025

you can just change the PR to instead update to 138.0.3351.55 I was out for the weekend and didn't have time to update the version yet

There is a lot more going on for this package - basically I assumed it was still unmaintained and started from scratch, because the original derivation was... very convoluted to say the least

Yeah there is a lot going on, but since presumably most of it was done deliberately I would be careful before just changing it

@alyssais alyssais requested a review from a team June 30, 2025 09:01
url = "mirror://gnome/sources/libxml2/${lib.versions.majorMinor version}/libxml2-${version}.tar.xz";
hash = "sha256-J3KUyzMRmrcbK8gfL0Rem8lDW4k60VuyzSsOhZoO6Eo=";
};
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going out of our way to use a known vulnerable libxml2 version in a web browser does not seem like a good idea to me.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreeing on behalf of @NixOS/security.

@ulrikstrid Please review and respond to this PR.

@Bricklou
Copy link
Contributor

you can just change the PR to instead update to 138.0.3351.55 I was out for the weekend and didn't have time to update the version yet

Hey, where did you see that 138.0.3351.55 was available? I don't see it in this list.

mv "$icon_file" "$logo_output_path/microsoft-edge.png"
done

# "--simulate-outdated-no-au" disables auto updates and browser outdated popup
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not leave this out, since otherwise you keep get annoying popups

@Soveu Soveu mentioned this pull request Jun 30, 2025
13 tasks
@Daholli
Copy link
Member

Daholli commented Jun 30, 2025

could we just reject this PR and then just open a PR to refactor potentially convoluted parts without using the libxml workaround?

@Soveu
Copy link
Contributor Author

Soveu commented Jun 30, 2025

you can just change the PR to instead update to 138.0.3351.55 I was out for the weekend and didn't have time to update the version yet

Hey, where did you see that 138.0.3351.55 was available? I don't see it in this list.

Hmm, while looking for newest version I just look directly inside https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/

@Soveu
Copy link
Contributor Author

Soveu commented Jun 30, 2025

could we just reject this PR and then just open a PR to refactor potentially convoluted parts without using the libxml workaround?

Yeah

@Daholli Daholli closed this Jun 30, 2025
@Bricklou
Copy link
Contributor

Bricklou commented Jun 30, 2025

On my side, I'm not sure about this refactor. A lot of dependencies seems to be removed (like all the qt plugins or all the wayland/ozone packages) without really knowing the consequences afterward. (Please explain me if I missed something)

@Daholli
Copy link
Member

Daholli commented Jun 30, 2025

I will go back to work... my phone started blowing up, @Soveu if you want to, you could open an Issue, then we can discuss potential refactor steps there

@Bricklou
Copy link
Contributor

Bricklou commented Jun 30, 2025

i suggest we do open 2 PRs :

  • one for the 138.0.3351.55 update
  • another one dedicated on the package refactor (after being discussed in an issue)

@Soveu
Copy link
Contributor Author

Soveu commented Jun 30, 2025

I will go back to work... my phone started blowing up, @Soveu if you want to, you could open an Issue, then we can discuss potential refactor steps there

Sure, no pressure 😉

On my side, I'm not sure about this refactor. A lot of dependencies seems to be removed (like all the qt plugins or all the wayland/ozone packages) without really knowing the consequences afterward. (Please explain me if I missed something)

It was not needed to make it work and as far as I know, wayland/ozone is only necessary for nvidia users? And even then I'm not sure if they really need it on newer GPU drivers.

@Bricklou
Copy link
Contributor

Bricklou commented Jun 30, 2025

It was not needed to make it work and as far as I know, wayland/ozone is only necessary for nvidia users? And even then I'm not sure if they really need it on newer GPU drivers.

Hum, no ? Wayland/Ozone isn't tied to nvidia, it is there to actually run the browser in DE using wayland (like gnome or KDE).
Though, i don't know the details about the package requirements by itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 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. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants