Re: current - unable to rebuild gobject-introspection due to libffi

2022-02-15 Thread Brian Buhrow
hello.  I recently ran into this problem.  To get around it, I built  
devel/libffi by
hand, , installed it, then rebuilt all the packages that depend on libffi, 
incluting
gobject-introspection.  In order for me to do this, I needed to pkg_delete the 
existing version
of gobject-introspection on the build system in order to get things to build.  
Once I did that,
however, the process of moving to libffi version 8 was pretty straightforward.
This is with pkgsrc sources as of January 24, 2022.

-thanks
-Brian




Re: current - unable to rebuild gobject-introspection due to libffi

2022-02-15 Thread Riccardo Mottola
Hi Patrick,


Patrick Welche wrote:
> On Mon, Feb 14, 2022 at 03:13:41PM +0100, Riccardo Mottola wrote:
>> Hi Patrick,
>>
>>
>> Patrick Welche wrote:
 Given the error below, there seems to be a failure right on the libffi
 needed for libgirepository, but it is the one I am trying to replace, or
 not?
>>> I think one cunning plan seen on this list was to look at the output from
>>>
>>>   grep libffi.so.7 /usr/pkg/pkgdb/*/+BUILD_INFO
>>
>> the output is below. Sorry if it doesn't illuminate immediately. Does it
>> mean I should force a rebuild of another package first?
> 
> That's what I thought - I assume you have libffi.so.8, so those packages
> will be in trouble - but none seem relevant.

It is exactly as you think.

> The other work around seen on the mailing lists was to remove the installed
> gobject-introspection, then build it, which would explain why pbulk builds
> are happy. This might make sense as:
> 
> ld: warning: libffi.so.7, needed by /usr/pkg/lib/libgirepository-1.0.so.1, 
> not found (try using -rpath or -rpath-link)
> 
> suggests an already installed gobject-introspection...

Yes there is already one installed but it should not be "used" while
building the new package.
I think it is then a package bug.

> 
> (I think there is a way of not removing all the packages which depend
> on gobject-introspection)

pkg_delete -f gobject-introspection

I removed it, relaunched and it was magically recompiled and installed.


Riccardo


Re: current - unable to rebuild gobject-introspection due to libffi

2022-02-14 Thread Patrick Welche
On Mon, Feb 14, 2022 at 03:13:41PM +0100, Riccardo Mottola wrote:
> Hi Patrick,
> 
> 
> Patrick Welche wrote:
> >> Given the error below, there seems to be a failure right on the libffi
> >> needed for libgirepository, but it is the one I am trying to replace, or
> >> not?
> > I think one cunning plan seen on this list was to look at the output from
> > 
> >   grep libffi.so.7 /usr/pkg/pkgdb/*/+BUILD_INFO
> 
> the output is below. Sorry if it doesn't illuminate immediately. Does it
> mean I should force a rebuild of another package first?

That's what I thought - I assume you have libffi.so.8, so those packages
will be in trouble - but none seem relevant.

The other work around seen on the mailing lists was to remove the installed
gobject-introspection, then build it, which would explain why pbulk builds
are happy. This might make sense as:

ld: warning: libffi.so.7, needed by /usr/pkg/lib/libgirepository-1.0.so.1, not 
found (try using -rpath or -rpath-link)

suggests an already installed gobject-introspection...

(I think there is a way of not removing all the packages which depend
on gobject-introspection)


Cheers,

Patrick


Re: current - unable to rebuild gobject-introspection due to libffi

2022-02-14 Thread Riccardo Mottola
Hi Patrick,


