Re: [oi-dev] Pecular dependancies in publishing print/cups-filters

2019-08-14 Thread Alexander Pyhalov via oi-dev
What are RUNPATH and RPATH of usr/lib/cups/filter/pdftopdf file ?

С уважением,
Александр Пыхалов,
программист отдела телекоммуникационной инфраструктуры
управления информационно-коммуникационной инфраструктуры ЮФУ



От: Gary Mills 
Отправлено: 14 августа 2019 г. 18:42
Кому: OpenIndiana Developer mailing list
Тема: Re: [oi-dev] Pecular dependancies in publishing print/cups-filters

On Wed, Aug 14, 2019 at 04:14:51PM +0200, Aurélien Larcher wrote:
>On Wed, Aug 14, 2019 at 4:11 PM Aurélien Larcher
><[1]aurelien.larc...@gmail.com> wrote:
>
>The error tells you that no package in the REQUIRED_PACKAGES list
>provides a suitable dependency.

Well, that's what it usually means.  In this case:

depend type=require fmri=__TBD \
pkg.debug.depend.fullpath=usr/lib/libjpeg6-ijg/lib/libgcc_s.so.1 \
pkg.debug.depend.reason=usr/lib/cups/filter/pdftopdf \
pkg.debug.depend.type=elf'.

what is pkg looking for?  Is it libgcc_s.so.1?  That's in the
system/library/gcc-6-runtime package, which is in the
REQUIRED_PACKAGES list.  Or, is it
usr/lib/libjpeg6-ijg/lib/libgcc_s.so.1?  That is not in any package.


--
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev
___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Pecular dependancies in publishing print/cups-filters

2019-08-14 Thread Gary Mills
On Wed, Aug 14, 2019 at 04:14:51PM +0200, Aurélien Larcher wrote:
>On Wed, Aug 14, 2019 at 4:11 PM Aurélien Larcher
><[1]aurelien.larc...@gmail.com> wrote:
> 
>The error tells you that no package in the REQUIRED_PACKAGES list
>provides a suitable dependency.

Well, that's what it usually means.  In this case:

depend type=require fmri=__TBD \
pkg.debug.depend.fullpath=usr/lib/libjpeg6-ijg/lib/libgcc_s.so.1 \
pkg.debug.depend.reason=usr/lib/cups/filter/pdftopdf \
pkg.debug.depend.type=elf'.

what is pkg looking for?  Is it libgcc_s.so.1?  That's in the
system/library/gcc-6-runtime package, which is in the
REQUIRED_PACKAGES list.  Or, is it
usr/lib/libjpeg6-ijg/lib/libgcc_s.so.1?  That is not in any package.


-- 
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Pecular dependancies in publishing print/cups-filters

2019-08-14 Thread Gary Mills
On Wed, Aug 14, 2019 at 04:11:47PM +0200, Aurélien Larcher wrote:
>On Wed, Aug 14, 2019 at 3:58 PM Gary Mills <[1]gary_mi...@fastmail.fm>
>wrote:
> 
>Look in the Makefile, it should use image/library/libjpeg8-turbo not
>libjpeg6-ijg.

I've already changed JPEG_IMPLEM in shared-macros.mk to be
libjpeg6-ijg .  I also added both image/library/libjpeg6 and
image/library/libjpeg6-ijg to REQUIRED_PACKAGES in the Makefile.

>Probably it is not installed on your system, execute gmake env-prep.

I built both jpeg packages but only installed the libjpeg6-ijg package.

The publish transcript I submitted was from after I made all of those
changes.

-- 
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Pecular dependancies in publishing print/cups-filters

2019-08-14 Thread Aurélien Larcher
On Wed, Aug 14, 2019 at 4:11 PM Aurélien Larcher 
wrote:

