Skip to content

Commit b22909a

Browse files
authored
kdePackages: Gear 25.04.0 -> 25.04.1 (#405214)
2 parents f3e80c7 + 0fe619a commit b22909a

File tree

3 files changed

+771
-777
lines changed

3 files changed

+771
-777
lines changed

maintainers/scripts/kde/generate-sources.py

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def to_sri(hash):
4646

4747
@click.command
4848
@click.argument(
49-
"set",
49+
"pkgset",
5050
type=click.Choice(["frameworks", "gear", "plasma"]),
5151
required=True
5252
)
@@ -71,9 +71,9 @@ def to_sri(hash):
7171
type=str,
7272
default=None,
7373
)
74-
def main(set: str, version: str, nixpkgs: pathlib.Path, sources_url: str | None):
74+
def main(pkgset: str, version: str, nixpkgs: pathlib.Path, sources_url: str | None):
7575
root_dir = nixpkgs / "pkgs/kde"
76-
set_dir = root_dir / set
76+
set_dir = root_dir / pkgset
7777
generated_dir = root_dir / "generated"
7878
metadata = utils.KDERepoMetadata.from_json(generated_dir)
7979

@@ -82,7 +82,7 @@ def main(set: str, version: str, nixpkgs: pathlib.Path, sources_url: str | None)
8282
"frameworks": f"frameworks/{version}/",
8383
"gear": f"release-service/{version}/src/",
8484
"plasma": f"plasma/{version}/",
85-
}[set]
85+
}[pkgset]
8686
sources_url = f"https://download.kde.org/stable/{set_url}"
8787

8888
client = httpx.Client()
@@ -91,6 +91,7 @@ def main(set: str, version: str, nixpkgs: pathlib.Path, sources_url: str | None)
9191
bs = bs4.BeautifulSoup(sources.text, features="html.parser")
9292

9393
results = {}
94+
projects_to_update_rust = set()
9495
for item in bs.select("tr")[3:]:
9596
link = item.select_one("td:nth-child(2) a")
9697
if not link:
@@ -101,6 +102,9 @@ def main(set: str, version: str, nixpkgs: pathlib.Path, sources_url: str | None)
101102
if project_name not in metadata.projects_by_name:
102103
print(f"Warning: unknown tarball: {project_name}")
103104

105+
if project_name in PROJECTS_WITH_RUST:
106+
projects_to_update_rust.add(project_name)
107+
104108
if version_and_ext.endswith(".sig"):
105109
continue
106110

@@ -126,19 +130,8 @@ def main(set: str, version: str, nixpkgs: pathlib.Path, sources_url: str | None)
126130
pkg_dir = set_dir / project_name
127131
pkg_file = pkg_dir / "default.nix"
128132

129-
if project_name in PROJECTS_WITH_RUST:
130-
print(f"Updating cargoDeps hash for {set}/{project_name}...")
131-
subprocess.run([
132-
"nix-update",
133-
f"kdePackages.{project_name}",
134-
"--version",
135-
"skip",
136-
"--override-filename",
137-
pkg_file
138-
])
139-
140133
if not pkg_file.exists():
141-
print(f"Generated new package: {set}/{project_name}")
134+
print(f"Generated new package: {pkgset}/{project_name}")
142135
pkg_dir.mkdir(parents=True, exist_ok=True)
143136
with pkg_file.open("w") as fd:
144137
fd.write(LEAF_TEMPLATE.render(pname=project_name) + "\n")
@@ -149,9 +142,20 @@ def main(set: str, version: str, nixpkgs: pathlib.Path, sources_url: str | None)
149142

150143
sources_dir = generated_dir / "sources"
151144
sources_dir.mkdir(parents=True, exist_ok=True)
152-
with (sources_dir / f"{set}.json").open("w") as fd:
145+
with (sources_dir / f"{pkgset}.json").open("w") as fd:
153146
json.dump(results, fd, indent=2)
154147

148+
for project_name in projects_to_update_rust:
149+
print(f"Updating cargoDeps hash for {pkgset}/{project_name}...")
150+
subprocess.run([
151+
"nix-update",
152+
f"kdePackages.{project_name}",
153+
"--version",
154+
"skip",
155+
"--override-filename",
156+
pkg_file
157+
])
158+
155159

156160
if __name__ == "__main__":
157161
main() # type: ignore

pkgs/kde/gear/falkon/default.nix

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,10 @@
55
qtwebengine,
66
qttools,
77
python3Packages,
8-
fetchpatch,
98
}:
109
mkKdeDerivation {
1110
pname = "falkon";
1211

13-
# Fix crash on startup
14-
# FIXME: remove in 25.04.1
15-
patches = [
16-
(fetchpatch {
17-
url = "https://invent.kde.org/network/falkon/-/commit/31ba9472369256804400a2db36b3dca3b4be2d73.patch";
18-
hash = "sha256-jLJjL4Bp03aZfM/OPXZzgL56T0C/2hHSzNERpbTitzw=";
19-
})
20-
];
21-
2212
extraNativeBuildInputs = [
2313
qttools
2414
qtwebchannel

0 commit comments

Comments
 (0)