It's common these days to need to replace obsolete DIP chip parts in vintage electronics with small PCBs that fit where the DIP chips used to go. For instance the infamous SID and PLA chips in Commodore computers.
However the most common types of pin headers available to make the legs are actually too thick and they damage DIP sockets. This includes common machined round pins, which are thinner than the square pins, and ok for use in round sockets, but still technically a bit too thick for leaf sockets. They can compress the wipers and make the socket no longer make a good connection with a real DIP chip any more. Also those pins always have a quite large insulator & shoulder, and in some cases there is not much room where a DIP chip came out of for that much vertical thickness of the pin header shoulders and insulators plus the pcb plus the components soldered to the pcb.
Here are 3 different ways to make DIP legs on PCBs, where the legs are thin enough not to stretch out leaf/wiper style DIP sockets, and