netlist: Allow duplicated pins to stay unconnected
commit9b74190843364861b9fc6841d927dc2747d63488
authorRoland Lutz <rlutz@hedmen.org>
Sat, 4 Mar 2023 21:39:12 +0000 (4 22:39 +0100)
committerRoland Lutz <rlutz@hedmen.org>
Sat, 4 Mar 2023 21:44:24 +0000 (4 22:44 +0100)
treedab4bcdcdd803e0b4ecf74d6309b0de0de0a3fb9
parent04d6c80959b34f4a7f820c40818c23a5d84b73fd
netlist: Allow duplicated pins to stay unconnected

In gEDA/gaf 1.10.0, I changed the handling of identically-numbered pins
in multiple components of a package.  This caused auto-generated nets
on unconnected pins to conflict with the connected net and with each
other unless each pin would be explicitly connected.

Fix this by ignoring unconnected nets if at least one instance of the
pin is connected, and using only a single unconnected net otherwise.

Reported-by: Richard Rasker <rasker@linetec.nl>
xorn/src/gaf/netlist/package.py
xorn/tests/netlist/Makefile.am
xorn/tests/netlist/regression/gschemrc
xorn/tests/netlist/regression/unconnected_dupl_pin-geda.out [new file with mode: 0644]
xorn/tests/netlist/regression/unconnected_dupl_pin-symbols/component.sym [new file with mode: 0644]
xorn/tests/netlist/regression/unconnected_dupl_pin-symbols/power.sym [new file with mode: 0644]
xorn/tests/netlist/regression/unconnected_dupl_pin.sch [new file with mode: 0644]