--specfile --specedit pacth [Was: Re: error: ‘struct FDIO_s’ has no member named ‘_open’]

2011-02-18 Thread Silvan Calarco
On Sunday 02 January 2011 18:42:23 Jeff Johnson wrote: Your patch NEEDS --specedit. Can you describe the usage case so I can figure out a replacement? Sorry for the late reply, to get a preprocessed specfile output we just use: rpm -q --specfile --specedit gcc.spec Where --specedit could be

Re: error: ‘struct FDIO_s’ has no member named ‘_open’

2011-01-02 Thread Silvan Calarco
On Thursday 30 December 2010 16:58:43 Jeff Johnson wrote: Two asides: 1) I have the start of a functionally equivalent replacement for genpkglist/gensrcpkglist written in C. I can finish writing those two tools (in C using POPT) with c couple of days of work if there's interest. My interest

Re: error: ‘struct FDIO_s’ has no member named ‘_open’

2011-01-02 Thread Jeff Johnson
On Jan 2, 2011, at 12:21 PM, Silvan Calarco wrote: On Thursday 30 December 2010 16:58:43 Jeff Johnson wrote: Two asides: 1) I have the start of a functionally equivalent replacement for genpkglist/gensrcpkglist written in C. I can finish writing those two tools (in C using POPT) with c

Re: Using Fopen() [Was: Re: error: ‘struct FDIO_s’ has no member named ‘_open’]

2010-12-30 Thread Silvan Calarco
On Wednesday 29 December 2010 15:37:35 Per Øyvind Karlsen wrote: try: fd = Fopen(headerFile, r); ;) Obvious :) Thanks. Silvan -- Regards, Per Øyvind __ RPM Package Manager

Re: error: ‘struct FDIO_s’ has no member named ‘_open’

2010-12-30 Thread Silvan Calarco
On Tuesday 28 December 2010 18:10:43 Jeff Johnson wrote: SO instead of headerGetEntry() the replacement becomes something like this (this is my paradigm anyways, adjust to tate if you dislike using alloca): HE_t he = memset(alloca(sizeof(*he)), 0, sizeof(*he)); he-tag =

Re: error: ‘struct FDIO_s’ has no member named ‘_open’

2010-12-30 Thread Jeff Johnson
On Dec 30, 2010, at 10:17 AM, Silvan Calarco wrote: On Tuesday 28 December 2010 18:10:43 Jeff Johnson wrote: SO instead of headerGetEntry() the replacement becomes something like this (this is my paradigm anyways, adjust to tate if you dislike using alloca): HE_t he =

Using Fopen() [Was: Re: error: ‘struct FDIO_s’ has no member named ‘_open’]

2010-12-29 Thread Silvan Calarco
Hi, On Tuesday 28 December 2010 17:01:50 Jeff Johnson wrote: The solution here is to use Fopen(), not fdOpen(). I'm testing this in a function but it doesn't work: FD_t fd; int rc; fd = Fopen(headerFile, O_RDONLY); if (Fileno(fd) 0) {

Re: Using Fopen() [Was: Re: error: ‘struct FDIO_s ’ has no member named ‘_open’]

2010-12-29 Thread Per Øyvind Karlsen
2010/12/29 Silvan Calarco silvan.cala...@mambasoft.it: Hi, On Tuesday 28 December 2010 17:01:50 Jeff Johnson wrote: The solution here is to use Fopen(), not fdOpen(). I'm testing this in a function but it doesn't work:          FD_t fd;          int rc;          fd = Fopen(headerFile,

Re: error: ‘struct FDIO_s’ has no member named ‘_open’

2010-12-28 Thread Jeff Johnson
On Dec 28, 2010, at 10:38 AM, Silvan Calarco wrote: Hi, I'm trying to port to rpm 5.2.1 an application that was previously made for rpm 4.4.9. The application used to read the header with the following code: FD_t fd; fd = fdOpen(headerFile, O_RDONLY, 0); but with

Re: error: ‘struct FDIO_s’ has no member named ‘_open’

2010-12-28 Thread Silvan Calarco
On Tuesday 28 December 2010 17:01:50 Jeff Johnson wrote: On Dec 28, 2010, at 10:38 AM, Silvan Calarco wrote: Hi, I'm trying to port to rpm 5.2.1 an application that was previously made for rpm 4.4.9. The application used to read the header with the following code: FD_t fd;

Re: error: ‘struct FDIO_s’ has no member named ‘_open’

2010-12-28 Thread Jeff Johnson
On Dec 28, 2010, at 11:43 AM, Silvan Calarco wrote: On Tuesday 28 December 2010 17:01:50 Jeff Johnson wrote: On Dec 28, 2010, at 10:38 AM, Silvan Calarco wrote: Hi, I'm trying to port to rpm 5.2.1 an application that was previously made for rpm 4.4.9. The application used to read the