Happened to a BA jumbo a fair few years ago. They had to reprogram the departure, put 'PORPA' into the box with the necessary restrictions but forgot to make it an overfly waypoint.
The aircraft turned before the waypoint in order to intercept the outbound track to the next point and gave them an EGPWS pull up!
Often briefed when departing HKG.