Skip to contentSkip to conversation

gnome-text-editor: initial add 42.0

PATCH Khem Raj 2 participants 7 messages Mar 31, 2022 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

Khem Raj

author
#2 lore raw

getting this error

Build started at 2022-03-31T15:52:29.098624
Main binary: /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/recipe-sysroot-native/usr/bin/nativepython3 Build Options: -Dprefix=/usr -Dbindir=bin -Ddatadir=share
-Dincludedir=include -Dinfodir=share/info -Dlibdir=lib
-Dlibexecdir=libexec -Dlocalstatedir=/var -Dmandir=share/man
-Dsbindir=sbin -Dsharedstatedir=/com -Dsysconfdir=/etc
-Dbuildtype=plain -Dwrap_mode=nodownload '--cross-file /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/meson.cross'
'--native-file /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/meson.native' Python system: Linux
The Meson build system
Version: 0.61.3
Source dir: /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/gnome-text-editor-42.0 Build dir: /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/build
Build type: cross build
Project name: gnome-text-editor
Project version: 42.0

../gnome-text-editor-42.0/meson.build:1:0: ERROR: Value "gnu17" (of type "string") for combo option "C language standard to use" is not one of the choices. Possible choices are (as string): "none", "c89", "c99", "c11", "gnu89", "gnu99", "gnu11".

Quoted 65 lines · Andreas Müller
---
 .../gnome-text-editor_42.0.bb                 | 27 +++++++++++++++++++
 .../packagegroups/packagegroup-gnome-apps.bb  |  1 +
 2 files changed, 28 insertions(+)
 create mode 100644 meta-gnome/recipes-gnome/gnome-text-editor/gnome-text-editor_42.0.bb
meta-gnome/recipes-gnome/gnome-text-editor/gnome-text-editor_42.0.bb new file +27 -0
new file mode 100644
index 000000000..01504b1cb
@@ -0,0 +1,27 @@
+SUMMARY = "A simple text editor"
+LICENSE = "GPL-3.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=8f0e2cd40e05189ec81232da84bd6e1a"
+
+GNOMEBASEBUILDCLASS = "meson"
+
+DEPENDS = " \
+    desktop-file-utils-native \
+    libadwaita \
+    gtk4 \
+    gtksourceview5 \
+    enchant2 \
+"
+
+GTKIC_VERSION = "4"
+
+inherit gnomebase gtk-icon-cache itstool gnome-help mime-xdg features_check
+
+ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
+REQUIRED_DISTRO_FEATURES = "opengl"
+
+SRC_URI[archive.sha256sum] = "0e32140ee1c13428563bcd5f784e61ee22ffd1ad27d8c02283b4358a81dfab50"
+
+FILES:${PN} += " \
+    ${datadir}/metainfo \
+    ${datadir}/dbus-1 \
+"
meta-gnome/recipes-support/packagegroups/packagegroup-gnome-apps.bb +1 -1
index dc446237b..7151f9326 100644
@@ -20,6 +20,7 @@ RDEPENDS:${PN} = " \
     gnome-photos \
     gnome-screenshot \
     gnome-terminal \
+    gnome-text-editor \
     gthumb \
     libwnck3 \
     nautilus \
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#96286): https://lists.openembedded.org/g/openembedded-devel/message/96286
Mute This Topic: https://lists.openembedded.org/mt/90150031/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
Quoted 21 lines · Khem Raj

getting this error

Build started at 2022-03-31T15:52:29.098624
Main binary: /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/recipe-sysroot-native/usr/bin/nativepython3 Build Options: -Dprefix=/usr -Dbindir=bin -Ddatadir=share

(quoted diff) +0 -4
-Dincludedir=include -Dinfodir=share/info -Dlibdir=lib
-Dlibexecdir=libexec -Dlocalstatedir=/var -Dmandir=share/man
-Dsbindir=sbin -Dsharedstatedir=/com -Dsysconfdir=/etc
-Dbuildtype=plain -Dwrap_mode=nodownload '--cross-file

/mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/meson.cross' '--native-file /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/meson.native' Python system: Linux
The Meson build system
Version: 0.61.3
Source dir: /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/gnome-text-editor-42.0 Build dir: /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/build Build type: cross build
Project name: gnome-text-editor
Project version: 42.0

Quoted 4 lines

../gnome-text-editor-42.0/meson.build:1:0: ERROR: Value "gnu17" (of type "string") for combo option "C language standard to use" is not one of the choices. Possible choices are (as string): "none", "c89", "c99", "c11", "gnu89", "gnu99", "gnu11".

Which compiler do you use?

Andreas

author
#4 lore raw
Quoted 23 lines · Andreas Müller
Quoted 21 lines · Khem Raj

getting this error

Build started at 2022-03-31T15:52:29.098624
Main binary: /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/recipe-sysroot-native/usr/bin/nativepython3 Build Options: -Dprefix=/usr -Dbindir=bin -Ddatadir=share

(quoted diff) +0 -4
-Dincludedir=include -Dinfodir=share/info -Dlibdir=lib
-Dlibexecdir=libexec -Dlocalstatedir=/var -Dmandir=share/man
-Dsbindir=sbin -Dsharedstatedir=/com -Dsysconfdir=/etc
-Dbuildtype=plain -Dwrap_mode=nodownload '--cross-file

/mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/meson.cross' '--native-file /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/meson.native' Python system: Linux
The Meson build system
Version: 0.61.3
Source dir: /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/gnome-text-editor-42.0 Build dir: /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/build Build type: cross build
Project name: gnome-text-editor
Project version: 42.0

Quoted 6 lines
Quoted 4 lines

../gnome-text-editor-42.0/meson.build:1:0: ERROR: Value "gnu17" (of type "string") for combo option "C language standard to use" is not one of the choices. Possible choices are (as string): "none", "c89", "c99", "c11", "gnu89", "gnu99", "gnu11".

Which compiler do you use?

this is with clang.

Quoted 1 line

Andreas

#5 lore raw
Quoted 25 lines · Khem Raj
Quoted 23 lines · Andreas Müller
Quoted 21 lines · Khem Raj

getting this error

Build started at 2022-03-31T15:52:29.098624
Main binary: /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/recipe-sysroot-native/usr/bin/nativepython3 Build Options: -Dprefix=/usr -Dbindir=bin -Ddatadir=share

(quoted diff) +0 -4
-Dincludedir=include -Dinfodir=share/info -Dlibdir=lib
-Dlibexecdir=libexec -Dlocalstatedir=/var -Dmandir=share/man
-Dsbindir=sbin -Dsharedstatedir=/com -Dsysconfdir=/etc
-Dbuildtype=plain -Dwrap_mode=nodownload '--cross-file

/mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/meson.cross' '--native-file /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/meson.native' Python system: Linux
The Meson build system
Version: 0.61.3
Source dir: /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/gnome-text-editor-42.0 Build dir: /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-text-editor/42.0-r0/build Build type: cross build
Project name: gnome-text-editor
Project version: 42.0

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

../gnome-text-editor-42.0/meson.build:1:0: ERROR: Value "gnu17" (of type "string") for combo option "C language standard to use" is not one of the choices. Possible choices are (as string): "none", "c89", "c99", "c11", "gnu89", "gnu99", "gnu11".

Which compiler do you use?

this is with clang.

Have started a build with clang for both gnome-commander / gnome-text-editor to reproduce. Hope to send a fix soon

Andreas

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#7 lore raw

Re: [oe] [PATCH 2/6] gnome-commander: initial add 1.14.2

seeing this build failure on arm64 ( I use clang )

| In file included from ../../../gnome-commander-1.14.2/src/intviewer/searcher.cc:27:
| In file included from ../../../gnome-commander-1.14.2/src/intviewer/libgviewer.h:40:
| In file included from ../../../gnome-commander-1.14.2/src/intviewer/viewer-window.h:27:
| In file included from ../../../gnome-commander-1.14.2/src/intviewer/../gnome-cmd-includes.h:24:

