Re: [edk2] [Bug 164] Add the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files

2016-10-23 Thread Mudusuru, Giri P
A combination of Jordon's and Andrews proposal would be better so we have one 
flag and also scalable. Level of deprecated interfaces can be controlled by 
each platform. EDK2 master platforms should not define this flag to eliminate 
the usage of deprecated interfaces while UDK2015 can define and set the value 
to 2015 for compatibility. 

ENABLE_UDK_DEPRECATED_INTERFACES=2014 or 2015 or 2017 (UDK versions)

Thanks,
-Giri

> -Original Message-
> From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Yao,
> Jiewen
> Sent: Friday, October 21, 2016 4:13 PM
> To: Laszlo Ersek <ler...@redhat.com>; Justen, Jordan L
> <jordan.l.jus...@intel.com>; Andrew Fish <af...@apple.com>
> Cc: Kinney, Michael D <michael.d.kin...@intel.com>; edk2-devel-01  de...@ml01.01.org>; Gao, Liming <liming@intel.com>; Leif Lindholm
> <leif.lindh...@linaro.org>; Ard Biesheuvel <ard.biesheu...@linaro.org>
> Subject: Re: [edk2] [Bug 164] Add the build option "/D
> DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files
> 
> I remember our deprecation process is:
> 
> 1)  Core defines DISABLE_NEW_DEPRECATED_INTERFACES and puts a
> deprecated content in it. (Platform does not use
> DISABLE_NEW_DEPRECATED_INTERFACES and deprecated function can still be
> used at this moment. But we strongly recommend a platform doing clean up at
> same time.)
> 
> 2)  Platform defines DISABLE_NEW_DEPRECATED_INTERFACES and
> deprecated function cannot be used after the clean up work.
> 
> 3)  Core removes the deprecated content and
> DISABLE_NEW_DEPRECATED_INTERFACES, if we can make sure no platform
> using it.
> 
> 4)  Platform may remove DISABLE_NEW_DEPRECATED_INTERFACES.
> 
> We do not want to remove a function directly, to break lots of platforms. We
> just want to give a buffer to let platform do code cleanup.
> 
> Thank you
> Yao Jiewen
> 
> From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Laszlo
> Ersek
> Sent: Saturday, October 22, 2016 6:31 AM
> To: Justen, Jordan L <jordan.l.jus...@intel.com>; Andrew Fish
> <af...@apple.com>
> Cc: Kinney, Michael D <michael.d.kin...@intel.com>; edk2-devel-01  de...@ml01.01.org>; Leif Lindholm <leif.lindh...@linaro.org>; Gao, Liming
> <liming@intel.com>; Ard Biesheuvel <ard.biesheu...@linaro.org>
> Subject: Re: [edk2] [Bug 164] Add the build option "/D
> DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files
> 
> On 10/22/16 00:10, Jordan Justen wrote:
> > On 2016-10-21 14:02:44, Laszlo Ersek wrote:
> 
> >> Honestly, I imagined that DISABLE_NEW_DEPRECATED_INTERFACES would
> be
> >> temporary in the edk2 tree. That is, it's a means so we can gradually
> >> transition with all the in-tree stuff to a deprecationless code base.
> >> Once that's done -- i.e., *all* platform DSCs within the edk2 tree
> >> specify this feature test macro under their respective [BuildOptions]
> >> sections --, then whatever the macro excises from the core packages can
> >> be removed permanently, together with those platform [BuildOptions].
> >>
> >
> > That could be reasonable, although I'd argue that we could flip it
> > around. Opt-in to the deprecated interfaces on all platforms, and then
> > start marking deprecated interfaces. Finally we could clean up
> > platforms and removed the override.
> 
> That's a valid idea, IMO.
> 
> > But ... I think DISABLE_NEW_DEPRECATED_INTERFACES was first added in:
> >
> > commit bf4a3dbd4751b6411bdfc98bf3ac2c4f928bdfdf
> > Author: ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
> > Date:   Wed May 30 07:36:00 2012 +
> >
> > So, I guess it is not going to be removed anytime soon. :(
> 
> I believe we just need to make progress with the individual platforms
> (and their dependencies from other Pkgs). It's not a lot of fun, but the
> BZs exist (well, they can be filed) now, and then we can address them...
> 
> I mean, I didn't care (or, really, know) about
> DISABLE_NEW_DEPRECATED_INTERFACES until the ArmVirtPkg / OvmfPkg BZs
> got
> filed. Bugzilla is great. I like the attention that it gets, from others
> and from myself.
> 
> Thanks
> Laszlo
> ___
> edk2-devel mailing list
> edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
> https://lists.01.org/mailman/listinfo/edk2-devel
> ___
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] [Bug 164] Add the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files

2016-10-21 Thread Yao, Jiewen
I remember our deprecation process is:

1)  Core defines DISABLE_NEW_DEPRECATED_INTERFACES and puts a deprecated 
content in it. (Platform does not use DISABLE_NEW_DEPRECATED_INTERFACES and 
deprecated function can still be used at this moment. But we strongly recommend 
a platform doing clean up at same time.)

2)  Platform defines DISABLE_NEW_DEPRECATED_INTERFACES and deprecated 
function cannot be used after the clean up work.

3)  Core removes the deprecated content and 
DISABLE_NEW_DEPRECATED_INTERFACES, if we can make sure no platform using it.

4)  Platform may remove DISABLE_NEW_DEPRECATED_INTERFACES.

We do not want to remove a function directly, to break lots of platforms. We 
just want to give a buffer to let platform do code cleanup.

Thank you
Yao Jiewen

From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Laszlo 
Ersek
Sent: Saturday, October 22, 2016 6:31 AM
To: Justen, Jordan L <jordan.l.jus...@intel.com>; Andrew Fish <af...@apple.com>
Cc: Kinney, Michael D <michael.d.kin...@intel.com>; edk2-devel-01 
<edk2-de...@ml01.01.org>; Leif Lindholm <leif.lindh...@linaro.org>; Gao, Liming 
<liming@intel.com>; Ard Biesheuvel <ard.biesheu...@linaro.org>
Subject: Re: [edk2] [Bug 164] Add the build option "/D 
DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files

