Just to clarify.....The relation of the driver to the distance of the port, like all other aspects of design acoustics, will have an effect either positively, or negatively, depending on the design construction, not so much the acoustical noise factor. The reason is....the area before the port opening inside the enclosure, if utilizing a compression chamber, is less sensitive to reverberation and resonances at the desired response range because of the size of the enclosure. So, things such as changes in the response curve other than that of cancellation from phasing, is not as relevant as one would think in the driver placement within a certain distance INSIDE the enclosure. The main concern should be placement and effects outside of the enclosure to the listening position. This is where the environment has the potential to become more sensitive to response changes involving placement such as dips and peaks.
In regard to noise factors, this is not important in placement near as much as area of the port opening, such as that in an RLH design, where the throat area is much smaller in most cases than the drivers acoustical suspension compliance in volume for proper compression and LF output. So, as long as the port is a proper area, to reduce port noise as a factor in itself, the placement of the driver should not be a major concern if you have no other choice.
When noise other than turbulence becomes an issue, regarding driver placement within the enclosure, then you might want to check to see what kind of distortion is occurring from the driver itself other than worrying about how close it is to the port. That is why this has become a common misconception about placement regarding port opening. Its when the physical part of the driver interferes with the port opening that it can be thought of as improper placement of the driver. The rule of physics is that anything less than the distance of the shortest length of the port area to the port opening is improper as that will cause the well known compression noise faults within the enclosure and then gets heard from the port in the environment.
So, neither of those drawings are considered improper when it comes to driver placement within the enclosure. More concerns will arise when dealing with placement in relation to the exterior port opening with phase linearity.