| In file included from
../../../gnome-commander-1.14.2/libgcmd/libgcmd.h:26:
| ../../../gnome-commander-1.14.2/libgcmd/libgcmd-widget-factory.h:167:70:
warning: 'format' attribute argument not supported: gnu_printf
[-Wignored-attributes]
| void create_error_dialog (const gchar *msg, ...) __attribute__
((format (gnu_printf, 1, 2)));
| ^
| ../../../gnome-commander-1.14.2/src/intviewer/searcher.cc:303:5:
error: cannot initialize a parameter of type 'gint *' (aka 'int *')
with an rvalue of type 'void *'
| g_atomic_int_compare_and_exchange (&src->priv->progress_value,
oldval, (gint)d);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-commander/1.14.2-r0/recipe-sysroot/usr/include/glib-2.0/glib/gatomic.h:160:44:
note: expanded from macro 'g_atomic_int_co
mpare_and_exchange'
| __atomic_compare_exchange_n ((atomic), (void *)
(&(gaicae_oldval)), (newval), FALSE, __ATOMIC_SEQ_CST,
__ATOMIC_SEQ_CST) ? TRUE : FALSE; \

|                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| 1 warning and 1 error generated.
| make[3]: *** [Makefile:521: searcher.o] Error 1
| make[3]: Leaving directory

'/mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-commander/1.14.2-r0/build/src/intviewer'

Quoted 60 lines · Andreas Müller
---
 .../gnome-commander/gnome-commander_1.14.2.bb | 22 +++++++++++++++++++
 .../packagegroups/packagegroup-gnome-apps.bb  |  1 +
 2 files changed, 23 insertions(+)
 create mode 100644 meta-gnome/recipes-gnome/gnome-commander/gnome-commander_1.14.2.bb
meta-gnome/recipes-gnome/gnome-commander/gnome-commander_1.14.2.bb new file +22 -0
new file mode 100644
index 000000000..c67242299
@@ -0,0 +1,22 @@
+SUMMARY = "A light and fast file manager"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
+
+DEPENDS = " \
+    glib-2.0-native \
+    gtk+ \
+"
+
+inherit gnomebase itstool gettext gnome-help features_check
+ANY_OF_DISTRO_FEATURES = "${GTK2DISTROFEATURES}"
+
+SRC_URI[archive.sha256sum] = "1378efd24f8af18a09031d83d918f9662a3f5eba5a6f9df9fc55870f2e6f0ee9"
+
+PACKAGECONFIG ??= "exiv2 taglib libgsf poppler"
+PACKAGECONFIG[exiv2] = "--with-exiv2,--without-exiv2,exiv2"
+PACKAGECONFIG[taglib] = "--with-taglib,--without-taglib,taglib"
+PACKAGECONFIG[libgsf] = "--with-libgsf,--without-libgsf,libgsf"
+PACKAGECONFIG[poppler] = "--with-poppler,--without-poppler,poppler"
+
+FILES:${PN} += "${datadir}/metainfo"
+FILES:${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV}"
meta-gnome/recipes-support/packagegroups/packagegroup-gnome-apps.bb +1 -1
index 481dd727d..dc446237b 100644
@@ -15,6 +15,7 @@ RDEPENDS:${PN} = " \
     ghex \
     gnome-calculator \
     gnome-calendar \
+    gnome-commander \
     gnome-font-viewer \
     gnome-photos \
     gnome-screenshot \
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#96282): https://lists.openembedded.org/g/openembedded-devel/message/96282
Mute This Topic: https://lists.openembedded.org/mt/90150027/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#8 lore raw

Re: [oe] [PATCH 2/6] gnome-commander: initial add 1.14.2

Quoted 32 lines · Khem Raj

seeing this build failure on arm64 ( I use clang )

| In file included from ../../../gnome-commander-1.14.2/src/intviewer/searcher.cc:27:
| In file included from ../../../gnome-commander-1.14.2/src/intviewer/libgviewer.h:40:
| In file included from ../../../gnome-commander-1.14.2/src/intviewer/viewer-window.h:27:
| In file included from ../../../gnome-commander-1.14.2/src/intviewer/../gnome-cmd-includes.h:24:

