Cosmic-ray generated bubbles around their sources