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

TDE, again! #239953

Closed
wants to merge 13 commits into from
Closed

TDE, again! #239953

wants to merge 13 commits into from

Conversation

AndersonTorres
Copy link
Member

@AndersonTorres AndersonTorres commented Jun 26, 2023

Description of changes

My personal reminder of #18715
Will close #108967 (or I'll die trying)

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 23.11 Release Notes (or backporting 23.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.

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin labels Jun 26, 2023
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin and removed 10.rebuild-darwin: 1 10.rebuild-darwin: 1-10 labels Jul 31, 2023
@AndersonTorres
Copy link
Member Author

AndersonTorres commented Aug 7, 2023

Logging the progress.

Then

As I said before, I'm restarting and restudying my previous work.

2023-08-07

Some compilation errors were catched.
I silenced them by setting hardeningDisable.
I should report this to upstream.

2023-08-18

I didn't hit the goal of one package per week. It forces me to try 3 today.

I need to generate all hashes upfront, creating an update script for this.

2023-08-29

The upstream project provides flat SHA512 hashes for each tarball. It obviates the need of TOFUing them, and makes it easier to script this job. With that in mind, I have created a confusing Python script in the most quick and dirty way: speedrunning tutorials on re and bs4.BeautifulSoup.

The only other problem is how to convert these hashes into SRI format...

2023-08-31

The updater script is working as expected, at least for tde.tqt3.

2023-09-03

TDE provides some scripts that compile, build and install it to many Linux distros and FreeBSD.
Grabbing some links to sneak on them later:

https://mirror.git.trinitydesktop.org/gitea/TDE
https://mirror.git.trinitydesktop.org/gitea/TDE/tde-packaging

2023-09-05

tde-cmake is a hard dependency of (at least) arts. However it tries to install things at CMAKE_ROOT, which is not encouraged by Nixpkgs.

I tried to seek the nixpkgs codes, but very few of them worry about CMAKE_ROOT, and those who do are a bit obscure to me.
Maybe it will require upstream coordination.

2023-10-07

I will simply ignore its cmakelists installation script and use a setup-hook, as every normal Nixpkgs hacker.

2023-10-07

tde-cmake should be installed way earlier, as second package.
Also I am falling on the broken paths problem on pkgconfig files.

#144170

@AndersonTorres
Copy link
Member Author

AndersonTorres commented Dec 1, 2023

Then

tqtinterface is the current gatekeeper.

2023-11-30

A questionable patch was introduced, and now arts can be built!

Unbfortunately, dbus-tqt does not find tqt. The patch was wrong after all.

Time to contact the TDEvelopers!

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nixpkgs-tde-a-new-project-pre-alpha/7308/10

Trinity Desktop Environment is a fork of KDE 3.5, intended to be the logical
continuation of 3.x series. Its aim is to feature a rich desktop environment for
Unix-like operating systems with a primary goal of retaining a traditional,
efficient and productive user interface.
Create that ubiquitous `lib.makeScope pkgs.newScope(self: { . . . })` skeleton.
This is a function that takes a TDE component and returns data suitable for a
`mkDerivation` prototype.

The idea is that the TDE components are grouped in a single machine-generated
file, `sources.nix`; this function extracts the desired component from it.
Just a skeleton.
generate-tde-sources.nix.py is a Python script that parses the TDE mirror
download page and throws to stdin a Nix expression in which we have the main
info about the TDE sources, namely,

- pname
- version
- group (as defined by TDE team)
- hash (SRI-encoded SHA512)

The script is usable, albeit primitive.
An experiment on automated generation.
Warning: it includes a very questionable patch that uses black magic to
circumvent the bugs on pkg-config generation.
@AndersonTorres
Copy link
Member Author

I will restart this in Museoa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: fetch 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package request: Trinity Desktop Environment
2 participants