Read the exceptions to 230.24(A). You need 8 1/2 feet of clearance over the roof to from the edges to 3 feet in.
Exception 2 drops that to 3 feet for a <300V service if the roof has a pitch of 4 and 12 or steeper. Probably won't help you but maybe for the shed?
Exception 3 drops that to 18" for a <300V service if you terminate at a mast or through the rood raceway within 4' of the edge of the roof. That covered porch looks longer deeper than 4' but maybe the wires are angled and only cross a portion of the roof?.
Exception 4 lets you ignore the clearance requirement from edges to 3' in of the roof if the conductors are attached to the side of a building. This may apply to the covered porch, but it could have been better if the service drop was anchored higher on that building to get as much clearance as possible (although that would have brought it in further which makes it cross more roof.
Exception 5 drops the clearance to 3' for a <300V service if the roof is guarded or isolated. That may work for the shed depending on what is met by isolated.