This is still being worked on, but the main code has hit the tree. *NOTE YOU MUST UPDATE PKG_ADD TO USE THIS*
- update-plist will now annotate static libraries and shared objects as well - by default, nothing new happens. If DEBUG_PACKAGES is set to non empty, some magic will happen. - the production of debug packages is limited to amd64 for performance reasons. - DEBUG_PACKAGES should be set to the list of subpackages that contain debug information. - for a !MULTI_PACKAGES port, the default SUBPACKAGE is actually -, and thus setting DEBUG_PACKAGES=- will give you the magic. - during make fake, a new script (build-debug-info) will run, read existing plists, produce debug packing-lists, and a debug-info file - that debug-info is used to move debugging info into .debug subdirectories - during make package, packages with debug-* names will be transparently created. I started with DEBUG_FILES to manually select the files that need some love, but in most cases, build-debug-info should work correctly. - coercing the port to actually create debugging stuff ought to be made through DEBUG_CONFIGURE_ARGS (often) or using DEBUG directly (set to -g for DEBUGGING) You should notice some ports gaining debug packages. They are all named debug-*, as there are no packages starting with debug-*. A lot of thanks to pirofti for getting the ball rolling.