| In file included from
../../../gnome-commander-1.14.2/libgcmd/libgcmd.h:26:
| ../../../gnome-commander-1.14.2/libgcmd/libgcmd-widget-factory.h:167:70:
warning: 'format' attribute argument not supported: gnu_printf
[-Wignored-attributes]
| void create_error_dialog (const gchar *msg, ...) __attribute__
((format (gnu_printf, 1, 2)));
| ^
| ../../../gnome-commander-1.14.2/src/intviewer/searcher.cc:303:5:
error: cannot initialize a parameter of type 'gint *' (aka 'int *')
with an rvalue of type 'void *'
| g_atomic_int_compare_and_exchange (&src->priv->progress_value,
oldval, (gint)d);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-commander/1.14.2-r0/recipe-sysroot/usr/include/glib-2.0/glib/gatomic.h:160:44:
note: expanded from macro 'g_atomic_int_co
mpare_and_exchange'
| __atomic_compare_exchange_n ((atomic), (void *)
(&(gaicae_oldval)), (newval), FALSE, __ATOMIC_SEQ_CST,
__ATOMIC_SEQ_CST) ? TRUE : FALSE; \

Quoted 5 lines
|                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| 1 warning and 1 error generated.
| make[3]: *** [Makefile:521: searcher.o] Error 1
| make[3]: Leaving directory

'/mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-commander/1.14.2-r0/build/src/intviewer'

Looked into this and think the code of gnome-commander is correct. Looks to me that glib-2 atomic macros do not work properly in your environment. My clang/gcc-runtime build is still pending so I ask: Was this with llvm runtime?

Andreas

author
#9 lore raw

Re: [oe] [PATCH 2/6] gnome-commander: initial add 1.14.2

Quoted 40 lines · Andreas Müller
Quoted 32 lines · Khem Raj

seeing this build failure on arm64 ( I use clang )

| In file included from ../../../gnome-commander-1.14.2/src/intviewer/searcher.cc:27:
| In file included from ../../../gnome-commander-1.14.2/src/intviewer/libgviewer.h:40:
| In file included from ../../../gnome-commander-1.14.2/src/intviewer/viewer-window.h:27:
| In file included from ../../../gnome-commander-1.14.2/src/intviewer/../gnome-cmd-includes.h:24:

| In file included from
../../../gnome-commander-1.14.2/libgcmd/libgcmd.h:26:
| ../../../gnome-commander-1.14.2/libgcmd/libgcmd-widget-factory.h:167:70:
warning: 'format' attribute argument not supported: gnu_printf
[-Wignored-attributes]
| void create_error_dialog (const gchar *msg, ...) __attribute__
((format (gnu_printf, 1, 2)));
| ^
| ../../../gnome-commander-1.14.2/src/intviewer/searcher.cc:303:5:
error: cannot initialize a parameter of type 'gint *' (aka 'int *')
with an rvalue of type 'void *'
| g_atomic_int_compare_and_exchange (&src->priv->progress_value,
oldval, (gint)d);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-commander/1.14.2-r0/recipe-sysroot/usr/include/glib-2.0/glib/gatomic.h:160:44:
note: expanded from macro 'g_atomic_int_co
mpare_and_exchange'
| __atomic_compare_exchange_n ((atomic), (void *)
(&(gaicae_oldval)), (newval), FALSE, __ATOMIC_SEQ_CST,
__ATOMIC_SEQ_CST) ? TRUE : FALSE; \

Quoted 5 lines
|                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| 1 warning and 1 error generated.
| make[3]: *** [Makefile:521: searcher.o] Error 1
| make[3]: Leaving directory

'/mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-commander/1.14.2-r0/build/src/intviewer'

Quoted 4 lines

Looked into this and think the code of gnome-commander is correct. Looks to me that glib-2 atomic macros do not work properly in your environment. My clang/gcc-runtime build is still pending so I ask: Was this with llvm runtime?

yes it uses llvm runtime as well right.

Quoted 2 lines

Andreas