On 10/22/16 00:10, Jordan Justen wrote:
> On 2016-10-21 14:02:44, Laszlo Ersek wrote:

>> Honestly, I imagined that DISABLE_NEW_DEPRECATED_INTERFACES would be
>> temporary in the edk2 tree. That is, it's a means so we can gradually
>> transition with all the in-tree stuff to a deprecationless code base.
>> Once that's done -- i.e., *all* platform DSCs within the edk2 tree
>> specify this feature test macro under their respective [BuildOptions]
>> sections --, then whatever the macro excises from the core packages can
>> be removed permanently, together with those platform [BuildOptions].
>>
>
> That could be reasonable, although I'd argue that we could flip it
> around. Opt-in to the deprecated interfaces on all platforms, and then
> start marking deprecated interfaces. Finally we could clean up
> platforms and removed the override.

That's a valid idea, IMO.

> But ... I think DISABLE_NEW_DEPRECATED_INTERFACES was first added in:
>
> commit bf4a3dbd4751b6411bdfc98bf3ac2c4f928bdfdf
> Author: ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
> Date:   Wed May 30 07:36:00 2012 +
>
> So, I guess it is not going to be removed anytime soon. :(

I believe we just need to make progress with the individual platforms
(and their dependencies from other Pkgs). It's not a lot of fun, but the
BZs exist (well, they can be filed) now, and then we can address them...

I mean, I didn't care (or, really, know) about
DISABLE_NEW_DEPRECATED_INTERFACES until the ArmVirtPkg / OvmfPkg BZs got
filed. Bugzilla is great. I like the attention that it gets, from others
and from myself.

Thanks
Laszlo
___
edk2-devel mailing list
edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
https://lists.01.org/mailman/listinfo/edk2-devel
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] [Bug 164] Add the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files

2016-10-21 Thread Laszlo Ersek
On 10/22/16 00:10, Jordan Justen wrote:
> On 2016-10-21 14:02:44, Laszlo Ersek wrote:

>> Honestly, I imagined that DISABLE_NEW_DEPRECATED_INTERFACES would be
>> temporary in the edk2 tree. That is, it's a means so we can gradually
>> transition with all the in-tree stuff to a deprecationless code base.
>> Once that's done -- i.e., *all* platform DSCs within the edk2 tree
>> specify this feature test macro under their respective [BuildOptions]
>> sections --, then whatever the macro excises from the core packages can
>> be removed permanently, together with those platform [BuildOptions].
>>
> 
> That could be reasonable, although I'd argue that we could flip it
> around. Opt-in to the deprecated interfaces on all platforms, and then
> start marking deprecated interfaces. Finally we could clean up
> platforms and removed the override.

That's a valid idea, IMO.

> But ... I think DISABLE_NEW_DEPRECATED_INTERFACES was first added in:
> 
> commit bf4a3dbd4751b6411bdfc98bf3ac2c4f928bdfdf
> Author: ydong10 
> Date:   Wed May 30 07:36:00 2012 +
> 
> So, I guess it is not going to be removed anytime soon. :(

I believe we just need to make progress with the individual platforms
(and their dependencies from other Pkgs). It's not a lot of fun, but the
BZs exist (well, they can be filed) now, and then we can address them...

I mean, I didn't care (or, really, know) about
DISABLE_NEW_DEPRECATED_INTERFACES until the ArmVirtPkg / OvmfPkg BZs got
filed. Bugzilla is great. I like the attention that it gets, from others
and from myself.

Thanks
Laszlo
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] [Bug 164] Add the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files

2016-10-21 Thread Jordan Justen
On 2016-10-21 14:02:44, Laszlo Ersek wrote:
> On 10/21/16 22:39, Jordan Justen wrote:
> > On 2016-10-21 13:20:49, Andrew Fish wrote:
> >>Thus the option is to DISABLE_DEPRECATED_INTERFACES as that maintains
> >>backward compatibility.
> > 
> > In order to support UDK releases, maybe ENABLE_UDK2014_INTERFACES would be
> > something to consider. Or ENABLE_UDK_INTERFACE=2014 so we can use <=.
> > 
> > But, I still think that EDK II platforms (as a goal) should represent
> > the best, cleanest examples of using EDK II. And, I think having every
> > platform accumulate cruft like CFLAGS to disable deprecated interfaces
> > works against that goal.
> > 
> > Another point. What about when we want to deprecate more interfaces?
> > Oh know, we better not break platforms that only specified
> > DISABLE_NEW_DEPRECATED_INTERFACES! Let's add
> > DISABLE_NEW_DEPRECATED_INTERFACES2! :)
> 
> Honestly, I imagined that DISABLE_NEW_DEPRECATED_INTERFACES would be
> temporary in the edk2 tree. That is, it's a means so we can gradually
> transition with all the in-tree stuff to a deprecationless code base.
> Once that's done -- i.e., *all* platform DSCs within the edk2 tree
> specify this feature test macro under their respective [BuildOptions]
> sections --, then whatever the macro excises from the core packages can
> be removed permanently, together with those platform [BuildOptions].
>

That could be reasonable, although I'd argue that we could flip it
around. Opt-in to the deprecated interfaces on all platforms, and then
start marking deprecated interfaces. Finally we could clean up
platforms and removed the override.

But ... I think DISABLE_NEW_DEPRECATED_INTERFACES was first added in:

commit bf4a3dbd4751b6411bdfc98bf3ac2c4f928bdfdf
Author: ydong10 
Date:   Wed May 30 07:36:00 2012 +

So, I guess it is not going to be removed anytime soon. :(

-Jordan

> I think this should prevent the accumulation of cruft in edk2. Yes,
> downstreams will have to catch up (or use UDK for a while longer). If
> that's inconvenient, I have a solution: upstream your codebase, and then
> the community will take care of keeping it in sync with the rest ;)
> 
> (This is the standard Linux suggestion BTW, not my idea.)
> 
> NB, we're not talking about protocols or PPIs (they're ABI); this is
> about (statically linked) edk2-only libraries.
> 
> Thanks!
> Laszlo
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] [Bug 164] Add the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files

