Where an adverse claim is filed during the period of publication, it shall be upon oath of the person or persons making the same, and shall show the nature, boundaries, and extent of such adverse claim, and all proceedings, except the publication of notice and making and filing of the affidavit thereof, shall be stayed until the controversy shall have been settled or decided by a court of competent jurisdiction, or the adverse claim waived. It shall be the duty of the adverse claimant, within thirty days after filing his claim, to commence proceedings in a court of competent jurisdiction, to determine the question of the right of possession, and prosecute the same with reasonable diligence to final judgment; and a failure so to do shall be a waiver of his adverse claim. After such judgment shall have been rendered, the party entitled to the possession of the claim, or any portion thereof, may, without giving further notice, file a certified copy of the judgment roll with the register of the land office, together with the certificate of the Director of the Bureau of Land Management that the requisite amount of labor has been expended or improvements made thereon, and the description required in other cases, and shall pay to the register $5 per acre for his claim, together with the proper fees, whereupon the whole proceedings and the judgment roll shall be certified by the register to the Director of the Bureau of Land Management, and a patent shall issue thereon for the claim, or such portion thereof as the applicant shall appear, from the decision of the court, to rightly possess. If it appears from the decision of the court that several parties are entitled to separate and different portions of the claim, each party may pay for his portion of the claim, with the proper fees, and file the certificate and description by the Director of the Bureau of Land Management whereupon the register shall certify the proceedings and judgment roll to the Director of the Bureau of Land Management, as in the preceding case, and patents shall issue to the several parties according to their respective rights. Nothing herein contained shall be construed to prevent the alienation of the title conveyed by a patent for a mining claim to any person whatever.