On 2015-07-15 17:28 +0200, Axel Beckert wrote: > Hi again, > > Axel Beckert wrote: >> > CC -g -O2 -fstack-protector-strong -Wformat >> -Werror=format-security -D_FORTIFY_SOURCE=2 -L -lncurses -ltinfo >> -Wl,-z,relro ttyclock.c >> >> ^^ > [...] >> Reason for this is that the parameter to "-L" is missing and hence >> "-lncurses" is parsed as parameter to "-L", i.e. ignored. >> >> This comes from this line in the upstream Makefile: >> >> LDFLAGS := -L $$(ncurses5-config --libdir) $$(ncurses5-config --libs) >> ${LDFLAGS} >> >> And "ncurses5-config --libdir" indeed outputs nothing. (No idea why.) > > The reason for this can be found in > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745479#31 and > https://anonscm.debian.org/cgit/collab-maint/ncurses.git/tree/debian/patches/03-debian-ncursesconfig-omit-L.diff
FWIW, Fedora has been carrying the same patch for more than eight years, so any package which relies on "ncurses5-config --libdir" producing any output is broken there. > Cc'ing Sven Joachim to make him aware of this issue. Maybe this could > be fixed in ncurses itself, e.g. by always outputting "/usr/lib" or such. Outputting "/usr/lib" is not really correct, but it might work. At least until some particularly clever software comes along that actually expects libncurses.so in that directory. I'd prefer to leave things in ncurses as they are and fix the callers (only tty-clock seems to be affected). Cheers, Sven -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org