building -32bit library rpms...

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

building -32bit library rpms...

Mathias Homann-2
hi,


is there a way to build -32bit packages for libraries without having a
i586 build target?


Cheers

MH

--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: building -32bit library rpms...

Marcus Meissner
On Tue, Jul 11, 2017 at 07:04:30PM +0200, Mathias Homann wrote:
> hi,
>
>
> is there a way to build -32bit packages for libraries without having a i586
> build target?

Not really... what do you have?

osc build on x86_64 would switch to the 32bit personality if needed.

Ciao, Marcus
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: building -32bit library rpms...

Mathias Homann-2
Am Mittwoch, 12. Juli 2017, 02:55:15 CEST schrieb Darin Perusich:
> See
> https://build.opensuse.org/package/show/security/pam-google-authenticator
> for an example.



hmmm that one looks exactly how I wouldn't want to solve it... I don't want to
have to have a i586 target for Leap 42.2.
Is there anoother way, other than actually enabling building for i586?


Cheers
Mathias

>
> --
> Later,
> Darin
>
> On Tue, Jul 11, 2017 at 5:07 PM, Marcus Meissner <[hidden email]> wrote:
> > On Tue, Jul 11, 2017 at 07:04:30PM +0200, Mathias Homann wrote:
> > > hi,
> > >
> > >
> > > is there a way to build -32bit packages for libraries without having a
> >
> > i586
> >
> > > build target?
> >
> > Not really... what do you have?
> >
> > osc build on x86_64 would switch to the 32bit personality if needed.
> >
> > Ciao, Marcus
> > --
> > To unsubscribe, e-mail: [hidden email]
> > To contact the owner, e-mail: [hidden email]

--
gpg key fingerprint: 5F64 4C92 9B77 DE37 D184  C5F9 B013 44E7 27BD 763C

signature.asc (650 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: building -32bit library rpms...

Jan Engelhardt-4
In reply to this post by Mathias Homann-2
On Tuesday 2017-07-11 19:04, Mathias Homann wrote:
>
> is there a way to build -32bit packages for libraries without having a i586
> build target?

They can be created like any other subpackage out there.
glibc or gcc do it, I think. But - without a *very* good reason to
eschew baselibs.conf, it is unlikely to pass Factory review.
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: building -32bit library rpms...

Andreas Schwab-2
On Jul 12 2017, Jan Engelhardt <[hidden email]> wrote:

> They can be created like any other subpackage out there.
> glibc or gcc do it, I think.

Only gcc, because it can build multilib.

Andreas.

--
Andreas Schwab, SUSE Labs, [hidden email]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: building -32bit library rpms...

Marcus Meissner
In reply to this post by Marcus Meissner
Hi,

it needs a i586 build target.... But it looks good currently.

Ciao, Marcus
On Tue, Jul 11, 2017 at 08:55:15PM -0400, Darin Perusich wrote:

> See
> https://build.opensuse.org/package/show/security/pam-google-authenticator
> for an example.
>
> --
> Later,
> Darin
>
> On Tue, Jul 11, 2017 at 5:07 PM, Marcus Meissner <[hidden email]> wrote:
>
> > On Tue, Jul 11, 2017 at 07:04:30PM +0200, Mathias Homann wrote:
> > > hi,
> > >
> > >
> > > is there a way to build -32bit packages for libraries without having a
> > i586
> > > build target?
> >
> > Not really... what do you have?
> >
> > osc build on x86_64 would switch to the 32bit personality if needed.
> >
> > Ciao, Marcus
> > --
> > To unsubscribe, e-mail: [hidden email]
> > To contact the owner, e-mail: [hidden email]
> >
> >

--
Marcus Meissner,SUSE LINUX GmbH; Maxfeldstrasse 5; D-90409 Nuernberg; Zi. 3.1-33,+49-911-740 53-432,,serv=loki,mail=wotan,type=real <[hidden email]>
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: building -32bit library rpms...

Mathias Homann-2
So you're basically saying if I want a -32bit.x86_64 package I need to
enable building *and publishing* for i586, there is *no* other way?


On 12.07.2017 11:08, Marcus Meissner wrote:

> Hi,
>
> it needs a i586 build target.... But it looks good currently.
>
> Ciao, Marcus
> On Tue, Jul 11, 2017 at 08:55:15PM -0400, Darin Perusich wrote:
>> See
>> https://build.opensuse.org/package/show/security/pam-google-authenticator
>> for an example.
>>
>> --
>> Later,
>> Darin
>>
>> On Tue, Jul 11, 2017 at 5:07 PM, Marcus Meissner <[hidden email]> wrote:
>>
>>> On Tue, Jul 11, 2017 at 07:04:30PM +0200, Mathias Homann wrote:
>>>> hi,
>>>>
>>>>
>>>> is there a way to build -32bit packages for libraries without having a
>>> i586
>>>> build target?
>>> Not really... what do you have?
>>>
>>> osc build on x86_64 would switch to the 32bit personality if needed.
>>>
>>> Ciao, Marcus
>>> --
>>> To unsubscribe, e-mail: [hidden email]
>>> To contact the owner, e-mail: [hidden email]
>>>
>>>

--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: building -32bit library rpms...

Michael Matz
Hi,

On Wed, 12 Jul 2017, Mathias Homann wrote:

> So you're basically saying if I want a -32bit.x86_64 package I need to
> enable building *and publishing* for i586, there is *no* other way?

I don't know why you'd want this, but yes, there is another way; but as
Jan already said it's unlikely to pass Factory review, and is more manual
work.  You modify your package to also build 32bit libraries by hand: -m32
into CFLAGS and the like, install them into /usr/lib and create the
-32bit subpackage with those libs yourself.  You'll have to add all the
necessary -32bit variants of each BuildRequire by hand.  And you have to
do all that only conditional for some architectures (e.g. no 32bit libs
for ppc64le).  Keep in mind that this generates slightly different code
than a build in the i586 tree would (different GCC default config), but
that shouldn't matter in most circumstances.

If you don't have a better reason than "I don't want the i586 target in my
repo" I'd suggest to adjust your wishes and not your packages.  There's
nothing "dirty" about the i586 tree :)


Ciao,
Michael.

>
>
> On 12.07.2017 11:08, Marcus Meissner wrote:
> > Hi,
> >
> > it needs a i586 build target.... But it looks good currently.
> >
> > Ciao, Marcus
> > On Tue, Jul 11, 2017 at 08:55:15PM -0400, Darin Perusich wrote:
> >> See
> >> https://build.opensuse.org/package/show/security/pam-google-authenticator
> >> for an example.
> >>
> >> --
> >> Later,
> >> Darin
> >>
> >> On Tue, Jul 11, 2017 at 5:07 PM, Marcus Meissner <[hidden email]> wrote:
> >>
> >>> On Tue, Jul 11, 2017 at 07:04:30PM +0200, Mathias Homann wrote:
> >>>> hi,
> >>>>
> >>>>
> >>>> is there a way to build -32bit packages for libraries without having a
> >>> i586
> >>>> build target?
> >>> Not really... what do you have?
> >>>
> >>> osc build on x86_64 would switch to the 32bit personality if needed.
> >>>
> >>> Ciao, Marcus
> >>> --
> >>> To unsubscribe, e-mail: [hidden email]
> >>> To contact the owner, e-mail: [hidden email]
> >>>
> >>>
>
>
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]