2016-10-21 Thread Laszlo Ersek
On 10/21/16 22:39, Jordan Justen wrote:
> On 2016-10-21 13:20:49, Andrew Fish wrote:
>>  On Oct 21, 2016, at 12:58 PM, Jordan Justen 
>>  wrote:
>>  On 2016-10-21 12:37:21, Ard Biesheuvel wrote:
>>
>>I don't remember seeing any discussion regarding
>>DISABLE_NEW_DEPRECATED_INTERFACES on the list, so I am a bit surprised
>>seeing these bugs being filed and assigned.
>>
>>  I agree.
>>
>>  Also, the terminology seems confusing. 'new deprecated' seems like a
>>  contradiction. I guess it means 'newly deprecated', but that seems
>>  like a term that is quickly going to become obsolete. Soon there will
>>  be old deprecated items that are disabled with this switch.
>>  DISABLE_DEPRECATED_INTERFACES sounds better.
>>
>>  But, shouldn't we have platforms opt-in to using the deprecated
>>  interfaces rather than adding DISABLE_NEW_DEPRECATED_INTERFACES to the
>>  build command line for every EDK II platform?
>>
>>  Not using deprecated items should be the default for EDK II platforms.
>>  If a platform has to opt-in to the deprecated content in their .dsc,
>>  then it is obvious that they are relying on deprecated functionality.
>>
>>  So, I guess I'd propose adding ENABLE_DEPRECATED_INTERFACES instead.
>>
>>Jordan,
>>I think it depends on your point of view. If you have a platform that
>>works and you update the edk2 revision you would expect it to still work.
> 
> I think this is what UDK is for. If you want to depend directly on EDK
> II, then you'll see less stability.
> 
>>Thus the option is to DISABLE_DEPRECATED_INTERFACES as that maintains
>>backward compatibility.
> 
> In order to support UDK releases, maybe ENABLE_UDK2014_INTERFACES would be
> something to consider. Or ENABLE_UDK_INTERFACE=2014 so we can use <=.
> 
> But, I still think that EDK II platforms (as a goal) should represent
> the best, cleanest examples of using EDK II. And, I think having every
> platform accumulate cruft like CFLAGS to disable deprecated interfaces
> works against that goal.
> 
> Another point. What about when we want to deprecate more interfaces?
> Oh know, we better not break platforms that only specified
> DISABLE_NEW_DEPRECATED_INTERFACES! Let's add
> DISABLE_NEW_DEPRECATED_INTERFACES2! :)

Honestly, I imagined that DISABLE_NEW_DEPRECATED_INTERFACES would be
temporary in the edk2 tree. That is, it's a means so we can gradually
transition with all the in-tree stuff to a deprecationless code base.
Once that's done -- i.e., *all* platform DSCs within the edk2 tree
specify this feature test macro under their respective [BuildOptions]
sections --, then whatever the macro excises from the core packages can
be removed permanently, together with those platform [BuildOptions].

I think this should prevent the accumulation of cruft in edk2. Yes,
downstreams will have to catch up (or use UDK for a while longer). If
that's inconvenient, I have a solution: upstream your codebase, and then
the community will take care of keeping it in sync with the rest ;)

(This is the standard Linux suggestion BTW, not my idea.)

NB, we're not talking about protocols or PPIs (they're ABI); this is
about (statically linked) edk2-only libraries.

Thanks!
Laszlo

> 
> -Jordan
> 
>>I think it makes total sense to turn on DISABLE_DEPRECATED_INTERFACES on
>>all the open source edk2 platform as soon as possible so all the open
>>source code is following current best practices.
>>Not to mention it would probably be a really good idea to give all the
>>downstream folks a long lead time about the plan of making a non backward
>>compatible change. 
>>Thanks,
>>Andrew Fish
>>
>>  -Jordan
>>
>>Before making any such changes, I would like a strong commitment from
>>other package owners that deprecating an interface brings along with
>>it the responsibility to update all existing callers, otherwise
>>setting this define will only result in more breakage, and ARM has
>>seen its share of inadvertent breakage in the past when changes to
>>core code were made without taking other architectures into account.
>>
>>On 21 October 2016 at 02:21,  
>>wrote:
>>
>>  https://bugzilla.tianocore.org/show_bug.cgi?id=164
>>
>>  yonghong@intel.com changed:
>>
>>What|Removed |Added
>>  
>> 
>>Priority|Lowest  |Normal
>>  Status|UNCONFIRMED |CONFIRMED
>>Assignee|michael.d.kin...@intel.com
>>   |ard.biesheu...@linaro.org
>>  Ever confirmed|0   |1
>>  Release(s) the||EDK II Trunk
>>

Re: [edk2] [Bug 164] Add the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files

2016-10-21 Thread Ard Biesheuvel
On 21 October 2016 at 21:40, Laszlo Ersek  wrote:
> On 10/21/16 22:19, Ard Biesheuvel wrote:
>> On 21 October 2016 at 21:14, Laszlo Ersek  wrote:
>>> On 10/21/16 21:58, Jordan Justen wrote:
 On 2016-10-21 12:37:21, Ard Biesheuvel wrote:
> I don't remember seeing any discussion regarding
> DISABLE_NEW_DEPRECATED_INTERFACES on the list, so I am a bit surprised
> seeing these bugs being filed and assigned.
>

 I agree.

 Also, the terminology seems confusing. 'new deprecated' seems like a
 contradiction. I guess it means 'newly deprecated', but that seems
 like a term that is quickly going to become obsolete. Soon there will
 be old deprecated items that are disabled with this switch.
 DISABLE_DEPRECATED_INTERFACES sounds better.

 But, shouldn't we have platforms opt-in to using the deprecated
 interfaces rather than adding DISABLE_NEW_DEPRECATED_INTERFACES to the
 build command line for every EDK II platform?

 Not using deprecated items should be the default for EDK II platforms.
 If a platform has to opt-in to the deprecated content in their .dsc,
 then it is obvious that they are relying on deprecated functionality.

 So, I guess I'd propose adding ENABLE_DEPRECATED_INTERFACES instead.
