All of lore.kernel.org
 help / color / mirror / Atom feed
* rpm generation question
@ 2016-04-19 17:05 Tudor Florea
  2016-04-19 18:02 ` Mark Hatle
  0 siblings, 1 reply; 5+ messages in thread
From: Tudor Florea @ 2016-04-19 17:05 UTC (permalink / raw)
  To: openembedded-core

As part of our test infrastructure we're attempting to install ptest
packages (and execute the tests accordingly).
Attempting to install ptest for valgrind fails with this error:

error: Can't install valgrind-ptest-3.11.0-r0.1@ppce500mc: no package
provides /this/is/a/bogus/interpreter/name

smart install valgrind-ptest-3.11.0-r0.1@ppce500mc
Loading cache...
Updating cache...
###############################################################################
[100%]

Computing transaction...

 error: Can't install valgrind-ptest-3.11.0-r0.1@ppce500mc: no package
provides /this/is/a/bogus/interpreter/name


This is most probably caused by the file shell_badinterp contained in
this package having the following contents:

#! /this/is/a/bogus/interpreter/name

true

Does anyone have an idea how to get rid of this error?
More specific: How can I exclude dependency on
"/this/is/a/bogus/interpreter/name" for an rpm package?

Thank you very much.
  Tudor.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: rpm generation question
  2016-04-19 17:05 rpm generation question Tudor Florea
@ 2016-04-19 18:02 ` Mark Hatle
  2016-04-20  0:15   ` Tudor Florea
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Hatle @ 2016-04-19 18:02 UTC (permalink / raw)
  To: openembedded-core

On 4/19/16 12:05 PM, Tudor Florea wrote:
> As part of our test infrastructure we're attempting to install ptest
> packages (and execute the tests accordingly).
> Attempting to install ptest for valgrind fails with this error:
> 
> error: Can't install valgrind-ptest-3.11.0-r0.1@ppce500mc: no package
> provides /this/is/a/bogus/interpreter/name

You can turn off the file level requires and provides on a per package basis.

SKIP_FILEDEPS_${PN}-ptest = '1'

Otherwise (for rpm packages) the system will attempt to discover and use the
per-file interpreter and other dependencies.  Since ptest is only tests, and the
dependencies here are specific to tests -- it should be safe to disable them.

(If that isn't the right approach for some reason, there are some other ways to
do a file level provide, but they're significantly more complicated and rarely
used.)

--Mark

> 
> smart install valgrind-ptest-3.11.0-r0.1@ppce500mc
> Loading cache...
> Updating cache...
> ###############################################################################
> [100%]
> 
> Computing transaction...
> 
>  error: Can't install valgrind-ptest-3.11.0-r0.1@ppce500mc: no package
> provides /this/is/a/bogus/interpreter/name
> 
> 
> This is most probably caused by the file shell_badinterp contained in
> this package having the following contents:
> 
> #! /this/is/a/bogus/interpreter/name
> 
> true
> 
> Does anyone have an idea how to get rid of this error?
> More specific: How can I exclude dependency on
> "/this/is/a/bogus/interpreter/name" for an rpm package?
> 
> Thank you very much.
>   Tudor.
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: rpm generation question
  2016-04-19 18:02 ` Mark Hatle
@ 2016-04-20  0:15   ` Tudor Florea
  2016-04-20  1:08     ` Mark Hatle
  0 siblings, 1 reply; 5+ messages in thread
From: Tudor Florea @ 2016-04-20  0:15 UTC (permalink / raw)
  To: Mark Hatle, openembedded-core



On 19/04/2016 21:02, Mark Hatle wrote:
> On 4/19/16 12:05 PM, Tudor Florea wrote:
>> As part of our test infrastructure we're attempting to install ptest
>> packages (and execute the tests accordingly).
>> Attempting to install ptest for valgrind fails with this error:
>>
>> error: Can't install valgrind-ptest-3.11.0-r0.1@ppce500mc: no package
>> provides /this/is/a/bogus/interpreter/name
> 
> You can turn off the file level requires and provides on a per package basis.
> 
> SKIP_FILEDEPS_${PN}-ptest = '1'

