1 |
Sorry for double-posting, the previous copy of this message has been sent |
2 |
only to Stroller and not to the gentoo-user mailing list. |
3 |
|
4 |
2016-01-04 12:47 GMT+02:00 Stroller <stroller@×××××××.com>: |
5 |
|
6 |
First of all, thank you for replying and excuse for the delay. |
7 |
|
8 |
> A resend of this message, which I posted yesterday. Is the list dropping my mail? |
9 |
|
10 |
Probably, yes, as I have received only this one. |
11 |
|
12 |
> On Fri, 1 January 2016, at 4:59 p.m., gevisz <gevisz@×××××.com> wrote: |
13 |
>> |
14 |
>> Below is the additional details of the second answer: |
15 |
>> |
16 |
>>> Since you build from source on gentoo: |
17 |
>>> Can you check whether this appears when running ./configure? |
18 |
>>> checking for nl_langinfo and CODESET… yes |
19 |
> |
20 |
> You should see this by re-emerging the package and watching the screen |
21 |
> - there should be lots of "checking for" lines during the emerge output. |
22 |
> You should be able to scroll back through it all when the package has |
23 |
> finished emerging. |
24 |
> |
25 |
>>> Also, which arguments are used for ./configure? |
26 |
> |
27 |
> Look in the ebuild. [1] |
28 |
> |
29 |
> It looks like it's configured with --with-lispdir=/$path/$to/$directory if you have the USE=emacs. |
30 |
|
31 |
No, I have emacs, nls and xemacs user flags all unset for this package: |
32 |
|
33 |
$ equery uses gtypist |
34 |
[ Legend : U - final flag setting for installation] |
35 |
[ : I - package is installed with flag ] |
36 |
[ Colors : set, unset ] |
37 |
* Found these USE flags for app-misc/gtypist-2.9.5: |
38 |
U I |
39 |
- - emacs : Add support for GNU Emacs |
40 |
- - nls : Add Native Language Support (using gettext - GNU locale |
41 |
utilities) |
42 |
- - xemacs : Add support for XEmacs |
43 |
|
44 |
> It looks like it applies an xemacs compatibility patch [2], but I doubt that makes a difference. |
45 |
> |
46 |
> Otherwise, as far as I can see, it uses the makefile's defaults. |
47 |
> |
48 |
> I'm not sure what's going on with "$(use_enable nls)" in the ebuild |
49 |
> - perhaps someone else on this list could explain what USE=nls does for this package. |
50 |
> |
51 |
>>> /* printf("encoding is %s, UTF8=%d\n", locale_encoding, isUTF8Locale); */ |
52 |
>>> |
53 |
>>> If that doesn't help, can you enable to printf above and post the output? |
54 |
> |
55 |
> If you run `sudo ebuild /usr/portage/app-misc/gtypist/gtypist-2.9.5.ebuild unpack` |
56 |
> you should be able to find the file with that line. |
57 |
|
58 |
I did it, and the ebuild has been unpacked to |
59 |
/var/tmp/portage/app-misc/gtypist-2.9.5/work |
60 |
|
61 |
> The "/*" and "*/" make that line into a comment, so "uncomment" it [3] by removing them. Save the file. |
62 |
|
63 |
Did it in the file |
64 |
/var/tmp/portage/app-misc/gtypist-2.9.5/work/gtypist-2.9.5/src/gtypist.c. |
65 |
|
66 |
> Now you should be able to run `sudo ebuild /usr/portage/app-misc/gtypist/gtypist-2.9.5.ebuild install` |
67 |
> to install gtypist with the modified code. |
68 |
|
69 |
Did it as well, though without understanding why this command should |
70 |
take into account the changes I had done in the file |
71 |
/var/tmp/portage/app-misc/gtypist-2.9.5/work/gtypist-2.9.5/src/gtypist.c |
72 |
|
73 |
There was nothing in the output from the uncommented line (/encoding |
74 |
finds nothing). |
75 |
|
76 |
Any further help would be appreciated. |
77 |
|
78 |
> I haven't done this in a while, so hopefully someone will correct me if I've got anything wrong. |
79 |
> My first instinct was to epatch, but I don't think that's necessary. |
80 |
> |
81 |
> HTH, |
82 |
> |
83 |
> Stroller. |
84 |
> |
85 |
> [1] https://gitweb.gentoo.org/repo/gentoo.git/plain/app-misc/gtypist/gtypist-2.9.5.ebuild |
86 |
> |
87 |
> [2] https://gitweb.gentoo.org/repo/gentoo.git/plain/app-misc/gtypist/files/gtypist-2.8.3-xemacs-compat.patch |
88 |
> |
89 |
> [3] http://english.stackexchange.com/questions/33483/ |
90 |
> |
91 |
> |