From the MCU point of view, a Yun is a Leonardo. Not every shield works with the leonardo. Some/most (I don't have a number) work fine by overriding some pin numbers in the related library
To give you an example, see this tutorial, the leonardo paragraph in particular