>>>
>>> I'm about to post a ~20-part series for OvmfPkg and ArmVirtPkg together
>>> that solves these BZs. :/ The DISABLE_NEW_DEPRECATED_INTERFACES feature
>>> test macro is already being used in three MdePkg library class header
>>> files (and a number of library instances), so I thought it was a done deal.
>>>
>>> I don't want to stifle the discussion of course, but at this point I
>>> think I will post the patches for review.
>>>
>>
>> Yes, please. Removing uses of deprecated interfaces is something we
>> should do anyway. What we shouldn't do is configure our platforms in
>> such a way that additional future deprecation automatically break the
>> build, unless we have a strong commitment from the other package
>> owners that they will ensure that this does not happen.
>>
>
> Well, my expectation is that the onus of keeping the tree working is on
> the patch submitter. Assume we adopt DISABLE_NEW_DEPRECATED_INTERFACES
> now (weaning ourselves off the functions that are *currently* disabled
> by the macro). Then whenever someone moves further functions under the
> scope of the macro -- thereby possibly breaking platform code --, it's
> going to be their responsibility to grep the tree for platform DSCs that
> enable DISABLE_NEW_DEPRECATED_INTERFACES, and either test-build those
> platforms reasonably extensively, or ask for help *in advance* (before
> committing the patches).
>
> For example, in the current work I'm about the post, I couldn't
> build-test everything (no RVCT over here, for example :)) Also I don't
> run Xen, so the Xen-related changes can't be functionally tested on my
> side -- but, I do ask for help with testing those. Same goes for the
> 32-bit ARM changes (which, it turns out, Michael and myself managed to
> fix separately, independently, and differently :))
>
> It's okay to modify code one can't build or test himself/herself, but
> then help should be asked for, and given too.
>
> TL;DR: the strong commitment you speak about is the default for any open
> source project, isn't it? ;)
>

Yes it is. But it should be made explicit.
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] [Bug 164] Add the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files

2016-10-21 Thread Andrew Fish

> On Oct 21, 2016, at 1:54 PM, Andrew Fish  wrote:
> 
>> 
>> On Oct 21, 2016, at 1:39 PM, Jordan Justen  wrote:
>> 
>> On 2016-10-21 13:20:49, Andrew Fish wrote:
>>>On Oct 21, 2016, at 12:58 PM, Jordan Justen 
>>>wrote:
>>>On 2016-10-21 12:37:21, Ard Biesheuvel wrote:
>>> 
>>>  I don't remember seeing any discussion regarding
>>>  DISABLE_NEW_DEPRECATED_INTERFACES on the list, so I am a bit surprised
>>>  seeing these bugs being filed and assigned.
>>> 
>>>I agree.
>>> 
>>>Also, the terminology seems confusing. 'new deprecated' seems like a
>>>contradiction. I guess it means 'newly deprecated', but that seems
>>>like a term that is quickly going to become obsolete. Soon there will
>>>be old deprecated items that are disabled with this switch.
>>>DISABLE_DEPRECATED_INTERFACES sounds better.
>>> 
>>>But, shouldn't we have platforms opt-in to using the deprecated
>>>interfaces rather than adding DISABLE_NEW_DEPRECATED_INTERFACES to the
>>>build command line for every EDK II platform?
>>> 
>>>Not using deprecated items should be the default for EDK II platforms.
>>>If a platform has to opt-in to the deprecated content in their .dsc,
>>>then it is obvious that they are relying on deprecated functionality.
>>> 
>>>So, I guess I'd propose adding ENABLE_DEPRECATED_INTERFACES instead.
>>> 
>>>  Jordan,
>>>  I think it depends on your point of view. If you have a platform that
>>>  works and you update the edk2 revision you would expect it to still work.
>> 
>> I think this is what UDK is for. If you want to depend directly on EDK
>> II, then you'll see less stability.
>> 
> 
> Jordan,
> 
> Well there should be a published plan for a future UDK that this change is 
> going to happen before we "break it" in master. Publishing the plan with the 
> UDK does not count :). 
> 
>>>  Thus the option is to DISABLE_DEPRECATED_INTERFACES as that maintains
>>>  backward compatibility.
>> 
>> In order to support UDK releases, maybe ENABLE_UDK2014_INTERFACES would be
>> something to consider. Or ENABLE_UDK_INTERFACE=2014 so we can use <=.
>> 
>> But, I still think that EDK II platforms (as a goal) should represent
>> the best, cleanest examples of using EDK II. And, I think having every
>> platform accumulate cruft like CFLAGS to disable deprecated interfaces
>> works against that goal.
>> 
>> Another point. What about when we want to deprecate more interfaces?
>> Oh know, we better not break platforms that only specified
>> DISABLE_NEW_DEPRECATED_INTERFACES! Let's add
>> DISABLE_NEW_DEPRECATED_INTERFACES2! :)
>> 
> 
> I think you make a very good point. How about 
> DISABLE_2014_DEPRECATE_INTERFACES. I think that version scales, and might 
> actually encourage cleanup as it shows when the interface first got 
> deprecated. 
> 

Sorry, DISABLE_2014_DEPRECATED_INTERFACES.

Thanks,

Andrew Fish

> Thanks,
> 
> Andrew Fish
> 
>> -Jordan
>> 
>>>  I think it makes total sense to turn on DISABLE_DEPRECATED_INTERFACES on
>>>  all the open source edk2 platform as soon as possible so all the open
>>>  source code is following current best practices.
>>>  Not to mention it would probably be a really good idea to give all the
>>>  downstream folks a long lead time about the plan of making a non backward
>>>  compatible change. 
>>>  Thanks,
>>>  Andrew Fish
>>> 
>>>-Jordan
>>> 
>>>  Before making any such changes, I would like a strong commitment from
>>>  other package owners that deprecating an interface brings along with
>>>  it the responsibility to update all existing callers, otherwise
>>>  setting this define will only result in more breakage, and ARM has
>>>  seen its share of inadvertent breakage in the past when changes to
>>>  core code were made without taking other architectures into account.
>>> 
>>>  On 21 October 2016 at 02:21,  
>>>  wrote:
>>> 
>>>https://bugzilla.tianocore.org/show_bug.cgi?id=164
>>> 
>>>yonghong@intel.com changed:
>>> 
>>>  What|Removed |Added
>>>
>>> 
>>>  Priority|Lowest  |Normal
>>>Status|UNCONFIRMED |CONFIRMED
>>>  Assignee|michael.d.kin...@intel.com
>>> |ard.biesheu...@linaro.org
>>>Ever confirmed|0   |1
>>>Release(s) the||EDK II Trunk
>>>issues must be||
>>> fixed||
>>> 
>>>--- Comment #1 from yonghong@intel.com ---
>>>Assign to Package owner.
>>> 
>>>--
>>>You are receiving this mail because:
>>>You are the assignee for the bug.
>>> 

