All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger. We ask Allaah to exalt his mention as well as that of his family and all his companions.
Ibn Al-Qayyim stated that mentioning the abode and eternity does not necessarily mean that there is no end to it, but it means staying for a very long time, like saying an eternal bond. Everything has an eternity for itself, and this eternity could be for the length of the life of this world, as Allaah says (interpretation of meaning): {But never will they wish for it, ever, because of what their hands have put forth.}[2:95]. Ibn Al-Qayyim further said: 'It is known that they desire this in Hell as the saying of Allaah (interpretation of meaning): {And they will call, "O Maalik (Addressing the keeper of Hell) let your Lord put an end to us!"}[43:77]. You should know that there are firm principles in this field beyond which one is not allowed to go. If anything appears to be different from these firm principles, one has to balance them against these, and this is a very important matter. Among these firm principles is that the fate of a non-Muslim is Hell-fire where he will abide forever and ever and will never come out of it in any case. On the contrary, a Muslim will not abide forever and ever in Hell-fire even if he committed major great sins. The evidence for these principles is the saying of Allaah (interpretation of meaning): {Verily, Allaah forgives not that partners should be set up with him in worship, but He forgives except that (anything else) to whom He pleases.}[4:48]. The other evidence is what Al-Bukhari and Muslim reported that the Prophet said: "Jibreel (Gabriel) came to me and gave me glad tidings that whoever dies while not associating any partner with Allaah, will enter Paradise." So if you know this, it becomes clear to you that there is no problem in the texts that you have mentioned which apparently differ from what we have stated. The scholars have answers to this; we will summarize them in the following:
Some scholars are of the view that this applies to whomever thinks that those actions –mentioned in the question- are lawful. Some other scholars are of the view that these texts are mentioned to warn and condemn these actions. However, other scholars think that this is the punishment for them if Allaah wants to punish them, but He may forgive them if He so wishes, and there are other opinions. Anyway, Ahlus-Sunnah agree that the people who have committed major great sins will not abide in Hell-fire forever if they die believing in the Oneness of Allaah. However, the Mu'tazillah and Khawaarij deviate sects are of the view that the people who commit major great sins will be in the Hell-fire forever.
Allaah knows best.