Mark,
Thank you for the information provided.
Unfortunately this did not work as expected.
First issue: the dependency on bogus interpreter still exists with the
line above.
I was able to force remove this dependency by setting
MERGEPERFILEDEPS = "0"
on meta/classes/package_rpm.bbclass. Of course this is not a fix but
only a test. I'm not sure if there is something missing around.

The second issue: The rpm created this way can be installed using the
command:
rpm -ivH ./valgrind-ptest-3.11.0-r0.4.ppce500mc.rpm
but still fails when attempt to install using smart.

Is this second issue a bug or smart is supposed to work this way?


Thank you,
 Tudor.

> 
> Otherwise (for rpm packages) the system will attempt to discover and use the
> per-file interpreter and other dependencies.  Since ptest is only tests, and the
> dependencies here are specific to tests -- it should be safe to disable them.
> 
> (If that isn't the right approach for some reason, there are some other ways to
> do a file level provide, but they're significantly more complicated and rarely
> used.)
> 
> --Mark
> 
>>
>> smart install valgrind-ptest-3.11.0-r0.1@ppce500mc
>> Loading cache...
>> Updating cache...
>> ###############################################################################
>> [100%]
>>
>> Computing transaction...
>>
>>  error: Can't install valgrind-ptest-3.11.0-r0.1@ppce500mc: no package
>> provides /this/is/a/bogus/interpreter/name
>>
>>
>> This is most probably caused by the file shell_badinterp contained in
>> this package having the following contents:
>>
>> #! /this/is/a/bogus/interpreter/name
>>
>> true
>>
>> Does anyone have an idea how to get rid of this error?
>> More specific: How can I exclude dependency on
>> "/this/is/a/bogus/interpreter/name" for an rpm package?
>>
>> Thank you very much.
>>   Tudor.
>>
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: rpm generation question
  2016-04-20  0:15   ` Tudor Florea
@ 2016-04-20  1:08     ` Mark Hatle
  2016-04-21  8:24       ` Tudor Florea
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Hatle @ 2016-04-20  1:08 UTC (permalink / raw)
  To: Tudor Florea, openembedded-core

On 4/19/16 7:15 PM, Tudor Florea wrote:
> 
> 
> On 19/04/2016 21:02, Mark Hatle wrote:
>> On 4/19/16 12:05 PM, Tudor Florea wrote:
>>> As part of our test infrastructure we're attempting to install ptest
>>> packages (and execute the tests accordingly).
>>> Attempting to install ptest for valgrind fails with this error:
>>>
>>> error: Can't install valgrind-ptest-3.11.0-r0.1@ppce500mc: no package
>>> provides /this/is/a/bogus/interpreter/name
>>
>> You can turn off the file level requires and provides on a per package basis.
>>
>> SKIP_FILEDEPS_${PN}-ptest = '1'
> 
> Mark,
> Thank you for the information provided.
> Unfortunately this did not work as expected.
> First issue: the dependency on bogus interpreter still exists with the
> line above.
> I was able to force remove this dependency by setting
> MERGEPERFILEDEPS = "0"
> on meta/classes/package_rpm.bbclass. Of course this is not a fix but
> only a test. I'm not sure if there is something missing around.
> 
> The second issue: The rpm created this way can be installed using the
> command:
> rpm -ivH ./valgrind-ptest-3.11.0-r0.4.ppce500mc.rpm
> but still fails when attempt to install using smart.
> 
> Is this second issue a bug or smart is supposed to work this way?

What is the error with smart.  If it's the same dependency error then it almost
sounds like the feed database is out of sync.

--Mark

> 
> Thank you,
>  Tudor.
> 
>>
>> Otherwise (for rpm packages) the system will attempt to discover and use the
>> per-file interpreter and other dependencies.  Since ptest is only tests, and the
>> dependencies here are specific to tests -- it should be safe to disable them.
>>
>> (If that isn't the right approach for some reason, there are some other ways to
>> do a file level provide, but they're significantly more complicated and rarely
>> used.)
>>
>> --Mark
>>
>>>
>>> smart install valgrind-ptest-3.11.0-r0.1@ppce500mc
>>> Loading cache...
>>> Updating cache...
>>> ###############################################################################
>>> [100%]
>>>
>>> Computing transaction...
>>>
>>>  error: Can't install valgrind-ptest-3.11.0-r0.1@ppce500mc: no package
>>> provides /this/is/a/bogus/interpreter/name
>>>
>>>
>>> This is most probably caused by the file shell_badinterp contained in
>>> this package having the following contents:
>>>
>>> #! /this/is/a/bogus/interpreter/name
>>>
>>> true
>>>
>>> Does anyone have an idea how to get rid of this error?
>>> More specific: How can I exclude dependency on
>>> "/this/is/a/bogus/interpreter/name" for an rpm package?
>>>
>>> Thank you very much.
>>>   Tudor.
>>>
>>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: rpm generation question
  2016-04-20  1:08     ` Mark Hatle