Re: [edk2] [Bug 164] Add the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files

2016-10-21 Thread Andrew Fish

> On Oct 21, 2016, at 1:39 PM, Jordan Justen  wrote:
> 
> On 2016-10-21 13:20:49, Andrew Fish wrote:
>> On Oct 21, 2016, at 12:58 PM, Jordan Justen 
>> wrote:
>> On 2016-10-21 12:37:21, Ard Biesheuvel wrote:
>> 
>>   I don't remember seeing any discussion regarding
>>   DISABLE_NEW_DEPRECATED_INTERFACES on the list, so I am a bit surprised
>>   seeing these bugs being filed and assigned.
>> 
>> I agree.
>> 
>> Also, the terminology seems confusing. 'new deprecated' seems like a
>> contradiction. I guess it means 'newly deprecated', but that seems
>> like a term that is quickly going to become obsolete. Soon there will
>> be old deprecated items that are disabled with this switch.
>> DISABLE_DEPRECATED_INTERFACES sounds better.
>> 
>> But, shouldn't we have platforms opt-in to using the deprecated
>> interfaces rather than adding DISABLE_NEW_DEPRECATED_INTERFACES to the
>> build command line for every EDK II platform?
>> 
>> Not using deprecated items should be the default for EDK II platforms.
>> If a platform has to opt-in to the deprecated content in their .dsc,
>> then it is obvious that they are relying on deprecated functionality.
>> 
>> So, I guess I'd propose adding ENABLE_DEPRECATED_INTERFACES instead.
>> 
>>   Jordan,
>>   I think it depends on your point of view. If you have a platform that
>>   works and you update the edk2 revision you would expect it to still work.
> 
> I think this is what UDK is for. If you want to depend directly on EDK
> II, then you'll see less stability.
> 

Jordan,

Well there should be a published plan for a future UDK that this change is 
going to happen before we "break it" in master. Publishing the plan with the 
UDK does not count :). 

>>   Thus the option is to DISABLE_DEPRECATED_INTERFACES as that maintains
>>   backward compatibility.
> 
> In order to support UDK releases, maybe ENABLE_UDK2014_INTERFACES would be
> something to consider. Or ENABLE_UDK_INTERFACE=2014 so we can use <=.
> 
> But, I still think that EDK II platforms (as a goal) should represent
> the best, cleanest examples of using EDK II. And, I think having every
> platform accumulate cruft like CFLAGS to disable deprecated interfaces
> works against that goal.
> 
> Another point. What about when we want to deprecate more interfaces?
> Oh know, we better not break platforms that only specified
> DISABLE_NEW_DEPRECATED_INTERFACES! Let's add
> DISABLE_NEW_DEPRECATED_INTERFACES2! :)
> 

I think you make a very good point. How about 
DISABLE_2014_DEPRECATE_INTERFACES. I think that version scales, and might 
actually encourage cleanup as it shows when the interface first got deprecated. 

Thanks,

Andrew Fish

> -Jordan
> 
>>   I think it makes total sense to turn on DISABLE_DEPRECATED_INTERFACES on
>>   all the open source edk2 platform as soon as possible so all the open
>>   source code is following current best practices.
>>   Not to mention it would probably be a really good idea to give all the
>>   downstream folks a long lead time about the plan of making a non backward
>>   compatible change. 
>>   Thanks,
>>   Andrew Fish
>> 
>> -Jordan
>> 
>>   Before making any such changes, I would like a strong commitment from
>>   other package owners that deprecating an interface brings along with
>>   it the responsibility to update all existing callers, otherwise
>>   setting this define will only result in more breakage, and ARM has
>>   seen its share of inadvertent breakage in the past when changes to
>>   core code were made without taking other architectures into account.
>> 
>>   On 21 October 2016 at 02:21,  
>>   wrote:
>> 
>> https://bugzilla.tianocore.org/show_bug.cgi?id=164
>> 
>> yonghong@intel.com changed:
>> 
>>   What|Removed |Added
>> 
>> 
>>   Priority|Lowest  |Normal
>> Status|UNCONFIRMED |CONFIRMED
>>   Assignee|michael.d.kin...@intel.com
>>  |ard.biesheu...@linaro.org
>> Ever confirmed|0   |1
>> Release(s) the||EDK II Trunk
>> issues must be||
>>  fixed||
>> 
>> --- Comment #1 from yonghong@intel.com ---
>> Assign to Package owner.
>> 
>> --
>> You are receiving this mail because:
>> You are the assignee for the bug.
>> 
>>   ___
>>   edk2-devel mailing list
>>   edk2-devel@lists.01.org
>>   https://lists.01.org/mailman/listinfo/edk2-devel 
>> 

Re: [edk2] [Bug 164] Add the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files

2016-10-21 Thread Laszlo Ersek
On 10/21/16 22:19, Ard Biesheuvel wrote:
> On 21 October 2016 at 21:14, Laszlo Ersek  wrote:
>> On 10/21/16 21:58, Jordan Justen wrote:
>>> On 2016-10-21 12:37:21, Ard Biesheuvel wrote:
 I don't remember seeing any discussion regarding
 DISABLE_NEW_DEPRECATED_INTERFACES on the list, so I am a bit surprised
 seeing these bugs being filed and assigned.

