From: Malcolm on
On 28 Dec 2009 18:24:46 GMT
central <central77(a)fastmailNOSPAM.fm> wrote:

> OK guys, I'm dabbling out of my depth again:
> I have some source code, lets call it "pan 0.133" because thats what
> its called (except that I have changed one variable to enable me to
> have more than 4 connections to a sever open). I know it compiles,
> and runs (and, in fact, my changes work correctly!) under 11.0. I now
> want to 'upgrade' my 11.2 to the same modded version of pan, but
> rather than install thru ./ configure etc, I'd prefer to create an
> rpm and install that.
>
> Where would people suggest I start? I've tried krpmbuild in 11.0 but
> a: it didnt work, and b: it doesnt appear to be in 11.2 yet.
>
> Clicky / pointy things preferred, but cli solutions for idiots
> welcomed.
Hi
Just grab the src rpm and use the spec file from that to build your
rpm. Create a patch of your changes like this.
Make a copy of the file you wish to patch (in the location of the
source tree) and call it something.orig. Now make your changes to orig
file, then

diff -Naur <path>/something <path>/something.orig somthing.diff

In the spec file, you add an item called;

Patch1: something.diff

Then in the %prep section of the spec file you would add;

%patch1

--
Cheers Malcolm ��� (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.39-0.3-default
up 1 day 15:58, 3 users, load average: 1.13, 0.43, 0.16
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

From: Malcolm on
On 28 Dec 2009 21:04:48 GMT
central <central77(a)fastmailNOSPAM.fm> wrote:

> On Mon, 28 Dec 2009 12:33:23 -0600, Malcolm wrote:
>
> > On 28 Dec 2009 18:24:46 GMT
> > central <central77(a)fastmailNOSPAM.fm> wrote:
> >
> >> OK guys, I'm dabbling out of my depth again: I have some source
> >> code, lets call it "pan 0.133" because thats what its called
> >> (except that I have changed one variable to enable me to have more
> >> than 4 connections to a sever open). I know it compiles, and runs
> >> (and, in fact, my changes work correctly!) under 11.0. I now want
> >> to 'upgrade' my 11.2 to the same modded version of pan, but rather
> >> than install thru ./ configure etc, I'd prefer to create an rpm
> >> and install that.
> >>
> >> Where would people suggest I start? I've tried krpmbuild in 11.0
> >> but a: it didnt work, and b: it doesnt appear to be in 11.2 yet.
> >>
> >> Clicky / pointy things preferred, but cli solutions for idiots
> >> welcomed.
> > Hi
> > Just grab the src rpm and use the spec file from that to build your
> > rpm. Create a patch of your changes like this. Make a copy of the
> > file you wish to patch (in the location of the source tree) and
> > call it something.orig. Now make your changes to orig file, then
> >
> > diff -Naur <path>/something <path>/something.orig somthing.diff
> >
> > In the spec file, you add an item called;
> >
> > Patch1: something.diff
> >
> > Then in the %prep section of the spec file you would add;
> >
> > %patch1
>
> sounds like a plan, I'll go away and do some more reading. Ta.
If you have troubles, post back with the file changes I can eith do the
patch and spec file for you, else build it on OBS for you...

--
Cheers Malcolm ��� (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.39-0.3-default
up 1 day 22:25, 3 users, load average: 0.04, 0.12, 0.21
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

From: David Bolt on
On Tuesday 29 Dec 2009 00:55, while playing with a tin of spray paint,
Malcolm painted this mural:

> On 28 Dec 2009 21:04:48 GMT
> central <central77(a)fastmailNOSPAM.fm> wrote:

>> sounds like a plan, I'll go away and do some more reading. Ta.
> If you have troubles, post back with the file changes I can eith do the
> patch and spec file for you, else build it on OBS for you...

If you can get 0.133 to build on the OBS, I'd love to see how. It's
been failing for me since part way through the 11.2 development cycle
and still fails for 11.2 and Factory. Strangely, it fails for Mandriva
2010 but does build for Fedora versions 9 to 12 and Mandriva 2007 to
2009.


Regards,
David Bolt

--
Team Acorn: www.distributed.net OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s
openSUSE 11.0 32b | | openSUSE 11.2 32b |
openSUSE 11.0 64b | openSUSE 11.1 64b | openSUSE 11.2 64b |
TOS 4.02 | openSUSE 11.1 PPC | RISC OS 4.02 | RISC OS 3.11
From: Malcolm on
On Tue, 29 Dec 2009 01:29:28 +0000
David Bolt <blacklist-me(a)davjam.org> wrote:

> On Tuesday 29 Dec 2009 00:55, while playing with a tin of spray paint,
> Malcolm painted this mural:
>
> > On 28 Dec 2009 21:04:48 GMT
> > central <central77(a)fastmailNOSPAM.fm> wrote:
>
> >> sounds like a plan, I'll go away and do some more reading. Ta.
> > If you have troubles, post back with the file changes I can eith do
> > the patch and spec file for you, else build it on OBS for you...
>
> If you can get 0.133 to build on the OBS, I'd love to see how. It's
> been failing for me since part way through the 11.2 development cycle
> and still fails for 11.2 and Factory. Strangely, it fails for Mandriva
> 2010 but does build for Fedora versions 9 to 12 and Mandriva 2007 to
> 2009.
>
>
> Regards,
> David Bolt
>
Hi
In library linking? Might be that change they did on the as-needed in
Factory?

See this bug;
https://bugzilla.novell.com/show_bug.cgi?id=533563

--
Cheers Malcolm ��� (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.39-0.3-default
up 1 day 23:08, 3 users, load average: 0.81, 0.72, 0.65
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

From: Malcolm on
On Mon, 28 Dec 2009 19:42:23 -0600
Malcolm <malcolm_nospamlewis(a)bellsouth.net> wrote:

> On Tue, 29 Dec 2009 01:29:28 +0000
> David Bolt <blacklist-me(a)davjam.org> wrote:
>
> > On Tuesday 29 Dec 2009 00:55, while playing with a tin of spray
> > paint, Malcolm painted this mural:
> >
> > > On 28 Dec 2009 21:04:48 GMT
> > > central <central77(a)fastmailNOSPAM.fm> wrote:
> >
> > >> sounds like a plan, I'll go away and do some more reading. Ta.
> > > If you have troubles, post back with the file changes I can eith
> > > do the patch and spec file for you, else build it on OBS for
> > > you...
> >
> > If you can get 0.133 to build on the OBS, I'd love to see how. It's
> > been failing for me since part way through the 11.2 development
> > cycle and still fails for 11.2 and Factory. Strangely, it fails for
> > Mandriva 2010 but does build for Fedora versions 9 to 12 and
> > Mandriva 2007 to 2009.
> >
> >
> > Regards,
> > David Bolt
> >
> Hi
> In library linking? Might be that change they did on the as-needed in
> Factory?
>
> See this bug;
> https://bugzilla.novell.com/show_bug.cgi?id=533563
>
You need to add in %build section;

export SUSE_ASNEEDED=0

--
Cheers Malcolm ��� (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.39-0.3-default
up 1 day 23:17, 3 users, load average: 0.63, 0.81, 0.72
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18