@ 2016-04-21  8:24       ` Tudor Florea
  0 siblings, 0 replies; 5+ messages in thread
From: Tudor Florea @ 2016-04-21  8:24 UTC (permalink / raw)
  To: Mark Hatle, openembedded-core



On 20/04/2016 04:08, Mark Hatle wrote:
> On 4/19/16 7:15 PM, Tudor Florea wrote:
>>
>>
>> On 19/04/2016 21:02, Mark Hatle wrote:
>>> On 4/19/16 12:05 PM, Tudor Florea wrote:
>>>> As part of our test infrastructure we're attempting to install ptest
>>>> packages (and execute the tests accordingly).
>>>> Attempting to install ptest for valgrind fails with this error:
>>>>
>>>> error: Can't install valgrind-ptest-3.11.0-r0.1@ppce500mc: no package
>>>> provides /this/is/a/bogus/interpreter/name
>>>
>>> You can turn off the file level requires and provides on a per package basis.
>>>
>>> SKIP_FILEDEPS_${PN}-ptest = '1'
>>
>> Mark,
>> Thank you for the information provided.
>> Unfortunately this did not work as expected.
>> First issue: the dependency on bogus interpreter still exists with the
>> line above.
>> I was able to force remove this dependency by setting
>> MERGEPERFILEDEPS = "0"
>> on meta/classes/package_rpm.bbclass. Of course this is not a fix but
>> only a test. I'm not sure if there is something missing around.
>>
>> The second issue: The rpm created this way can be installed using the
>> command:
>> rpm -ivH ./valgrind-ptest-3.11.0-r0.4.ppce500mc.rpm
>> but still fails when attempt to install using smart.
>>
>> Is this second issue a bug or smart is supposed to work this way?
> 
> What is the error with smart.  If it's the same dependency error then it almost
> sounds like the feed database is out of sync.
It was the same error. I have rebuild and retest everything from scratch
and now is working.
I'm going to send a patch for this.
Thank you very much.
 Tudor.
> 
> --Mark
> 
>>
>> Thank you,
>>  Tudor.
>>
>>>
>>> Otherwise (for rpm packages) the system will attempt to discover and use the
>>> per-file interpreter and other dependencies.  Since ptest is only tests, and the
>>> dependencies here are specific to tests -- it should be safe to disable them.
>>>
>>> (If that isn't the right approach for some reason, there are some other ways to
>>> do a file level provide, but they're significantly more complicated and rarely
>>> used.)
>>>
>>> --Mark
>>>
>>>>
>>>> smart install valgrind-ptest-3.11.0-r0.1@ppce500mc
>>>> Loading cache...
>>>> Updating cache...
>>>> ###############################################################################
>>>> [100%]
>>>>
>>>> Computing transaction...
>>>>
>>>>  error: Can't install valgrind-ptest-3.11.0-r0.1@ppce500mc: no package
>>>> provides /this/is/a/bogus/interpreter/name
>>>>
>>>>
>>>> This is most probably caused by the file shell_badinterp contained in
>>>> this package having the following contents:
>>>>
>>>> #! /this/is/a/bogus/interpreter/name
>>>>
>>>> true
>>>>
>>>> Does anyone have an idea how to get rid of this error?
>>>> More specific: How can I exclude dependency on
>>>> "/this/is/a/bogus/interpreter/name" for an rpm package?
>>>>
>>>> Thank you very much.
>>>>   Tudor.
>>>>
>>>
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-04-21  8:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-19 17:05 rpm generation question Tudor Florea
2016-04-19 18:02 ` Mark Hatle
2016-04-20  0:15   ` Tudor Florea
2016-04-20  1:08     ` Mark Hatle
2016-04-21  8:24       ` Tudor Florea

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.