The long term solution is not to hand out bread and circuses.  The goal is to make these
people self supporting to the extent possible and to help them get there.
Otherwise, all you are doing is building a permanent underclass who believe that they
are supposed to be provided for.  You do this and you are creating a mob who will
eventually turn on the rest of society and think nothing of it.