>>>
>>> I agree.
>>>
>>> Also, the terminology seems confusing. 'new deprecated' seems like a
>>> contradiction. I guess it means 'newly deprecated', but that seems
>>> like a term that is quickly going to become obsolete. Soon there will
>>> be old deprecated items that are disabled with this switch.
>>> DISABLE_DEPRECATED_INTERFACES sounds better.
>>>
>>> But, shouldn't we have platforms opt-in to using the deprecated
>>> interfaces rather than adding DISABLE_NEW_DEPRECATED_INTERFACES to the
>>> build command line for every EDK II platform?
>>>
>>> Not using deprecated items should be the default for EDK II platforms.
>>> If a platform has to opt-in to the deprecated content in their .dsc,
>>> then it is obvious that they are relying on deprecated functionality.
>>>
>>> So, I guess I'd propose adding ENABLE_DEPRECATED_INTERFACES instead.
>>
>> I'm about to post a ~20-part series for OvmfPkg and ArmVirtPkg together
>> that solves these BZs. :/ The DISABLE_NEW_DEPRECATED_INTERFACES feature
>> test macro is already being used in three MdePkg library class header
>> files (and a number of library instances), so I thought it was a done deal.
>>
>> I don't want to stifle the discussion of course, but at this point I
>> think I will post the patches for review.
>>
> 
> Yes, please. Removing uses of deprecated interfaces is something we
> should do anyway. What we shouldn't do is configure our platforms in
> such a way that additional future deprecation automatically break the
> build, unless we have a strong commitment from the other package
> owners that they will ensure that this does not happen.
> 

Well, my expectation is that the onus of keeping the tree working is on
the patch submitter. Assume we adopt DISABLE_NEW_DEPRECATED_INTERFACES
now (weaning ourselves off the functions that are *currently* disabled
by the macro). Then whenever someone moves further functions under the
scope of the macro -- thereby possibly breaking platform code --, it's
going to be their responsibility to grep the tree for platform DSCs that
enable DISABLE_NEW_DEPRECATED_INTERFACES, and either test-build those
platforms reasonably extensively, or ask for help *in advance* (before
committing the patches).

For example, in the current work I'm about the post, I couldn't
build-test everything (no RVCT over here, for example :)) Also I don't
run Xen, so the Xen-related changes can't be functionally tested on my
side -- but, I do ask for help with testing those. Same goes for the
32-bit ARM changes (which, it turns out, Michael and myself managed to
fix separately, independently, and differently :))

It's okay to modify code one can't build or test himself/herself, but
then help should be asked for, and given too.

TL;DR: the strong commitment you speak about is the default for any open
source project, isn't it? ;)

Thanks
Laszlo
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] [Bug 164] Add the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files

2016-10-21 Thread Jordan Justen
On 2016-10-21 13:20:49, Andrew Fish wrote:
>  On Oct 21, 2016, at 12:58 PM, Jordan Justen 
>  wrote:
>  On 2016-10-21 12:37:21, Ard Biesheuvel wrote:
> 
>I don't remember seeing any discussion regarding
>DISABLE_NEW_DEPRECATED_INTERFACES on the list, so I am a bit surprised
>seeing these bugs being filed and assigned.
> 
>  I agree.
> 
>  Also, the terminology seems confusing. 'new deprecated' seems like a
>  contradiction. I guess it means 'newly deprecated', but that seems
>  like a term that is quickly going to become obsolete. Soon there will
>  be old deprecated items that are disabled with this switch.
>  DISABLE_DEPRECATED_INTERFACES sounds better.
> 
>  But, shouldn't we have platforms opt-in to using the deprecated
>  interfaces rather than adding DISABLE_NEW_DEPRECATED_INTERFACES to the
>  build command line for every EDK II platform?
> 
>  Not using deprecated items should be the default for EDK II platforms.
>  If a platform has to opt-in to the deprecated content in their .dsc,
>  then it is obvious that they are relying on deprecated functionality.
> 
>  So, I guess I'd propose adding ENABLE_DEPRECATED_INTERFACES instead.
> 
>Jordan,
>I think it depends on your point of view. If you have a platform that
>works and you update the edk2 revision you would expect it to still work.

I think this is what UDK is for. If you want to depend directly on EDK
II, then you'll see less stability.

>Thus the option is to DISABLE_DEPRECATED_INTERFACES as that maintains
>backward compatibility.

In order to support UDK releases, maybe ENABLE_UDK2014_INTERFACES would be
something to consider. Or ENABLE_UDK_INTERFACE=2014 so we can use <=.

But, I still think that EDK II platforms (as a goal) should represent
the best, cleanest examples of using EDK II. And, I think having every
platform accumulate cruft like CFLAGS to disable deprecated interfaces
works against that goal.

Another point. What about when we want to deprecate more interfaces?
Oh know, we better not break platforms that only specified
DISABLE_NEW_DEPRECATED_INTERFACES! Let's add
DISABLE_NEW_DEPRECATED_INTERFACES2! :)

-Jordan

>I think it makes total sense to turn on DISABLE_DEPRECATED_INTERFACES on
>all the open source edk2 platform as soon as possible so all the open
>source code is following current best practices.
>Not to mention it would probably be a really good idea to give all the
>downstream folks a long lead time about the plan of making a non backward
>compatible change. 
>Thanks,
>Andrew Fish
> 
>  -Jordan
> 
>Before making any such changes, I would like a strong commitment from
>other package owners that deprecating an interface brings along with
>it the responsibility to update all existing callers, otherwise
>setting this define will only result in more breakage, and ARM has
>seen its share of inadvertent breakage in the past when changes to
>core code were made without taking other architectures into account.
> 
>On 21 October 2016 at 02:21,  
>wrote:
> 
>  https://bugzilla.tianocore.org/show_bug.cgi?id=164
> 
>  yonghong@intel.com changed:
> 
>What|Removed |Added
>  
> 
>Priority|Lowest  |Normal
>  Status|UNCONFIRMED |CONFIRMED
>Assignee|michael.d.kin...@intel.com
>   |ard.biesheu...@linaro.org
>  Ever confirmed|0   |1
>  Release(s) the||EDK II Trunk
>  issues must be||
>   fixed||
> 
>  --- Comment #1 from yonghong@intel.com ---
>  Assign to Package owner.
> 
>  --
>  You are receiving this mail because:
>  You are the assignee for the bug.
> 
>___
>edk2-devel mailing list
>edk2-devel@lists.01.org
>https://lists.01.org/mailman/listinfo/edk2-devel
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] [Bug 164] Add the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files

2016-10-21 Thread Andrew Fish

