An agreement to sell Yahoo’s sprawling portfolio of sites like Yahoo News, Flickr and Tumblr would mark the conclusion of a tough four years for CEO Marissa Mayer during which she tried and largely failed to breathe life into Sunnyvale’s ailing Internet giant. The company announced in February that it would look into selling in an effort to separate...