The Encyclopedia of Jewish Values
We see from these words two important concepts. First, that in the 16th century in the Land of Israel, there seemed to be substantial homosexual activity among Jews. Second, Jewish law recognizes that homosexuality is a function of individual societies, and it responds to this societal change with changes in Jewish law.
However, two centuries later, a commentary on the Shulchan Aruch, Rabbi Sirkis (Bach) writes that he does not understand these words of the Shulchan Aruch because he cannot find any homosexual activity in his community. Therefore, he does not agree with (or apply) this particular Jewish law to his community, and permits two males to be alone together.
There is much more on homosexuality that is presented in a clear and balanced manner complete with halachic, historical, and medical discussions.
To order the Encyclopedia of Jewish Values: http://www.urimpublications.com/Merchant2/merchant.mv?Screen=PROD&Store_Code=UP&Product_Code=EncyValues&Category_Code=aaa