[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#847478: FTBFS: needs to Build-Depends on gperf



Control: retitle -1 Locale hash tables are not built from source; rebuilding requires gperf
Control: tag -1 - moreinfo
Control: severity -1 normal

On Sun, 18 Dec 2016 22:28:33 +0100 Aurelien Jarno <aurelien@aurel32.net> wrote:
> control: tag -1 + moreinfo
> 
> On 2016-12-08 16:42, Ximin Luo wrote:
> > Package: glibc
> > Version: 2.24-7
> > Severity: serious
> > Tags: patch
> > Justification: fails to build from source (but built successfully in the past)
> > 
> > Dear Maintainer,
> > 
> > whilst trying to build glibc:
> > 
> > /usr/bin/install -c -m 644 /tmp/debrepro.uGH5xEsmL1/build/source/build-tree/amd64-libc/gnu/lib-names-64.h /tmp/debrepro.uGH5xEsmL1/build/source/debian/tmp-libc/usr/include/gnu/lib-names-64.h
> > /usr/bin/install -c -m 644 /tmp/debrepro.uGH5xEsmL1/build/source/build-tree/amd64-libc/libBrokenLocale.map /tmp/debrepro.uGH5xEsmL1/build/source/debian/tmp-libc/usr/lib/x86_64-linux-gnu/libBrokenLocale_pic.map
> > cd programs \
> > && gperf -acCgopt -k1,2,5,9,$ -L ANSI-C -N charmap_hash charmap-kw.gperf > charmap-kw.h.new
> > /bin/bash: line 1: gperf: command not found
> > Makefile:66: recipe for target 'programs/charmap-kw.h' failed
[...]
> Strange, I am not able to reproduce the problem, the package built fine
> here. Also it built fine on the build daemons for quite some time and
> there hasn't been any recent change besides hurd one.
> 
> Are you doing something special to trigger this bug? Do you have the
> build log?

Looking for gperf in the source, I see:

[locale/Makefile]
programs/%-kw.h: programs/%-kw.gperf
        cd programs \
        && $(GPERF) $(GPERFFLAGS) -N $(@F:-kw.h=_hash) $(<F) > $(@F).new
        mv -f $@.new $@

and there are these files:

-rw-rw---- 1 ben ben  1553 Aug  2 03:01 locale/programs/charmap-kw.gperf
-rw-rw---- 1 ben ben  7086 Aug  2 03:01 locale/programs/charmap-kw.h
-rw-rw---- 1 ben ben 10382 Aug  2 03:01 locale/programs/locfile-kw.gperf
-rw-rw---- 1 ben ben 25742 Aug  2 03:01 locale/programs/locfile-kw.h

All the timestamps are equal in the upstream tarball, but if the .gperf
files are touched before building it will result in this build failure.

Ben.

-- 
Ben Hutchings
All the simple programs have been written, and all the good names
taken.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: