Yes if the version in the distribution is different it work OK.
18.04 and 18.10 use libraw16 so no problem.
19.04 and 19.10 use libraw19 and it break when libraw is replaced by the master version with the same name.
A solution is if libraw change it's version to 20 instead of making a snapshot with the old version number.
Changing its version to 20 will work for now but it may break things again as soon as Ubuntu start including libraw version 20 in their distributions. I prefer Jasem's workaround to rename his version to librawcr3 until Ubuntu include this version or some of the fixes in the code make it to the main project.
Ok, so this is going to take a while to make the necessary changes as I have a very long TODO list I need to get through. So if anyone can make the necessary changes it would be greatly appreciated.
For this change, the source files have be changed, then from it create a diff which we can add to the debian packaging to be applied to source when building the package. The debian files all need to adopt the new library name.
As I already explained to Jasem, unfortunately I don't have time anymore to look into this and the little amount of time I was able to spend on this wasn't enough to solve this properly. Sorry!