>
>
> On Wed, Aug 14, 2019 at 3:58 PM Gary Mills  wrote:
>
>> On Wed, Aug 14, 2019 at 10:39:22AM +0200, Till Wegmüller wrote:
>> >
>> > PKG uses it's own PATH variable to find libraries. Think of -I for GCC
>> > for example. And that has been modified to include
>> > usr/lib/libjpeg6-ijg/lib already but now also needs usr/gcc/6/lib to be
>> > added.
>>
>> Are you saying that pkg does not use the runtime path from the ELF
>> section at all?  The runtime linker certainly uses that.
>>
>> /usr/gcc/6 is the default compiler for the 2018 version of OI that I'm
>> using.  Surely that element is already in the runtime path that's used
>> by pkg.  I'd expect that jpeg library path to be the one that's
>> absent.
>>
>> > You can override that by either:
>> > - Setting the dependency in the manifest manually and add
>> > pkg.depend-bypass to the files that complain or
>> > - Modify the Include path PKG searches. I am however unsure which exact
>> > knob in oi-userland to tweak here.
>>
>> Do you have examples from other packages of these two techniques?
>> I'd like to start with something that works.
>>
>> > You should see the override either in the Makefile or the Manifest look
>> > for "usr/lib/libjpeg6-ijg/lib" mentioned there.
>>
>> There's nothing in either for the print/cups-filters package.
>>
>
> Look in the Makefile, it should use image/library/libjpeg8-turbo not
> libjpeg6-ijg.
>
> Probably it is not installed on your system, execute gmake env-prep.
>

The error tells you that no package in the REQUIRED_PACKAGES list provides
a suitable dependency.

>
>
>
>
>>
>>
>> --
>> -Gary Mills--refurb--Winnipeg, Manitoba,
>> Canada-
>>
>> ___
>> oi-dev mailing list
>> oi-dev@openindiana.org
>> https://openindiana.org/mailman/listinfo/oi-dev
>>
>
>
> --
> ---
> Praise the Caffeine embeddings
>


-- 
---
Praise the Caffeine embeddings
___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Pecular dependancies in publishing print/cups-filters

2019-08-14 Thread Aurélien Larcher
On Wed, Aug 14, 2019 at 3:58 PM Gary Mills  wrote:

> On Wed, Aug 14, 2019 at 10:39:22AM +0200, Till Wegmüller wrote:
> >
> > PKG uses it's own PATH variable to find libraries. Think of -I for GCC
> > for example. And that has been modified to include
> > usr/lib/libjpeg6-ijg/lib already but now also needs usr/gcc/6/lib to be
> > added.
>
> Are you saying that pkg does not use the runtime path from the ELF
> section at all?  The runtime linker certainly uses that.
>
> /usr/gcc/6 is the default compiler for the 2018 version of OI that I'm
> using.  Surely that element is already in the runtime path that's used
> by pkg.  I'd expect that jpeg library path to be the one that's
> absent.
>
> > You can override that by either:
> > - Setting the dependency in the manifest manually and add
> > pkg.depend-bypass to the files that complain or
> > - Modify the Include path PKG searches. I am however unsure which exact
> > knob in oi-userland to tweak here.
>
> Do you have examples from other packages of these two techniques?
> I'd like to start with something that works.
>
> > You should see the override either in the Makefile or the Manifest look
> > for "usr/lib/libjpeg6-ijg/lib" mentioned there.
>
> There's nothing in either for the print/cups-filters package.
>

Look in the Makefile, it should use image/library/libjpeg8-turbo not
libjpeg6-ijg.

Probably it is not installed on your system, execute gmake env-prep.




>
>
> --
> -Gary Mills--refurb--Winnipeg, Manitoba,
> Canada-
>
> ___
> oi-dev mailing list
> oi-dev@openindiana.org
> https://openindiana.org/mailman/listinfo/oi-dev
>


-- 
---
Praise the Caffeine embeddings
___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Pecular dependancies in publishing print/cups-filters

