unity7maintainers team mailing list archive
-
unity7maintainers team
-
Mailing list archive
-
Message #00024
Re: Patches
-
To:
Aleksey Tulinov <aleksey.tulinov@xxxxxxxxx>
-
From:
Marco Trevisan <marco.trevisan@xxxxxxxxxxxxx>
-
Date:
Wed, 7 Nov 2018 17:34:17 -0600
-
Autocrypt:
addr=marco.trevisan@xxxxxxxxxxxxx; prefer-encrypt=mutual; keydata= xsDiBESfI64RBAC+CSSPbUzfo5RzoGrkuYGcmj/0mBS66QgaehMbd4Czbl32loMIFSNKLWxS 0yeyVMceiEm//NNUi+y7yFJVV9AuGJZx4ub1IG5YcAlpB3lcJ5G2nz3Pn3KGmjQ8sE8+w7zq kaICpDxyddyCIqUbKDbnJ7ti+nf4V9SnW4EcMQvJWwCg43TSUvI+S2tbK/EVPl+YehpBTGcD /0Kaf6CDxFubZgm2jTGsvEOH1kyGQHXWKfDlHAq+lygEHXR3OlcLDlSlOZ9DAU3+gfYU8Ukt +xEjTd97r6XHOxF3nuu6h1ZLVZ7k2FqryEnt1dRMmhL2FA1xOaXvobHObg4UvgnMExR4MYpu lKU5hMO8w4BO0Xy34CJg2J0a5adEA/4nk8mWS2AYG2qUOgE0jvMgrWUsPbWtyNjz3u2xTi9O d5IscX72m8Vuy+4EkYTHwj+/hDq/70Ee6OUKaMcyeLJm61EierAqWWDmT5gK+6jNIheqALhA pSRJUS0kTPzK1zLx8Nb/g+NCXKb9N4h9UAPe3hHwlY7lTDgTbOJsL3vd1M04TWFyY28gVHJl dmlzYW4gKGF0IDN2MW4wLm5ldCkgPG1hcmNvLnRyZXZpc2FuQDN2MW4wLm5ldD7CYwQTEQIA IwIbIwYLCQgHAwIEFQIIAwQWAgMBAh4BAheABQJHkFC0AhkBAAoJEOg9CJSBg26/SVoAoKe4 gTWXOzW1fkajGA2lOTaIdBXWAJ0RW4cvVq628lTmHsksBiAhveljYs7DTQREnyPnEBAArhqG IGhPzr/uWpJSD6HWYaclrGx/EuLe1B8cDVHiev8AYxojQVUZMIqE/h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mgOM1i qklDoPNM58r/3zISObIjdYiI7YJXga0+pB6qT36EjVIW0ZpmuROa2W1ctzXFnlpR8DbGvEdT sfQe+hSJhBOWcX9CSQAGPkemOeS/PJQkhjMSzjsVIiUYVi0SwN3tESYtd2YR5/DWp+of7TDJ QtoMpau9C/mOzV6kEA1L53CDWYaMU82q+2EpIgqgGXOkMtb1oztsHVxRq95w0C6YcvcvgWEU wkYEGBECAAYFAkSfI+cACgkQ6D0IlIGDbr/vggCfa2MTPcbMzsxveeDkNtxJTDZkCcEAoJao A4YkpFmuGWlubK5JTha8BVC2
-
Cc:
unity7maintainers@xxxxxxxxxxxxxxxxxxx
-
In-reply-to:
<CAMteYTZjzPOYeLh5XT_vVJZ_hVheEryCW3-SarAgUbLFK9NCoQ@mail.gmail.com>
-
Openpgp:
preference=signencrypt
-
Organization:
Canonical Ltd
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1
Hi,
Il 05/11/18 07:30, Aleksey Tulinov ha scritto:
> Hi.
>
> Thank you. I'm not very familiar with launchpad and bileto, this is
> patch 1/3, right? Other patches should be forward/backward-compatible
> too, i believe they should fit previous versions of GCC and Boost, but
> i didn't check and whatever really, they are trivial and not worth
> bothering if there are not compilation errors yet. I've found your
> GitHub page and i see that there is also a mirror of Unity repo, would
> it be easier if i create a merge request on GitHub for example? How
> does that work, is that one-way bzr->git mirror or is that two-way
> bzr<->git translation?
Unfortunately not... my github page is just for a temporary copy so
far... I should add some sync there, but I had no time.
In any case, you can do the same in launchpad's git, see
https://help.launchpad.net/Code/Git
So basically, you can just push to lp:~YOUR_LP_USERNAME/unity and then
propose the merge proposal from there.
No need to fork, it's automatic.
> Is there any intereset in other patches that not necessarily
> immediately add value to the project? I'm interested in reducing
> difference with upstream that i have, but a large portion of my
> changes won't look like it makes sense. For example an option to build
> Unity without Compiz - this doesn't make sense, does it?
Well, are you using this for what?
Mostly for testing I guess?
In any case, any patch is welcome... There's no point to keep much delta
if you've stuff that won't affect (by default settings) the current
unity session.
> But may i, for instance, suggest to move MenuManager.cpp from unity-shared to
> unity-shared-compiz and make a patch/PR for it, then possibly suggest
> ENABLE_COMPIZ build option (default=ON) and make a patch for that too?
> Other changes might include adding new methods to existing classes or
> moving methods from protected to public section of a class etc.
It's ok, if it doesn't break things for ubuntu builds.
> Is it worth bothering anyone with this? I understand that each change
> would need to be considered separately and yada yada yada but if this
> is possible then maybe i could send small patches from here and there
> that hopefully won't change behavior upstream, but might be helpful
> downstream.
Sure, feel free to propose anything you think you'd like.
We've now a build issue in armhf, so we can't land your patches
promptly, but once we've fixed that we can do it.
> пн, 5 нояб. 2018 г. в 4:24, Marco Trevisan <marco.trevisan@xxxxxxxxxxxxx>:
>>
>> Hi Aleksev,
>>
>> Thanks, I've prepared a merge request [1] with it, and a bileto silo [2]
>>
>> [1] https://code.launchpad.net/~unity-team/unity/+git/unity/+merge/358294
>> [2] https://bileto.ubuntu.com/#/ticket/3504
>>
>> Il 03/11/18 11:09, Aleksey Tulinov ha scritto:
>>> Hello.
>>>
>>> Is it possible to apply some patches? First one is for build w/o PCH
>>> (-Duse_pch=OFF), second one is for GCC 8 or something, maybe for the
>>> new stdlib, point is: <iostream> should be included. Third one is for
>>> boost 1.68, <boost/utility.hpp> no longer includes
>>> <boost/next_prior.hpp>. I think boost::prior() is not really needed
>>> there and --it will do as well, but i didn't want to change behavior
>>> in any way, so it only fixes includes.
>>>
>>> By the way thanks for the mirroring Bazaar repository to Git, this is
>>> very convenient and helpful.
>>>
>>>
>>> From 1d63a16cb70bb908a012a357f1cb7cecd0143cfa Mon Sep 17 00:00:00 2001
>>> From: Aleksey Tulinov <aleksey.tulinov@xxxxxxxxx>
>>> Date: Tue, 10 Apr 2018 00:42:47 +0300
>>> Subject: [PATCH 1/3] +added missing includes for build w/o pch
>>>
>>> ---
>>> UnityCore/GLibDBusServer.cpp | 2 ++
>>> launcher/DevicesSettingsImp.cpp | 1 +
>>> launcher/FavoriteStoreGSettings.cpp | 2 ++
>>> launcher/FavoriteStorePrivate.h | 2 +-
>>> unity-shared/IconLoader.h | 1 +
>>> 5 files changed, 7 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/UnityCore/GLibDBusServer.cpp b/UnityCore/GLibDBusServer.cpp
>>> index 49b70d7c0..8fcfdf9d7 100644
>>> --- a/UnityCore/GLibDBusServer.cpp
>>> +++ b/UnityCore/GLibDBusServer.cpp
>>> @@ -17,7 +17,9 @@
>>> * Authored by: Marco Trevisan (Treviño) <marco.trevisan@xxxxxxxxxxxxx>
>>> */
>>>
>>> +#include <algorithm>
>>> #include <unordered_map>
>>> +
>>> #include <NuxCore/Logger.h>
>>>
>>> #include "GLibDBusServer.h"
>>> diff --git a/launcher/DevicesSettingsImp.cpp b/launcher/DevicesSettingsImp.cpp
>>> index 08eddb9cb..25f40a6b2 100644
>>> --- a/launcher/DevicesSettingsImp.cpp
>>> +++ b/launcher/DevicesSettingsImp.cpp
>>> @@ -17,6 +17,7 @@
>>> * Authored by: Andrea Azzarone <andrea.azzarone@xxxxxxxxxxxxx>
>>> */
>>>
>>> +#include <algorithm>
>>> #include <list>
>>>
>>> #include <gio/gio.h>
>>> diff --git a/launcher/FavoriteStoreGSettings.cpp
>>> b/launcher/FavoriteStoreGSettings.cpp
>>> index 415a04bfe..493e823b1 100644
>>> --- a/launcher/FavoriteStoreGSettings.cpp
>>> +++ b/launcher/FavoriteStoreGSettings.cpp
>>> @@ -18,6 +18,8 @@
>>> * Marco Trevisan <marco.trevisan@xxxxxxxxxxxxx>
>>> */
>>>
>>> +#include <algorithm>
>>> +
>>> #include <NuxCore/Logger.h>
>>> #include <UnityCore/DesktopUtilities.h>
>>>
>>> diff --git a/launcher/FavoriteStorePrivate.h b/launcher/FavoriteStorePrivate.h
>>> index 3edad2357..ebd3cfe2a 100644
>>> --- a/launcher/FavoriteStorePrivate.h
>>> +++ b/launcher/FavoriteStorePrivate.h
>>> @@ -22,6 +22,7 @@
>>>
>>> #include <list>
>>> #include <string>
>>> +#include <vector>
>>>
>>> namespace unity
>>> {
>>> @@ -47,4 +48,3 @@ bool IsDesktopFilePath(std::string const& path);
>>> } // namespace unity
>>>
>>> #endif
>>> -
>>> diff --git a/unity-shared/IconLoader.h b/unity-shared/IconLoader.h
>>> index fb4587e35..595def484 100644
>>> --- a/unity-shared/IconLoader.h
>>> +++ b/unity-shared/IconLoader.h
>>> @@ -22,6 +22,7 @@
>>>
>>> #include <boost/utility.hpp>
>>>
>>> +#include <functional>
>>> #include <memory>
>>> #include <gtk/gtk.h>
>>> #include <UnityCore/ActionHandle.h>
>>>
>>
Follow ups
References