> On Oct 21, 2016, at 12:58 PM, Jordan Justen  wrote:
> 
> On 2016-10-21 12:37:21, Ard Biesheuvel wrote:
>> I don't remember seeing any discussion regarding
>> DISABLE_NEW_DEPRECATED_INTERFACES on the list, so I am a bit surprised
>> seeing these bugs being filed and assigned.
>> 
> 
> I agree.
> 
> Also, the terminology seems confusing. 'new deprecated' seems like a
> contradiction. I guess it means 'newly deprecated', but that seems
> like a term that is quickly going to become obsolete. Soon there will
> be old deprecated items that are disabled with this switch.
> DISABLE_DEPRECATED_INTERFACES sounds better.
> 
> But, shouldn't we have platforms opt-in to using the deprecated
> interfaces rather than adding DISABLE_NEW_DEPRECATED_INTERFACES to the
> build command line for every EDK II platform?
> 
> Not using deprecated items should be the default for EDK II platforms.
> If a platform has to opt-in to the deprecated content in their .dsc,
> then it is obvious that they are relying on deprecated functionality.
> 
> So, I guess I'd propose adding ENABLE_DEPRECATED_INTERFACES instead.
> 

Jordan,

I think it depends on your point of view. If you have a platform that works and 
you update the edk2 revision you would expect it to still work. Thus the option 
is to DISABLE_DEPRECATED_INTERFACES as that maintains backward compatibility. 

I think it makes total sense to turn on DISABLE_DEPRECATED_INTERFACES on all 
the open source edk2 platform as soon as possible so all the open source code 
is following current best practices.

Not to mention it would probably be a really good idea to give all the 
downstream folks a long lead time about the plan of making a non backward 
compatible change. 

Thanks,

Andrew Fish


> -Jordan
> 
>> Before making any such changes, I would like a strong commitment from
>> other package owners that deprecating an interface brings along with
>> it the responsibility to update all existing callers, otherwise
>> setting this define will only result in more breakage, and ARM has
>> seen its share of inadvertent breakage in the past when changes to
>> core code were made without taking other architectures into account.
>> 
>> On 21 October 2016 at 02:21,   wrote:
>>> https://bugzilla.tianocore.org/show_bug.cgi?id=164
>>> 
>>> yonghong@intel.com changed:
>>> 
>>>   What|Removed |Added
>>> 
>>>   Priority|Lowest  |Normal
>>> Status|UNCONFIRMED |CONFIRMED
>>>   Assignee|michael.d.kin...@intel.com  |ard.biesheu...@linaro.org
>>> Ever confirmed|0   |1
>>> Release(s) the||EDK II Trunk
>>> issues must be||
>>>  fixed||
>>> 
>>> --- Comment #1 from yonghong@intel.com ---
>>> Assign to Package owner.
>>> 
>>> --
>>> You are receiving this mail because:
>>> You are the assignee for the bug.
>> ___
>> edk2-devel mailing list
>> edk2-devel@lists.01.org 
>> https://lists.01.org/mailman/listinfo/edk2-devel 
>> 
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] [Bug 164] Add the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files

2016-10-21 Thread Ard Biesheuvel
On 21 October 2016 at 21:14, Laszlo Ersek  wrote:
> On 10/21/16 21:58, Jordan Justen wrote:
>> On 2016-10-21 12:37:21, Ard Biesheuvel wrote:
>>> I don't remember seeing any discussion regarding
>>> DISABLE_NEW_DEPRECATED_INTERFACES on the list, so I am a bit surprised
>>> seeing these bugs being filed and assigned.
>>>
>>
>> I agree.
>>
>> Also, the terminology seems confusing. 'new deprecated' seems like a
>> contradiction. I guess it means 'newly deprecated', but that seems
>> like a term that is quickly going to become obsolete. Soon there will
>> be old deprecated items that are disabled with this switch.
>> DISABLE_DEPRECATED_INTERFACES sounds better.
>>
>> But, shouldn't we have platforms opt-in to using the deprecated
>> interfaces rather than adding DISABLE_NEW_DEPRECATED_INTERFACES to the
>> build command line for every EDK II platform?
>>
>> Not using deprecated items should be the default for EDK II platforms.
>> If a platform has to opt-in to the deprecated content in their .dsc,
>> then it is obvious that they are relying on deprecated functionality.
>>
>> So, I guess I'd propose adding ENABLE_DEPRECATED_INTERFACES instead.
>
> I'm about to post a ~20-part series for OvmfPkg and ArmVirtPkg together
> that solves these BZs. :/ The DISABLE_NEW_DEPRECATED_INTERFACES feature
> test macro is already being used in three MdePkg library class header
> files (and a number of library instances), so I thought it was a done deal.
>
> I don't want to stifle the discussion of course, but at this point I
> think I will post the patches for review.
>

Yes, please. Removing uses of deprecated interfaces is something we
should do anyway. What we shouldn't do is configure our platforms in
such a way that additional future deprecation automatically break the
build, unless we have a strong commitment from the other package
owners that they will ensure that this does not happen.
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] [Bug 164] Add the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files

2016-10-21 Thread Laszlo Ersek
On 10/21/16 21:58, Jordan Justen wrote:
> On 2016-10-21 12:37:21, Ard Biesheuvel wrote:
>> I don't remember seeing any discussion regarding
>> DISABLE_NEW_DEPRECATED_INTERFACES on the list, so I am a bit surprised
>> seeing these bugs being filed and assigned.
>>
> 
> I agree.
> 
> Also, the terminology seems confusing. 'new deprecated' seems like a
> contradiction. I guess it means 'newly deprecated', but that seems
> like a term that is quickly going to become obsolete. Soon there will
> be old deprecated items that are disabled with this switch.
> DISABLE_DEPRECATED_INTERFACES sounds better.
> 
> But, shouldn't we have platforms opt-in to using the deprecated
> interfaces rather than adding DISABLE_NEW_DEPRECATED_INTERFACES to the
> build command line for every EDK II platform?
> 
> Not using deprecated items should be the default for EDK II platforms.
> If a platform has to opt-in to the deprecated content in their .dsc,
> then it is obvious that they are relying on deprecated functionality.
> 
> So, I guess I'd propose adding ENABLE_DEPRECATED_INTERFACES instead.

I'm about to post a ~20-part series for OvmfPkg and ArmVirtPkg together
that solves these BZs. :/ The DISABLE_NEW_DEPRECATED_INTERFACES feature
test macro is already being used in three MdePkg library class header
files (and a number of library instances), so I thought it was a done deal.

