Description
Revisions and Commits
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | joebonrichie | T169 Tilix | |||
| Resolved | • tristan957 | T2402 GtkD | |||
| Resolved | joebonrichie | T2406 Dmd: fix soname versioning and provide libphobos2.so.* | |||
| Resolved | None | T2407 Dmd: fix soname versioning and provide libphobos2.so.* |
Event Timeline
It is needed because of things like https://dev.solus-project.com/T2402#42397
Everything compiled with -defaultlib=:libphobos2.so links to libphobos2.so.0., so libphobos2.so.0. is needed at runtime.
I agree, that it should not have empty suffix.
@hjajet I looked at his because i also ran into the soname version issue and your patch did solve the issue for me. I noticed a few things which could be improved
- probably all libphobos.so* files should land in dmd-phobos
- i guess dmd should have a rundep for dmd-phobos
- export CXX_KIND="g++" is not required anymore. this forces the makefile to use -std=gnu++98 which was necessary for older versions of dmd but has been resolved
probably all libphobos.so* files should land in dmd-phobos
Is there any libphobos.so* which is not in dmd-phobos?
But pattern should not require .so.0.*, I will update the patch.
i guess dmd should have a rundep for dmd-phobos
I am not sure, it is not necessary to compile anything, it seems to be needed only at runtime.
export CXX_KIND="g++" is not required anymore. this forces the makefile to use -std=gnu++98 which was necessary for older versions of dmd but has been resolved
It is possible (I do not know), but it does not (yet) break anything. Should it be part of this task?
libphobos2.so is still in dmd
i guess dmd should have a rundep for dmd-phobos
I am not sure, it is not necessary to compile anything, it seems to be needed only at runtime.
it looks like dmd is by default linking statically against libphobos.a. so it will not be required as a dep even at runtime http://www.digitalmars.com/d/archives/digitalmars/D/Phobos_still_being_statically_linked_in_273501.html
One more thing i noticed is that there is a trailing whitespace in the patch.
just as a disclaimer this still has be be reviewed by someone with access to the build server :P
libphobos2.so is still in dmd
libphobos2.so is needed while linking if -defaultlib=:libphobos2.so is used, but not at runtime.
libphobos2.so.* is used at runtime in this case.
Maybe libphobos2.so should be in dmd-phobos-devel, but I thing it is not necessary.
it looks like dmd is by default linking statically against libphobos.a. so it will not be required as a dep even at runtime http://www.digitalmars.com/d/archives/digitalmars/D/Phobos_still_being_statically_linked_in_273501.html
Yes, but it may link dynamically if -defaultlib=:libphobos2.so is used.
just as a disclaimer this still has be be reviewed by someone with access to the build server :P
That would be nice :D