Change app names from <x> to <x>-flatpak
pkgs=($(koji list-pkgs --tag=f39-flatpak --quiet | awk '{ print $1 }' | grep -E -v -- '-(runtime|sdk)')) suffixed_pkgs=($(koji list-pkgs --tag=f39-flatpak --quiet | awk '{ print $1 "-flatpak" }' | grep -E -v -- '-(runtime|sdk)')) koji add-pkg --owner=releng f39-flatpak "${suffixed_pkgs[@]}" koji add-pkg f39-flatpak "${suffixed_pkgs[@]}" koji remove-pkg f39-flatpak "${pkgs[@]}"
Set the dist tag in the build tags (See #11624) [EDIT: fixed missing % in dist definition. EDIT: fixed escaping]
koji edit-tag f39-flatpak-app-build \ -x rpm.macro.dist='%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}%{distcore}%{?with_bootstrap:%{__bootstrap}}' \ -x rpm.macro.distcore='.fc%{fedora}app1' koji edit-tag f39-flatpak-runtime-build \ -x rpm.macro.dist='%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}%{distcore}%{?with_bootstrap:%{__bootstrap}}' \ -x rpm.macro.distcore='.fc%{fedora}runtime'
.fc%{fedora}app1
.fc%{fedora}app
Fix and adjust Flatpak architectures (See #11625)
for tag in fc39-flatpak-container-build fc39-flatpak-app-build fc39-flatpak-runtime-build fc39-flatpak-runtime-packages fc39-flatpak-app; do koji edit-tag $tag --arches="x86_64 aarch64 ppc64le" done
Add _without_mingw macro to f39-flatpak-app-build - this matches what we did for the flatpak-common module. [EDIT: added]
koji edit-tag f39-flatpak-app-build \ -x rpm.macro._without_mingw=1
Does anything need to be changed so that future fedpkg request-repo --namespace=flatpaks requests create $NAME-flatpak packages in koji instead of $NAME?
fedpkg request-repo --namespace=flatpaks
Metadata Update from @phsmoura: - Issue tagged with: low-gain, low-trouble, ops
Yeah - AFAIK, think the addition is done at:
https://pagure.io/fedora-infra/ansible/blob/main/f/roles/bodhi2/backend/templates/owner-sync-pagure.j2#_385
The bugzilla component addition is done at:
https://pagure.io/fedora-infra/toddlers/blob/main/f/toddlers/plugins/distgit_bugzilla_sync.py#_225
though (we should double check at the next flatpak sig meeting), I think we're doing Flatpak specific bugs in gitlab, and not bugzilla, and don't want $NAME-flatpak bugzilla components.
Change app names from <x> to <x>-flatpak pkgs=($(koji list-pkgs --tag=f39-flatpak --quiet | awk '{ print $1 }' | grep -E -v -- '-(runtime|sdk)')) suffixed_pkgs=($(koji list-pkgs --tag=f39-flatpak --quiet | awk '{ print $1 "-flatpak" }' | grep -E -v -- '-(runtime|sdk)')) koji add-pkg --owner=releng f39-flatpak "${suffixed_pkgs[@]}" koji add-pkg f39-flatpak "${suffixed_pkgs[@]}" koji remove-pkg f39-flatpak "${pkgs[@]}"
Done.
Set the dist tag in the build tags (See #11624) [EDIT: fixed missing % in dist definition] koji edit-tag f39-flatpak-app-build \ -x rpm.macro.dist=''%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}%{distcore}%{?with_bootstrap:%{__bootstrap}}" \ -x rpm.macro.distcore='.fc%{fedora}app1' koji edit-tag f39-flatpak-runtime-build \ -x rpm.macro.dist=''%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}%{distcore}%{?with_bootstrap:%{__bootstrap}}" \ -x rpm.macro.distcore='.fc%{fedora}runtime' %distcore is introduced for rawhide in https://src.fedoraproject.org/rpms/fedora-release/pull-request/275 - for f39, I don't really want to start fooling around with the fedora-release macros at this point, so just doing it locally in these tags. This has .fc%{fedora}app1 not .fc%{fedora}app because we need to rebuild everything in .fc39 because of the arch-adjustment. The idea is that if we need to do mass-rebuilds of Flatpak packages, we use .fc39app1/.fc39app2/... - same idea as .eln%{eln}.
koji edit-tag f39-flatpak-app-build \ -x rpm.macro.dist=''%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}%{distcore}%{?with_bootstrap:%{__bootstrap}}" \ -x rpm.macro.distcore='.fc%{fedora}app1' koji edit-tag f39-flatpak-runtime-build \ -x rpm.macro.dist=''%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}%{distcore}%{?with_bootstrap:%{__bootstrap}}" \ -x rpm.macro.distcore='.fc%{fedora}runtime'
There is some funny escaping there, I am ending with bash: !?distprefix0:%{?: event not found will debug it later.
bash: !?distprefix0:%{?: event not found
Fix and adjust Flatpak architectures (See #11625) for tag in fc39-flatpak-container-build fc39-flatpak-app-build fc39-flatpak-runtime-build fc39-flatpak-runtime-packages fc39-flatpak-app; do koji edit-tag $tag --arches="x86_64 aarch64 ppc64le" done
done
Add _without_mingw macro to f39-flatpak-app-build - this matches what we did for the flatpak-common module. [EDIT: added] koji edit-tag f39-flatpak-app-build \ -x rpm.macro._without_mingw=1 done
koji edit-tag f39-flatpak-app-build \ -x rpm.macro._without_mingw=1 done
Edited to fix.
Done
Metadata Update from @humaton: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Something seems to have gone wrong when adding the -flatpak suffixed packages to koji and now everything has a -flatpak entry and a -flatpak-flatpak entry. E.g. 0ad-flatpak and 0ad-flatpak-flatpak
See https://koji.fedoraproject.org/koji/search?match=glob&type=package&terms=*flatpak
Metadata Update from @kalev: - Issue status updated to: Open (was: Closed)
Also, new "package" requests are not adding the $NAME-flatpak package to koji:
https://koji.fedoraproject.org/koji/taskinfo?taskID=105215388
$ koji list-pkgs --tag f39-flatpak-updates-candidate [snip] fractal-flatpak-flatpak f39-flatpak releng lokalize-flatpak-flatpak f39-flatpak releng gmult-flatpak-flatpak f39-flatpak releng genius-flatpak-flatpak f39-flatpak releng tuxmath-flatpak-flatpak f39-flatpak releng mkvtoolnix f39-flatpak yselkowitz foliate f39-flatpak harrymichal kommit f39-flatpak yselkowitz loupe f39-flatpak yselkowitz
I've removed all the flatpak-flatpak ones.
The pkg name added in koji I think will need adjustments in roles/bodhi2/backend/templates/owner-sync-pagure.j2
PR's welcome. ;)
The following new entries still require renaming:
mkvtoolnix f39-flatpak yselkowitz foliate f39-flatpak harrymichal kommit f39-flatpak yselkowitz loupe f39-flatpak yselkowitz gbrainy f39-flatpak yselkowitz kirigami-gallery f39-flatpak yselkowitz
Attempted at https://pagure.io/fedora-infra/ansible/pull-request/1595
renamed all those packages.
I will try and look at the pr later today, but it might not be until monday.
One more (hopefully last) entry requires fixing, after which https://pagure.io/fedora-infra/ansible/pull-request/1595 should prevent this going forward:
waycheck f39-flatpak yselkowitz
I have one more too:
snapshot
Both fixed.
Thanks, Kevin!
Commit d60d7a0e fixes this issue
Log in to comment on this ticket.