I don't want to stifle the discussion of course, but at this point I
think I will post the patches for review.

Thanks
Laszlo

> -Jordan
> 
>> Before making any such changes, I would like a strong commitment from
>> other package owners that deprecating an interface brings along with
>> it the responsibility to update all existing callers, otherwise
>> setting this define will only result in more breakage, and ARM has
>> seen its share of inadvertent breakage in the past when changes to
>> core code were made without taking other architectures into account.
>>
>> On 21 October 2016 at 02:21,   wrote:
>>> https://bugzilla.tianocore.org/show_bug.cgi?id=164
>>>
>>> yonghong@intel.com changed:
>>>
>>>What|Removed |Added
>>> 
>>>Priority|Lowest  |Normal
>>>  Status|UNCONFIRMED |CONFIRMED
>>>Assignee|michael.d.kin...@intel.com  |ard.biesheu...@linaro.org
>>>  Ever confirmed|0   |1
>>>  Release(s) the||EDK II Trunk
>>>  issues must be||
>>>   fixed||
>>>
>>> --- Comment #1 from yonghong@intel.com ---
>>> Assign to Package owner.
>>>
>>> --
>>> You are receiving this mail because:
>>> You are the assignee for the bug.
>> ___
>> edk2-devel mailing list
>> edk2-devel@lists.01.org
>> https://lists.01.org/mailman/listinfo/edk2-devel

___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] [Bug 164] Add the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files

2016-10-21 Thread Jordan Justen
On 2016-10-21 12:37:21, Ard Biesheuvel wrote:
> I don't remember seeing any discussion regarding
> DISABLE_NEW_DEPRECATED_INTERFACES on the list, so I am a bit surprised
> seeing these bugs being filed and assigned.
>

I agree.

Also, the terminology seems confusing. 'new deprecated' seems like a
contradiction. I guess it means 'newly deprecated', but that seems
like a term that is quickly going to become obsolete. Soon there will
be old deprecated items that are disabled with this switch.
DISABLE_DEPRECATED_INTERFACES sounds better.

But, shouldn't we have platforms opt-in to using the deprecated
interfaces rather than adding DISABLE_NEW_DEPRECATED_INTERFACES to the
build command line for every EDK II platform?

Not using deprecated items should be the default for EDK II platforms.
If a platform has to opt-in to the deprecated content in their .dsc,
then it is obvious that they are relying on deprecated functionality.

So, I guess I'd propose adding ENABLE_DEPRECATED_INTERFACES instead.

-Jordan

> Before making any such changes, I would like a strong commitment from
> other package owners that deprecating an interface brings along with
> it the responsibility to update all existing callers, otherwise
> setting this define will only result in more breakage, and ARM has
> seen its share of inadvertent breakage in the past when changes to
> core code were made without taking other architectures into account.
>
> On 21 October 2016 at 02:21,   wrote:
> > https://bugzilla.tianocore.org/show_bug.cgi?id=164
> >
> > yonghong@intel.com changed:
> >
> >What|Removed |Added
> > 
> >Priority|Lowest  |Normal
> >  Status|UNCONFIRMED |CONFIRMED
> >Assignee|michael.d.kin...@intel.com  |ard.biesheu...@linaro.org
> >  Ever confirmed|0   |1
> >  Release(s) the||EDK II Trunk
> >  issues must be||
> >   fixed||
> >
> > --- Comment #1 from yonghong@intel.com ---
> > Assign to Package owner.
> >
> > --
> > You are receiving this mail because:
> > You are the assignee for the bug.
> ___
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] [Bug 164] Add the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files

2016-10-21 Thread Michael Zimmermann
I actually sent a patch for Arm some time ago:
https://lists.01.org/pipermail/edk2-devel/2016-August/000489.html

Thanks
Michael

On Fri, Oct 21, 2016 at 9:37 PM, Ard Biesheuvel 
wrote:

> I don't remember seeing any discussion regarding
> DISABLE_NEW_DEPRECATED_INTERFACES on the list, so I am a bit surprised
> seeing these bugs being filed and assigned.
>
> Before making any such changes, I would like a strong commitment from
> other package owners that deprecating an interface brings along with
> it the responsibility to update all existing callers, otherwise
> setting this define will only result in more breakage, and ARM has
> seen its share of inadvertent breakage in the past when changes to
> core code were made without taking other architectures into account.
>
>
>
> On 21 October 2016 at 02:21,  
> wrote:
> > https://bugzilla.tianocore.org/show_bug.cgi?id=164
> >
> > yonghong@intel.com changed:
> >
> >What|Removed |Added
> > 
> 
> >Priority|Lowest  |Normal
> >  Status|UNCONFIRMED |CONFIRMED
> >Assignee|michael.d.kin...@intel.com  |
> ard.biesheu...@linaro.org
> >  Ever confirmed|0   |1
> >  Release(s) the||EDK II Trunk
> >  issues must be||
> >   fixed||
> >
> > --- Comment #1 from yonghong@intel.com ---
> > Assign to Package owner.
> >
> > --
> > You are receiving this mail because:
> > You are the assignee for the bug.
> ___
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
>
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] [Bug 164] Add the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC files

2016-10-21 Thread Ard Biesheuvel
I don't remember seeing any discussion regarding
DISABLE_NEW_DEPRECATED_INTERFACES on the list, so I am a bit surprised
seeing these bugs being filed and assigned.

Before making any such changes, I would like a strong commitment from
other package owners that deprecating an interface brings along with
it the responsibility to update all existing callers, otherwise
setting this define will only result in more breakage, and ARM has
seen its share of inadvertent breakage in the past when changes to
core code were made without taking other architectures into account.



On 21 October 2016 at 02:21,   wrote:
> https://bugzilla.tianocore.org/show_bug.cgi?id=164
>
> yonghong@intel.com changed:
>
>What|Removed |Added
> 
>Priority|Lowest  |Normal
>  Status|UNCONFIRMED |CONFIRMED
>Assignee|michael.d.kin...@intel.com  |ard.biesheu...@linaro.org
>  Ever confirmed|0   |1
>  Release(s) the||EDK II Trunk
>  issues must be||
>   fixed||
>
> --- Comment #1 from yonghong@intel.com ---
> Assign to Package owner.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel