The draw was completed on Monday morning
Donegal and Mayo have both been handed favourable draws in Round 2A of the All Ireland SFC Qualifiers.
Both sides will enjoy home comforts following Monday morning's draw.
Rory Gallagher's Donegal side will host Longford, while Mayo welcome Derry. Stephen Rochford's Mayo will have to endure the long route in search of All-Ireland glory for a second consecutive year.
Meanwhile, Sligo will travel to Andy McEntee's Meath after the Leinster outfit were dumped out of the provincial championships by Kildare over the weekend.
Laois' tie at home to Clare completes the draw.
All Ireland SFC Qualifiers— Newstalk Sport (@NewstalkSport) June 19, 2017
Mayo v Derry
Meath v Sligo
Laois v Clare
Donegal v Longford