Patrick Welche wrote:
>> Given the error below, there seems to be a failure right on the libffi
>> needed for libgirepository, but it is the one I am trying to replace, or
>> not?
> I think one cunning plan seen on this list was to look at the output from
> 
>   grep libffi.so.7 /usr/pkg/pkgdb/*/+BUILD_INFO

the output is below. Sorry if it doesn't illuminate immediately. Does it
mean I should force a rebuild of another package first?

Riccardo

$ grep libffi.so.7 /usr/pkg/pkgdb/*/+BUILD_INFO
/usr/pkg/pkgdb/at-spi2-atk-2.38.0/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/at-spi2-core-2.40.3/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/atk-2.36.0/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/consolekit-1.2.4/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/ffmpeg4-4.4.1/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/gdk-pixbuf2-2.42.6/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/gegl-0.4.32/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/gexiv2-0.12.2nb3/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/gimp-2.10.28nb1/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/glib-networking-2.64.3nb4/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/gobject-introspection-1.68.0/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/graphviz-2.49.2/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/gtk2+-2.24.33nb3/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/gtk3+-3.24.30nb1/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/harfbuzz-3.1.1/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/json-glib-1.6.2/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/libglade-2.6.4nb37/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/librsvg-2.50.7/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/pango-1.48.10/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/polkit-0.120/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/poppler-glib-21.11.0/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/py27-gobject-2.28.7nb3/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/seamonkey-2.53.9nb1/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/vala-0.54.3/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7
/usr/pkg/pkgdb/vim-gtk3-8.2.3172nb3/+BUILD_INFO:REQUIRES=/usr/pkg/lib/libffi.so.7


Re: current - unable to rebuild gobject-introspection due to libffi

2022-02-14 Thread Patrick Welche
On Mon, Feb 14, 2022 at 01:03:33PM +0100, Riccardo Mottola wrote:
> I am on netbsd 9.99.93 and current pkgsrc tree.
> After upgrading the whole base system, upgrading pkgsrc is also a good idea.
> pkg_rolling-replace -uv is my usual friend.
> 
> I always stop at gobject introspection, which is currently broken due to
> libffi upgrade
> 
> Given the error below, there seems to be a failure right on the libffi
> needed for libgirepository, but it is the one I am trying to replace, or
> not?

I think one cunning plan seen on this list was to look at the output from

  grep libffi.so.7 /usr/pkg/pkgdb/*/+BUILD_INFO

Cheers,

Patrick


current - unable to rebuild gobject-introspection due to libffi

2022-02-14 Thread Riccardo Mottola
Hi,

I am on netbsd 9.99.93 and current pkgsrc tree.
After upgrading the whole base system, upgrading pkgsrc is also a good idea.
pkg_rolling-replace -uv is my usual friend.

I always stop at gobject introspection, which is currently broken due to
libffi upgrade

Given the error below, there seems to be a failure right on the libffi
needed for libgirepository, but it is the one I am trying to replace, or
not?

Riccardo

[77/163] Generating symbol file
girepository/libgirepository-1.0.so.1.0.0.p/libgirepository-1.0.so.1.0.0.symbols
WARNING: Symbol extracting has not been implemented for this platform.
Relinking will always happen on source changes.
[91/163] Generating giscanner/scannerparser with a custom command
../giscanner/scannerparser.y: warning: 7 shift/reduce conflicts
[-Wconflicts-sr]
../giscanner/scannerparser.y: note: rerun with option
'-Wcounterexamples' to generate conflict counterexamples
[133/163] Generating tests/scanner/gir-bar with a custom command
FAILED: tests/scanner/Bar-1.0.gir
/usr/pkg/bin/python3.9 tools/g-ir-scanner --quiet
--output=tests/scanner/Bar-1.0.gir --no-libtool --reparse-validate
--add-include-path
/usr/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/gir
--add-include-path
/usr/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/output/gir
--warn-all --warn-error --namespace=Bar --nsversion=1.0
--include=GObject-2.0 --pkg=gobject-2.0 --library=barapp-1.0
--accept-unprefixed -L
/usr/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/output/tests/scanner
-L
/usr/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/output/girepository
-I
/usr/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/tests/scanner
-I
/usr/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/tests/scanner/..
../tests/scanner/barapp.c ../tests/scanner/barapp.h
ld: warning: libffi.so.7, needed by
/usr/pkg/lib/libgirepository-1.0.so.1, not found (try using -rpath or
-rpath-link)