It isn't useful to include St. Pope John XXIII in this, as the scientific research on homosexuality was just getting a start at the time of his papacy, with nothing of worth to report until after he was gone.  But every pope since John had the benefit of the research and chose, repeatedly, to ignore it and instead provide every ignorant statement and teaching about it, when the Church's own backyard (and front and sides) were full of homosexual priests and religious - some chaste and celibate and the best of our ministry and some not - that the blind eye of Catholicism simply made believe was non-existent.  While St. John XXIII was without question ahead of his time, he was a bit too early to have the full benefit of much of what science found of God's wondrous creation.