Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95402 - pppconfig enhancements
Summary: pppconfig enhancements
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High enhancement (vote)
Assignee: Gentoo Dialup Developers
URL: http://http.us.debian.org/debian/pool...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-07 17:46 UTC by Slobodan D. Sredojevic
Modified: 2005-09-07 12:35 UTC (History)
0 users

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


Attachments
updated pppconfig-2.3.11 ebuild (pppconfig-2.3.11.ebuild,1.24 KB, text/plain)
2005-06-07 17:48 UTC, Slobodan D. Sredojevic
Details
Latest updated ebuild (pppconfig-2.3.11.ebuild,1.28 KB, text/plain)
2005-06-08 18:05 UTC, Slobodan D. Sredojevic
Details
revision bump (pppconfig-2.3.11-r2.ebuild,1.65 KB, text/plain)
2005-09-06 00:46 UTC, Slobodan D. Sredojevic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Slobodan D. Sredojevic 2005-06-07 17:46:16 UTC
When I start pppconfig I get: "/etc/ppp/peers doesn't exist" and it quits.

Also, if there is no "pap-secrets" file, it complains and quits with message:
Can't open /etc/ppp/pap-secrets

pppconfig archive contains translation files (po files). Updated ebuild make use of them. Added nls into IUSE.

Note: I am not aware of "localesdir" env. variable that we can replace hardcoded /usr/share/locale path?
Comment 1 Slobodan D. Sredojevic 2005-06-07 17:48:26 UTC
Created attachment 60814 [details]
updated pppconfig-2.3.11 ebuild

This fixes three issues I noticed and explained above
Comment 2 Slobodan D. Sredojevic 2005-06-08 18:05:19 UTC
Created attachment 60878 [details]
Latest updated ebuild

Found "touch" command makes /etc/ppp/pap-secrets world readable (644). Added
fperms line to fix this behavior. Thanks goes to Jeffrey0 at #gentoo-bugs for
pointing this out.
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2005-06-12 05:14:52 UTC
first 2 issues aren't pppconfig's problems. I've fixed those in ppp-2.4.2-r12
and ppp-2.4.3-r6.

the last problem had been fixed in pppconfig-2.3.11-r1. 
thanks for your contribution.
Comment 4 Slobodan D. Sredojevic 2005-09-06 00:46:06 UTC
Created attachment 67716 [details]
revision bump

Alin,

- You use MY_LOCALE_LANGUAGES in src_compile() and src_install() butthat 
  variable is not exported from src_unpack().
  
- pppconfig package need to depend on gettext with or without nls USE flag 
  cause it is bundled with translation files that need to be converted to 
  binary .mo files and this is done by msgfmt that is part of gettext. Do we 
  really need nls use flag here? Translation files for GNOME are installed when

  we have -nls. Also, seems nls use flag is not for all this and it is used for

  other purposes. So, my wrong when suggesting introducing it.
  
Ssl
Comment 5 Slobodan D. Sredojevic 2005-09-06 00:47:04 UTC
Reopening bug
Comment 6 Alin Năstac (RETIRED) gentoo-dev 2005-09-06 08:31:44 UTC
(In reply to comment #4)
> Created an attachment (id=67716) [edit]
> revision bump
> 
> Alin,
> 
> - You use MY_LOCALE_LANGUAGES in src_compile() and src_install() butthat 
>   variable is not exported from src_unpack().

doesn't need to be exported. as far as I know, both functions are executed by
the same bash process.

>   
> - pppconfig package need to depend on gettext with or without nls USE flag 
>   cause it is bundled with translation files that need to be converted to 
>   binary .mo files and this is done by msgfmt that is part of gettext. Do we 

where exactly did you saw msgfmt used besides the case nls flag is set?

>   really need nls use flag here? Translation files for GNOME are installed when
> 
>   we have -nls. Also, seems nls use flag is not for all this and it is used for
> 
>   other purposes. So, my wrong when suggesting introducing it.

I quote: nls - Adds Native Language Support (using gettext - GNU locale utilities)
seems to me this is *exactly* for this kind of files (namely *.mo files).

the fact that GNOME herd chooses to ignore such flag (or maybe they don't have
--enable-nls in their config) isn't a reason to remove such functionality from
pppconfig, isn't it?
Comment 7 Slobodan D. Sredojevic 2005-09-07 01:40:12 UTC
> > - You use MY_LOCALE_LANGUAGES in src_compile() and src_install() butthat 
> >   variable is not exported from src_unpack().
> 
> doesn't need to be exported. as far as I know, both functions are executed by
> the same bash process.

I thought so, too -- it is the same bash process. Actually when preparing ebuild
for #71179 I remembered your solution for handling LINGUAS and tried to apply
the same. But it didn't work. Have you tried to put LINGUAS="es de" into
/etc/make.conf for pppconfig? Result: no one locale will be installed.
> 
> >   
> > - pppconfig package need to depend on gettext with or without nls USE flag 
> >   cause it is bundled with translation files that need to be converted to 
> >   binary .mo files and this is done by msgfmt that is part of gettext. Do we 
> 
> where exactly did you saw msgfmt used besides the case nls flag is set?

Nowhere, you are right. It is just I believe installing locale files should be
handled by LINGUAS variable that users put into /etc/make.conf. If there is no
LINGUAS set, then install all locale. In both cases we need gettext as clear
dep. However it is just my opinion.
 
> I quote: nls - Adds Native Language Support (using gettext - GNU locale utilities)
> seems to me this is *exactly* for this kind of files (namely *.mo files).
> 
> the fact that GNOME herd chooses to ignore such flag (or maybe they don't have
> --enable-nls in their config) isn't a reason to remove such functionality from
> pppconfig, isn't it?

Sorry, I am not familiar enough with what --enable-nls do and how it is handled
inside gentoo so can't comment.
Comment 8 Alin Năstac (RETIRED) gentoo-dev 2005-09-07 02:21:37 UTC
I've verified with LINGUAS="en ro" (en does not exist in this package, only ro
gets installed).

as for nls flag... this is a super flag sort of speak. if it isn't set, it will
not install mo files at all. LINGUAS decides what mo files are installed and if
nls is set and LINGUAS is unset/empty, all mo files are installed.

really, I don't see why you reopened this bug, but I will publish a new revision
of pppconfig that use eutils.eclass for stripping unsupported languages, which
seems to be the right thing to do at the moment.
Comment 9 Alin Năstac (RETIRED) gentoo-dev 2005-09-07 12:10:00 UTC
you're right!

I've re-tested the ebuild and see with my own eyes ( portage ver is 2.0.51.22-r2
and bash ver is 3.0-r12). 
Apparently, global variables defined in src_unpack (or any other function for
that matter) will be empty in subsequent functions.
Comment 10 Alin Năstac (RETIRED) gentoo-dev 2005-09-07 12:35:55 UTC
forgot to mention... I've fixed the problem in net-dialup/pppconfig-2.3.11-r2 by
moving all locale messages code in src_install. also, I've removed -r1 from the
tree.