2019-08-14 Thread Gary Mills
On Wed, Aug 14, 2019 at 10:39:22AM +0200, Till Wegmüller wrote:
> 
> PKG uses it's own PATH variable to find libraries. Think of -I for GCC
> for example. And that has been modified to include
> usr/lib/libjpeg6-ijg/lib already but now also needs usr/gcc/6/lib to be
> added.

Are you saying that pkg does not use the runtime path from the ELF
section at all?  The runtime linker certainly uses that.

/usr/gcc/6 is the default compiler for the 2018 version of OI that I'm
using.  Surely that element is already in the runtime path that's used
by pkg.  I'd expect that jpeg library path to be the one that's
absent.

> You can override that by either:
> - Setting the dependency in the manifest manually and add
> pkg.depend-bypass to the files that complain or
> - Modify the Include path PKG searches. I am however unsure which exact
> knob in oi-userland to tweak here.

Do you have examples from other packages of these two techniques?
I'd like to start with something that works.

> You should see the override either in the Makefile or the Manifest look
> for "usr/lib/libjpeg6-ijg/lib" mentioned there.

There's nothing in either for the print/cups-filters package.


-- 
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Pecular dependancies in publishing print/cups-filters

2019-08-14 Thread Till Wegmüller
Hi Gary

PKG uses it's own PATH variable to find libraries. Think of -I for GCC
for example. And that has been modified to include
usr/lib/libjpeg6-ijg/lib already but now also needs usr/gcc/6/lib to be
added.

You can override that by either:
- Setting the dependency in the manifest manually and add
pkg.depend-bypass to the files that complain or
- Modify the Include path PKG searches. I am however unsure which exact
knob in oi-userland to tweak here.

You should see the override either in the Makefile or the Manifest look
for "usr/lib/libjpeg6-ijg/lib" mentioned there.


Hope this Helps
Greetings
Till

On 2019-08-14 02:46, Gary Mills wrote:
> I'm attempting to publish the print/cups-filters package.  The build
> and install were successful, but I get these peculiar errors with the
> publish stage:
> 
> .../components/print/cups-filters/build/manifest-sparc-cups-filters.depend 
> has unresolved dependency '
> depend type=require fmri=__TBD \
> pkg.debug.depend.fullpath=usr/lib/libjpeg6-ijg/lib/libgcc_s.so.1 \
> pkg.debug.depend.reason=usr/lib/cups/filter/pdftopdf \
> pkg.debug.depend.type=elf'.
> .../components/print/cups-filters/build/manifest-sparc-cups-filters.depend 
> has unresolved dependency '
> depend type=require fmri=__TBD \
> pkg.debug.depend.fullpath=usr/lib/libjpeg6-ijg/lib/libgcc_s.so.1 \
> pkg.debug.depend.reason=usr/lib/cups/filter/rastertopdf \
> pkg.debug.depend.type=elf'.
> .../components/print/cups-filters/build/manifest-sparc-cups-filters.depend 
> has unresolved dependency '
> depend type=require fmri=__TBD \
> pkg.debug.depend.fullpath=usr/lib/libjpeg6-ijg/lib/libgcc_s.so.1 \
> pkg.debug.depend.reason=usr/lib/cups/filter/urftopdf \
> pkg.debug.depend.type=elf'.
> 
> The RUNPATH for all three filters is like this:
> 
> /usr/gcc/6/lib:/usr/lib/libjpeg6-ijg/lib
> 
> The libgcc_s.so.1 module is, of course, in /usr/gcc/6/lib .  The
> runtime linker finds it there.  Only libjpeg.so.62 and friends are in
> /usr/lib/libjpeg6-ijg/lib , but the three filters are not using any
> jpeg libraries.  That particular element of the path is unused.  The
> GCC libraries are certainly not there.
> 
> So, what is this error message really telling me?  I can remove the
> unused path element with elfedit, if that will help.  Will it?
> 
> 

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev