“jury rig”
It’s really called “Gerry rig.” Back during WWI & WWII we called the Germans “Gerrys.” Even though they were our enemies, we all recognized that they could repair things with spit and glue. That’s why things fixed from whatever-you-have are called “Garry rigged.”
:-)
(Now you can hate me.)
Oxford English Dictionary dates "jury-mast: a temporary mast put up to replace one that has been broken away" to 1616. Prior to the World Wars, and indeed Germany.