build fails as 'unresolvable': "nothing provides this-is-only-for-build-envs needed". What provides the req't?

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

build fails as 'unresolvable': "nothing provides this-is-only-for-build-envs needed". What provides the req't?

PGNet Dev-2
I'm working on a build of latest systemd for Leap.  My project's at

        https://build.opensuse.org/project/show/home:pgnd:Base:System

A required prereq is 'util-linux', which pulls in 'util-linux-systemd'

That package fails to build,

        https://build.opensuse.org/package/show/home:pgnd:Base:System/util-linux-systemd

returning an 'unresolvable' error

        nothing provides this-is-only-for-build-envs needed by libsystemd0-mini

How do I meet this provides prereq, so I can get to a complete build?
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: build fails as 'unresolvable': "nothing provides this-is-only-for-build-envs needed". What provides the req't?

Adrian Schröter
On Samstag, 27. Februar 2016, 12:50:24 CET wrote PGNet Dev:

> I'm working on a build of latest systemd for Leap.  My project's at
>
> https://build.opensuse.org/project/show/home:pgnd:Base:System
>
> A required prereq is 'util-linux', which pulls in 'util-linux-systemd'
>
> That package fails to build,
>
> https://build.opensuse.org/package/show/home:pgnd:Base:System/util-linux-systemd
>
> returning an 'unresolvable' error
>
> nothing provides this-is-only-for-build-envs needed by libsystemd0-mini
>
> How do I meet this provides prereq, so I can get to a complete build?

You need to ignore it;)

It is a protection that this package gets only used in build environment,
but never gets installed on a real system.

Add these lines to your prjconf:

Ignore: systemd-mini:this-is-only-for-build-envs
Ignore: libsystemd0-mini:this-is-only-for-build-envs
Ignore: udev-mini:this-is-only-for-build-envs
Ignore: libudev-mini1:this-is-only-for-build-envs

and you can build.


--

Adrian Schroeter
email: [hidden email]

SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
 
Maxfeldstraße 5                        
90409 Nürnberg
Germany


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

Reply | Threaded
Open this post in threaded view
|

Re: build fails as 'unresolvable': "nothing provides this-is-only-for-build-envs needed". What provides the req't?

PGNet Dev-2
On 02/29/2016 12:14 AM, Adrian Schröter wrote:
> It is a protection that this package gets only used in build environment,
> but never gets installed on a real system.
>
> Add these lines to your prjconf:
>
> Ignore: systemd-mini:this-is-only-for-build-envs
> Ignore: libsystemd0-mini:this-is-only-for-build-envs
> Ignore: udev-mini:this-is-only-for-build-envs
> Ignore: libudev-mini1:this-is-only-for-build-envs

I've added those Ignores to prjconf, thanks.

Offhand, where's that detail documented?

> and you can build.

Not quite, unfortunately.  THOSE errors are gone, but there are now
additional failures.  I'm not yet sure if they're related, or not;
working on that.

In any case, I've obviously missed a level of documentation detail in
getting these builds working.

Appreciate any pointers.
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: build fails as 'unresolvable': "nothing provides this-is-only-for-build-envs needed". What provides the req't?

PGNet Dev-2
On 02/29/2016 08:40 AM, PGNet Dev wrote:

> On 02/29/2016 12:14 AM, Adrian Schröter wrote:
>> It is a protection that this package gets only used in build environment,
>> but never gets installed on a real system.
>>
>> Add these lines to your prjconf:
>>
>> Ignore: systemd-mini:this-is-only-for-build-envs
>> Ignore: libsystemd0-mini:this-is-only-for-build-envs
>> Ignore: udev-mini:this-is-only-for-build-envs
>> Ignore: libudev-mini1:this-is-only-for-build-envs
>
> I've added those Ignores to prjconf, thanks.
>
> Offhand, where's that detail documented?
>
>> and you can build.
>
> Not quite, unfortunately.  THOSE errors are gone, but there are now
> additional failures.  I'm not yet sure if they're related, or not;
> working on that.

I've managed to get the OBS build to complete without those errors.

But, on install of the rpms from the resultant repo, I get

  Problem: nothing provides this-is-only-for-build-envs needed by
systemd-228-10.1.x86_64
   Solution 1: do not install systemd-228-10.1.x86_64
   Solution 2: break systemd-228-10.1.x86_64 by ignoring some of its
dependencies

Seems that adding the ignores to prjconf is not sufficient.

Where else does this need to be dealt with?
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: build fails as 'unresolvable': "nothing provides this-is-only-for-build-envs needed". What provides the req't?

Adrian Schröter
On Montag, 29. Februar 2016, 21:08:31 wrote PGNet Dev:

> On 02/29/2016 08:40 AM, PGNet Dev wrote:
> > On 02/29/2016 12:14 AM, Adrian Schröter wrote:
> >> It is a protection that this package gets only used in build environment,
> >> but never gets installed on a real system.
> >>
> >> Add these lines to your prjconf:
> >>
> >> Ignore: systemd-mini:this-is-only-for-build-envs
> >> Ignore: libsystemd0-mini:this-is-only-for-build-envs
> >> Ignore: udev-mini:this-is-only-for-build-envs
> >> Ignore: libudev-mini1:this-is-only-for-build-envs
> >
> > I've added those Ignores to prjconf, thanks.
> >
> > Offhand, where's that detail documented?

you need to ask the factory and systemd people, it is a config
created by them.

> >
> >> and you can build.
> >
> > Not quite, unfortunately.  THOSE errors are gone, but there are now
> > additional failures.  I'm not yet sure if they're related, or not;
> > working on that.
>
> I've managed to get the OBS build to complete without those errors.
>
> But, on install of the rpms from the resultant repo, I get
>
>   Problem: nothing provides this-is-only-for-build-envs needed by
> systemd-228-10.1.x86_64
>    Solution 1: do not install systemd-228-10.1.x86_64
>    Solution 2: break systemd-228-10.1.x86_64 by ignoring some of its
> dependencies
>
> Seems that adding the ignores to prjconf is not sufficient.
>
> Where else does this need to be dealt with?

systemd package should not have the requires, only the systemd-mini
should have.

Did you rebuild systemd yourself?

--

Adrian Schroeter
email: [hidden email]

SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
 
Maxfeldstraße 5                        
90409 Nürnberg
Germany


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

Reply | Threaded
Open this post in threaded view
|

Re: build fails as 'unresolvable': "nothing provides this-is-only-for-build-envs needed". What provides the req't?

PGNet Dev-2
On 02/29/2016 11:06 PM, Adrian Schröter wrote:
>>> Offhand, where's that detail documented?
>
> you need to ask the factory and systemd people, it is a config
> created by them.

Will do.

> systemd package should not have the requires, only the systemd-mini
> should have.

prjconf contains only

   Ignore: systemd-mini:this-is-only-for-build-envs
   Ignore: libsystemd0-mini:this-is-only-for-build-envs
   Ignore: udev-mini:this-is-only-for-build-envs
   Ignore: libudev-mini1:this-is-only-for-build-envs

> Did you rebuild systemd yourself?

On OBS, yes.  It's here:

   https://build.opensuse.org/package/show/home:pgnd:Base:System/systemd
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]