Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318995 - app-misc/tmux-1.2 build error with et_EE locale
Summary: app-misc/tmux-1.2 build error with et_EE locale
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tiago Cunha (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-08 21:51 UTC by Harald van Dijk (RETIRED)
Modified: 2010-05-09 22:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
tmux-1.2-locale.patch (tmux-1.2-locale.patch,628 bytes, patch)
2010-05-08 21:52 UTC, Harald van Dijk (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Harald van Dijk (RETIRED) gentoo-dev 2010-05-08 21:51:20 UTC
[...]
x86_64-pc-linux-gnu-gcc -march=native -ggdb -O2 -DBUILD="\"1.2\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote.   -c -o input-keys.o input-keys.c
x86_64-pc-linux-gnu-gcc -march=native -ggdb -O2 -DBUILD="\"1.2\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote.   -c -o input.o input.c
x86_64-pc-linux-gnu-gcc -march=native -ggdb -O2 -DBUILD="\"1.2\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote.   -c -o job.o job.c
x86_64-pc-linux-gnu-gcc -march=native -ggdb -O2 -DBUILD="\"1.2\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote.   -c -o key-bindings.o key-bindings.c
x86_64-pc-linux-gnu-gcc -march=native -ggdb -O2 -DBUILD="\"1.2\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote.   -c -o key-string.o key-string.c
x86_64-pc-linux-gnu-gcc -march=native -ggdb -O2 -DBUILD="\"1.2\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote.   -c -o layout-set.o layout-set.c
x86_64-pc-linux-gnu-gcc -march=native -ggdb -O2 -DBUILD="\"1.2\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote.   -c -o layout-string.o layout-string.c
x86_64-pc-linux-gnu-gcc -march=native -ggdb -O2 -DBUILD="\"1.2\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote.   -c -o layout.o layout.c
x86_64-pc-linux-gnu-gcc -march=native -ggdb -O2 -DBUILD="\"1.2\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote.   -c -o log.o log.c
x86_64-pc-linux-gnu-gcc -march=native -ggdb -O2 -DBUILD="\"1.2\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote.   -c -o mode-key.o mode-key.c
x86_64-pc-linux-gnu-gcc -march=native -ggdb -O2 -DBUILD="\"1.2\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote.   -c -o names.o names.c
x86_64-pc-linux-gnu-gcc -march=native -ggdb -O2 -DBUILD="\"1.2\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote.   -c -o options.o options.c
x86_64-pc-linux-gnu-gcc -march=native -ggdb -O2 -DBUILD="\"1.2\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote.   -c -o osdep-darwin.o osdep-darwin.c
osdep-darwin.c: In function ‘osdep_get_name’:
osdep-darwin.c:33:27: error: ‘KERN_PROC’ undeclared (first use in this function)
osdep-darwin.c:33:27: note: each undeclared identifier is reported only once for each function it appears in
osdep-darwin.c:33:38: error: ‘KERN_PROC_PID’ undeclared (first use in this function)
osdep-darwin.c:35:20: error: storage size of ‘kp’ isn’t known
make: *** [osdep-darwin.o] Error 1
 * ERROR: app-misc/tmux-1.2 failed:
 *   emake failed
[...]

The problem is that osdep-darwin is meant to be excluded from being built by Makefile/GNUmakefile's

  echo *.c|sed 's|osdep-[a-z0-9]*.c||g'

but a-z doesn't match the w in darwin in an et_EE locale. The locale should be forced to C here. Patch to be attached.
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2010-05-08 21:52:11 UTC
Created attachment 230821 [details, diff]
tmux-1.2-locale.patch

Should I send this upstream too, or will you?
Comment 2 Tiago Cunha (RETIRED) gentoo-dev 2010-05-09 21:37:33 UTC
Unfortunately, I won't have the time to commit this in the next week or so. But, feel free to epatch tmux-1.2.ebuild (there's no point in bumping it, since it fixes a compilation error), and send it upstream.

Thanks for reporting this.
Comment 3 Harald van Dijk (RETIRED) gentoo-dev 2010-05-09 22:13:19 UTC
Sure thing, in the tree now and reported on sf.