dylan-lang / opendylan

Open Dylan compiler and IDE
http://opendylan.org/
Other
458 stars 69 forks source link

De-duplicate example libraries #1219

Open cgay opened 5 years ago

cgay commented 5 years ago

Fix this:

$ dylan-tool update
Workspace directory is /home/cgay/dylan/ws.od/.
Reading package file /home/cgay/dylan/ws.od/opendylan/pkg.json
WARNING: No package found in /home/cgay/dylan/ws.od/opendylan/pkg.json, falling back to catalog.
Package pacman-catalog head is already installed.
Loaded 63 packages with 66 versions from /home/cgay/dylan/pkg/local-catalog.json.
Installing deps for package opendylan.
Reading package file /home/cgay/dylan/ws.od/opendylan/pkg.json
WARNING: No package found in /home/cgay/dylan/ws.od/opendylan/pkg.json, falling back to catalog.
WARNING: For library sorted-sequence multiple .lid files apply to platform x86_64-linux.
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/airport/sorted-sequence.hdp
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/airport/sorted-sequence.lid
  /home/cgay/dylan/ws.od/opendylan/sources/examples/dylan-programming/sorted-sequence/sorted-sequence.hdp
  /home/cgay/dylan/ws.od/opendylan/sources/examples/dylan-programming/sorted-sequence/sorted-sequence.lid
  Registry will point to the first one, arbitrarily.
WARNING: For library sixty-unit multiple .lid files apply to platform x86_64-linux.
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/airport/sixty-unit.lid
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/airport/sixty-unit.hdp
  /home/cgay/dylan/ws.od/opendylan/sources/examples/dylan-programming/sixty-unit/sixty-unit.lid
  /home/cgay/dylan/ws.od/opendylan/sources/examples/dylan-programming/sixty-unit/sixty-unit.hdp
  Registry will point to the first one, arbitrarily.
WARNING: For library say multiple .lid files apply to platform x86_64-linux.
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/airport/say.hdp
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/airport/say.lid
  /home/cgay/dylan/ws.od/opendylan/sources/examples/dylan-programming/say/say.hdp
  /home/cgay/dylan/ws.od/opendylan/sources/examples/dylan-programming/say/say.lid
  Registry will point to the first one, arbitrarily.
WARNING: For library scepter-file-front-end multiple .lid files apply to platform x86_64-linux.
  /home/cgay/dylan/ws.od/opendylan/sources/corba/scepter/front-end/file/scepter-file-front-end.hdp
  /home/cgay/dylan/ws.od/opendylan/sources/corba/scepter/front-end/file/scepter-file-front-end.lid
  Registry will point to the first one, arbitrarily.
WARNING: For library task-list multiple .lid files apply to platform x86_64-linux.
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/task-list-1/task-list.hdp
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/task-list-2/task-list.hdp
  Registry will point to the first one, arbitrarily.
WARNING: For library reversi multiple .lid files apply to platform x86_64-linux.
  /home/cgay/dylan/ws.od/opendylan/sources/duim/examples/reversi/reversi.lid
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/reversi/reversi.lid
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/reversi/win32-reversi.lid
  Registry will point to the first one, arbitrarily.
WARNING: For library airport-test multiple .lid files apply to platform x86_64-linux.
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/airport/airport-test.lid
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/airport/airport-test.hdp
  /home/cgay/dylan/ws.od/opendylan/sources/examples/dylan-programming/airport-test/airport-test.lid
  /home/cgay/dylan/ws.od/opendylan/sources/examples/dylan-programming/airport-test/airport-test.hdp
  Registry will point to the first one, arbitrarily.
WARNING: For library definitions multiple .lid files apply to platform x86_64-linux.
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/airport/definitions.hdp
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/airport/definitions.lid
  /home/cgay/dylan/ws.od/opendylan/sources/examples/dylan-programming/definitions/definitions.hdp
  /home/cgay/dylan/ws.od/opendylan/sources/examples/dylan-programming/definitions/definitions.lid
  Registry will point to the first one, arbitrarily.
WARNING: For library local-access-path multiple .lid files apply to platform x86_64-linux.
  /home/cgay/dylan/ws.od/opendylan/sources/runtime-manager/local-access-path/dummy-local-access-path.lid
  /home/cgay/dylan/ws.od/opendylan/sources/runtime-manager/local-access-path/local-access-path.lid
  Registry will point to the first one, arbitrarily.
WARNING: For library time multiple .lid files apply to platform x86_64-linux.
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/airport/time.lid
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/airport/time.hdp
  /home/cgay/dylan/ws.od/opendylan/sources/examples/dylan-programming/time/time.lid
  /home/cgay/dylan/ws.od/opendylan/sources/examples/dylan-programming/time/time.hdp
  Registry will point to the first one, arbitrarily.
WARNING: For library airport multiple .lid files apply to platform x86_64-linux.
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/airport/airport.lid
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/airport/airport.hdp
  /home/cgay/dylan/ws.od/opendylan/sources/examples/dylan-programming/airport/airport.lid
  /home/cgay/dylan/ws.od/opendylan/sources/examples/dylan-programming/airport/airport.hdp
  Registry will point to the first one, arbitrarily.
WARNING: For library interface-builder multiple .lid files apply to platform x86_64-linux.
  /home/cgay/dylan/ws.od/opendylan/sources/duim/examples/interface-builder/win32-interface-builder.lid
  /home/cgay/dylan/ws.od/opendylan/sources/duim/examples/interface-builder/interface-builder.lid
  Registry will point to the first one, arbitrarily.
WARNING: For library daytime-client multiple .lid files apply to platform x86_64-linux.
  /home/cgay/dylan/ws.od/opendylan/sources/network/examples/daytime-client/daytime-client.hdp
  /home/cgay/dylan/ws.od/opendylan/sources/network/examples/simple-daytime-client/daytime-client.hdp
  Registry will point to the first one, arbitrarily.
WARNING: For library helpmate multiple .lid files apply to platform x86_64-linux.
  /home/cgay/dylan/ws.od/opendylan/sources/duim/examples/helpmate/helpmate.lid
  /home/cgay/dylan/ws.od/opendylan/sources/duim/examples/helpmate/helpmate-win32.lid
  Registry will point to the first one, arbitrarily.
WARNING: For library angle multiple .lid files apply to platform x86_64-linux.
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/airport/angle.hdp
  /home/cgay/dylan/ws.od/opendylan/sources/examples/documentation/airport/angle.lid
  /home/cgay/dylan/ws.od/opendylan/sources/examples/dylan-programming/angle/angle.hdp
  /home/cgay/dylan/ws.od/opendylan/sources/examples/dylan-programming/angle/angle.lid
  Registry will point to the first one, arbitrarily.
WARNING: For library testworks-specs multiple .lid files apply to platform x86_64-linux.
  /home/cgay/dylan/pkg/testworks/head/src/specs/win32-testworks-specs.lid
  /home/cgay/dylan/pkg/testworks/head/src/specs/testworks-specs.lid
  Registry will point to the first one, arbitrarily.
WARNING: For library testworks-gui multiple .lid files apply to platform x86_64-linux.
  /home/cgay/dylan/pkg/testworks/head/src/gui/testworks-gui.lid
  /home/cgay/dylan/pkg/testworks/head/src/gui/win32-testworks-gui.lid
  Registry will point to the first one, arbitrarily.

The .hdp files can probably be deleted. The dylan-programming examples don't need to be duplicated. etc.

Related: #1100

Related: we shouldn't have a single, flat, global library namespace.

cgay commented 5 years ago

The reversi example in the DUIM source tree seems to have been given more love. For example making some slots constant, removing whitespace at end of line, and some deeper changes I haven't evaluated yet.

Both examples are installed by the Windows makefile, but in different locations. The Documentation version has some serious warnings in the Reversi code itself. The DUIM one just has serious warnings in the DUIM code.

Maybe this example was modified for the gtk work but not quite cleaned up?