func_ret;
> struct stat stat_in, stat_out;
> char* buf;
> -ssize_t (*copyfunc)(int, int, loff_t *, size_t);
> +ssize_t (*copyfunc)(int, int, off_t *, size_t);
>
> if (!PyArg_ParseTuple(args, "ii", _in, _out))
> return NULL;
This looks good to me. I
As per Brian's request on IRC, here's the patchset for adding a C module
to help check locales.
--
Anthony G. Basile, Ph. D.
Chair of Information Technology
D'Youville College
Buffalo, NY 14201
(716) 829-8197
From 76131d44e1731c876840e7925ccff2468ea157a7 Mon Sep 17 00:00:00 2001
From: "Anth
From: "Anthony G. Basile" <bluen...@gentoo.org>
The current method to check for a sane system locale is to use python's
ctypes.util.find_library() to construct a full library path to the
system libc.so and pass that path to ctypes.CDLL() so we can call
toupper() and tolower() di
On 5/29/16 2:30 AM, Michał Górny wrote:
> On Fri, 27 May 2016 10:26:44 -0400
> "Anthony G. Basile" <bas...@opensource.dyc.edu> wrote:
>
>> From: "Anthony G. Basile" <bluen...@gentoo.org>
>>
>> The current method to check for a sane s
On 5/23/16 10:25 AM, Michał Górny wrote:
> On Mon, 23 May 2016 08:08:18 -0400
> "Anthony G. Basile" <bas...@opensource.dyc.edu> wrote:
>
>> On 5/23/16 2:44 AM, Michał Górny wrote:
>>> On Sun, 22 May 2016 13:04:40 -0400
>>> "Anthony G. Basil
From: "Anthony G. Basile" <bluen...@gentoo.org>
When using python2 with some locales, like turkish, chr() is passed values not
in
range(128) which cannot be decoded as ASCII, thus throwing a UnicodeDecodeError
exception. We use _unicode_decode() from portage.util to address t
From: "Anthony G. Basile" <bluen...@gentoo.org>
The current method to check for a sane system locale is to use python's
ctypes.util.find_library() to construct a full library path to the
system libc.so and pass that path to ctypes.CDLL() so we can call
toupper() and tolower() di
From: "Anthony G. Basile" <bluen...@gentoo.org>
Currently portage doesn't include any custom modules written in C/C++.
This commit introduces stub code for building such modules in setup.py.
Signed-off-by: Anthony G. Basile <bluen...@gentoo.org>
---
setup.py | 11 +
On 5/23/16 2:44 AM, Michał Górny wrote:
> On Sun, 22 May 2016 13:04:40 -0400
> "Anthony G. Basile" <bas...@opensource.dyc.edu> wrote:
>
>> From: "Anthony G. Basile" <bluen...@gentoo.org>
>>
>> The current method to check for a sane s
From: "Anthony G. Basile" <bluen...@gentoo.org>
The current method to check for a sane system locale is to use python's
ctypes.util.find_library() to construct a full library path to the
system libc.so and pass that path to ctypes.CDLL() so we can call
toupper() and tolower() di
On 5/19/16 9:38 AM, Michał Górny wrote:
> Dnia 19 maja 2016 14:43:38 CEST, "Anthony G. Basile"
> <bas...@opensource.dyc.edu> napisał(a):
>> From: "Anthony G. Basile" <bluen...@gentoo.org>
>>
>> The current method to check for the syst
From: "Anthony G. Basile" <bluen...@gentoo.org>
The current method to check for the system locale is to use python's
ctypes.util.find_library() to construct a full library path to the
system libc.so which is then passed to ctypes.CDLL(). However,
this gets bogged down in implemen
On 5/18/16 10:51 AM, Anthony G. Basile wrote:
> On 5/18/16 10:26 AM, Brian Dolbec wrote:
>> On Wed, 18 May 2016 06:08:20 -0400
>> "Anthony G. Basile" <bas...@opensource.dyc.edu> wrote:
>>
>>> On 5/18/16 2:50 AM, Alexander Berntsen wrote:
&
On 5/18/16 10:26 AM, Brian Dolbec wrote:
> On Wed, 18 May 2016 06:08:20 -0400
> "Anthony G. Basile" <bas...@opensource.dyc.edu> wrote:
>
>> On 5/18/16 2:50 AM, Alexander Berntsen wrote:
>>> On 17/05/16 14:47, Anthony G. Basile wrote:
>>>>
on, L, rawval, section, vars, 1)
File "/usr/lib64/python2.7/ConfigParser.py", line 723, in
_interpolate_some
option, section, rest, var)
InterpolationMissingOptionError: Bad value substitution:
section: [usersets]
option : directory
key: portage_configroot
rawval : etc/portage/sets
--
Anthony G. Basile, Ph. D.
Chair of Information Technology
D'Youville College
Buffalo, NY 14201
(716) 829-8197
On 5/18/16 2:50 AM, Alexander Berntsen wrote:
> On 17/05/16 14:47, Anthony G. Basile wrote:
>> Since this is the first python module written in C included in
>> portage, as a side effect, we introduce the machinary for future
>> modules in setup.py.
> Split it into two c
On 5/17/16 8:47 AM, Anthony G. Basile wrote:
> +
> + try:
> + from portage_c_check_locale import _c_check_locale
> + (ret, msg) = _c_check_locale()
> + except ImportError:
> + writemsg_level("!!! Unable to import p
On 5/17/16 9:38 AM, Brian Dolbec wrote:
> On Tue, 17 May 2016 09:02:55 -0400
> "Anthony G. Basile" <bas...@opensource.dyc.edu> wrote:
>
>> On 5/17/16 8:47 AM, Anthony G. Basile wrote:
>>> From: "Anthony G. Basile" <bluen...@gentoo.org>
&
On 5/17/16 8:47 AM, Anthony G. Basile wrote:
> From: "Anthony G. Basile" <bluen...@gentoo.org>
>
> The current method to check for the system locale is to use python's
> ctype.util.find_library() to construct a full library path to the
> system libc.so whic
From: "Anthony G. Basile" <bluen...@gentoo.org>
The current method to check for the system locale is to use python's
ctype.util.find_library() to construct a full library path to the
system libc.so which is then passed to ctypes.CDLL(). However,
this gets bogged down in implemen
t; + local IFS=$'\a'
> + local haystack=$'\a'"$@"$'\a'
you want "$*" here not "$@"
>
> - local x
> - for x in "$@"; do
> - [ "${x}" = "${needle}" ] && return 0
> - done
On 02/25/15 14:51, Anthony G. Basile wrote:
On 02/22/15 01:30, Zac Medico wrote:
On 02/21/2015 10:22 PM, Zac Medico wrote:
If we put the real/canonical libstdc++.so path in the DT_NEEDED section,
then it will automatically work with existing soname dependency support.
Actually, we'd also
make me feel better.
--
Anthony G. Basile, Ph. D.
Chair of Information Technology
D'Youville College
Buffalo, NY 14201
(716) 829-8197
may be introduced by clang as well.
--
Anthony G. Basile, Ph. D.
Chair of Information Technology
D'Youville College
Buffalo, NY 14201
(716) 829-8197
and check.
--
Anthony G. Basile, Ph. D.
Chair of Information Technology
D'Youville College
Buffalo, NY 14201
(716) 829-8197
data
+
+ return (
+ ord(data[0:1]) +
+ (ord(data[1:2]) 8) +
+ (ord(data[2:3]) 16) +
+ (ord(data[3:4]) 24)
+ )
Endian fun.
--
Anthony G. Basile, Ph. D.
Chair of Information Technology
D'Youville College
Buffalo, NY
On 06/02/14 12:13, Alec Warner wrote:
On Sat, May 31, 2014 at 4:36 PM, bas...@opensource.dyc.edu wrote:
From: Anthony G. Basile bluen...@gentoo.org
Currently bin/ebuild-helpers/xattr/install uses
${PORTAGE_BIN_PATH}/install.py
as a wrapper to coreutils' install to preserve a file's extended
to get that integrated into portage. 1) I'm not 100% sure how
to do that. 2) We may want to install it at /usr/bin/install-xattr
because I'm sure it will be useful for more than just portage.
Comments?
--
Anthony G. Basile, Ph. D.
Chair of Information Technology
D'Youville College
Buffalo
28 matches
Mail list logo