<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 25, 2021 at 1:20 AM <<a href="mailto:ashark@linuxcomp.ru">ashark@linuxcomp.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>> <span style="font-size:15px;white-space:normal">I have no idea why this is all of a sudden a problem for Arch Linux.</span><br><br>In makepkg we do not have origin with project path (see comments in pkgbuild linked in <a href="https://invent.kde.org/sdk/releaseme/-/merge_requests/13" target="_blank">https://invent.kde.org/sdk/releaseme/-/merge_requests/13</a>). We have directory path to which the project was cloned, and it may (and man not) be named as project name. In pkgbuild I want to download and build translations for project, for that I use KDE_L10N_SYNC_TRANSLATIONS=ON. And then cmake module wants to call fetchpo.rb from releaseme. And as it was unable to detect project path (because origin is local path, not matching regex to extract it), it fallbacks to cmake project name: <a href="https://invent.kde.org/frameworks/extra-cmake-modules/-/blob/9f519983d628c7c2a68ee1a8dc7a1cbb83c8f535/kde-modules/KDECMakeSettings.cmake#L321" target="_blank">https://invent.kde.org/frameworks/extra-cmake-modules/-/blob/9f519983d628c7c2a68ee1a8dc7a1cbb83c8f535/kde-modules/KDECMakeSettings.cmake#L321</a>. And currently fetchpo.rb fails to determine the project by that.</div></blockquote><div><br></div><div>I see. It sounds like the basename of the folder is not even guaranteed based on the above statement, in which case it wouldn't even matter if the repository names themselves were unique (instead of just our identifier for them) as your distribution tooling would potentially discard them.</div><div><br></div><div>Given you are wanting to include translations, it sounds like the real fix is something we discussed in a meeting at some point where scripty would maintain a copy of the latest translations for a project in the actual project repository.</div><div>I think that was being tested in one of our repositories but not sure on the status of this.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div> </div><div>I wanted to get rid of that function, and use directly cmake project name <a href="https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/199#note_339860" target="_blank">https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/199#note_339860</a>. Then modification of releaseme is required (that I created mr 13 for). Can we use cmake_project_name as project identifiers? If yes, then I see it is no problem to add a from_identifier() to releaseme::project. And then the problem will be solved.</div><div><br></div></blockquote><div><br></div><div>Cheers,</div><div>Ben</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div></div><div><br></div><div>24.11.2021, 13:02, "Ben Cooksley" <<a href="mailto:bcooksley@kde.org" target="_blank">bcooksley@kde.org</a>>:</div><blockquote><div dir="ltr"><div><div dir="ltr">On Wed, Nov 24, 2021 at 10:28 PM Harald Sitter <<a href="mailto:sitter@kde.org" target="_blank">sitter@kde.org</a>> wrote:<br></div><blockquote style="border-left:1px solid rgb(204,204,204);margin:0px 0px 0px 0.8ex;padding-left:1ex">On Wed, Nov 24, 2021 at 10:02 AM Ben Cooksley <<a href="mailto:bcooksley@kde.org" target="_blank">bcooksley@kde.org</a>> wrote:<br>
> Which means you either provide the path (plasma-mobile/plasma-dialer) or you need to go look in the metadata anyway.<br>
<br>
If names are unique (not persistent, just unique) and plasma-dialer is<br>
what I want to release then I know plasma-dialer is called<br>
plasma-dialer because I'm a plasma-dialer dev. I can then call<br>
releasme with the argument  'plasma-dialer' and releaseme can work out<br>
the path from that because the name is global unique so there is only<br>
one plasma-dialer and that will be what I want to release.<br></blockquote><div><br></div><div>In the specific case of releaseme for 99% of projects the situation you've described is true, so what you are talking about is a non-issue.</div><div>There are only a small handful of projects where identifier != repository name, and the developers in charge of those projects should be able to handle that and be aware of the difference - usually because they requested it.</div><div><br></div><div>I have no idea why this is all of a sudden a problem for Arch Linux.<br></div><div><br></div><blockquote style="border-left:1px solid rgb(204,204,204);margin:0px 0px 0px 0.8ex;padding-left:1ex">
<br>
HS<br></blockquote><div><br></div><div>Regards,</div><div>Ben<br></div></div></div>
</blockquote></blockquote></div></div>