So -debuginfo is possible only because
sizeof ("redhat") >= sizeof("debug")
i.e. paths are being rewritten in a fixed size ELF section. The final paths must
be less than or equal to the initial paths (or producing -debuginfo isn't possible).
This was the state since forever: might be fixed in latest debugedit.c *shrug*.
This seems to be the discussion thread re Chrosyophe Fergeau's patch and fix:
http:// mandriva. 598463. n5.nabble. com/Cooker- gcc-4-5- td2640835. html
Note the very last comment in the thread:
Well, there are more problematic cases (most notably builddir being shorter
than debugdir) that are not handled and would be very difficult to fix.
To try to illustrate what that means in plain english, here are the "traditional"
paths in RPM:
builddir = /usr/src/redhat
debugdir = /usr/src/debug
So -debuginfo is possible only because
sizeof ("redhat") >= sizeof("debug")
i.e. paths are being rewritten in a fixed size ELF section. The final paths must
be less than or equal to the initial paths (or producing -debuginfo isn't possible).
This was the state since forever: might be fixed in latest debugedit.c *shrug*.