Skip to contentSkip to conversation

surf: Add simple web browser

PATCH Superseded Leon Anavi 6 participants 16 messages Nov 14, 2019 – Nov 16, 2019

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/1 surf: Add simple web browser

Add a recipe for surf, a simple web browser based on WebKit2/GTK+.

---
 .../0001-config.mk-Fix-compiler-and-linker.patch   | 36 ++++++++++++++++++++++
 meta-oe/recipes-graphics/surf/surf_2.0.bb          | 30 ++++++++++++++++++
 2 files changed, 66 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch
 create mode 100644 meta-oe/recipes-graphics/surf/surf_2.0.bb
meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch new file +36 -0
new file mode 100644
index 0000000..a3e33ea
@@ -0,0 +1,36 @@
+From df199f82752398f86d2332dce53f52e2cfb50c87 Mon Sep 17 00:00:00 2001
+From: Leon Anavi <[email protected]>
+Date: Thu, 14 Nov 2019 14:28:39 +0000
+Subject: [PATCH] config.mk: Fix compiler and linker
+
+Do not set explicitly compiler and linker.
+
+Signed-off-by: Leon Anavi <[email protected]>
+---
+ config.mk | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/config.mk b/config.mk
+index df6e812..bf07406 100644
+--- a/config.mk
++++ b/config.mk
+@@ -15,8 +15,8 @@ GTKINC = `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0`
+ GTKLIB = `pkg-config --libs gtk+-3.0 webkit2gtk-4.0`
+ 
+ # includes and libs
+-INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
+-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0
++INCS = ${GTKINC}
++LIBS = -lc -lX11 ${GTKLIB} -lgthread-2.0
+ 
+ # flags
+ CPPFLAGS = -DVERSION=\"${VERSION}\" -DWEBEXTDIR=\"${LIBPREFIX}\" -D_DEFAULT_SOURCE
+@@ -28,4 +28,4 @@ LDFLAGS = -s ${LIBS}
+ #LDFLAGS = ${LIBS}
+ 
+ # compiler and linker
+-CC = cc
++#CC = cc
+-- 
+2.7.4
+
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +30 -0
new file mode 100644
index 0000000..98d3b23
@@ -0,0 +1,30 @@
+SUMMARY = "Simple web browser"
+DESCRIPTION = "Simple open source web browser based on WebKit2/GTK"
+HOMEPAGE = "https://surf.suckless.org/"
+SECTION = "x11/graphics"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b57e7f7720307a02d5a6598b00fe3afa"
+
+DEPENDS = "webkitgtk gtk+ gtk+3 glib-2.0 xserver-nodm-init"
+
+REQUIRED_DISTRO_FEATURES = "x11"
+
+SRC_URI = "git://git.suckless.org/surf;branch=surf-webkit2 \
+           file://0001-config.mk-Fix-compiler-and-linker.patch \
+"
+SRCREV = "b814567e2bf8bda07cea8de1c7a062f4aa437b65"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+do_install () {
+	install -d ${D}${bindir}
+	install -m 0644 ${S}/surf ${D}${bindir}
+	chmod +x ${D}${bindir}/surf
+}
+
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+INHIBIT_PACKAGE_STRIP = "1"
Signature · 1 line
2.7.4
#1 lore raw
Quoted 1 line · Leon Anavi

Add a recipe for surf, a simple web browser based on WebKit2/GTK+.

shouldn't this go into the meta-webserver layer ?

Quoted 87 lines
---
 .../0001-config.mk-Fix-compiler-and-linker.patch   | 36 ++++++++++++++++++++++
 meta-oe/recipes-graphics/surf/surf_2.0.bb          | 30 ++++++++++++++++++
 2 files changed, 66 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch
 create mode 100644 meta-oe/recipes-graphics/surf/surf_2.0.bb
meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch new file +36 -0
new file mode 100644
index 0000000..a3e33ea
@@ -0,0 +1,36 @@
+From df199f82752398f86d2332dce53f52e2cfb50c87 Mon Sep 17 00:00:00 2001
+From: Leon Anavi <[email protected]>
+Date: Thu, 14 Nov 2019 14:28:39 +0000
+Subject: [PATCH] config.mk: Fix compiler and linker
+
+Do not set explicitly compiler and linker.
+
+Signed-off-by: Leon Anavi <[email protected]>
+---
+ config.mk | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/config.mk b/config.mk
+index df6e812..bf07406 100644
+--- a/config.mk
++++ b/config.mk
+@@ -15,8 +15,8 @@ GTKINC = `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0`
+ GTKLIB = `pkg-config --libs gtk+-3.0 webkit2gtk-4.0`
+ 
+ # includes and libs
+-INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
+-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0
++INCS = ${GTKINC}
++LIBS = -lc -lX11 ${GTKLIB} -lgthread-2.0
+ 
+ # flags
+ CPPFLAGS = -DVERSION=\"${VERSION}\" -DWEBEXTDIR=\"${LIBPREFIX}\" -D_DEFAULT_SOURCE
+@@ -28,4 +28,4 @@ LDFLAGS = -s ${LIBS}
+ #LDFLAGS = ${LIBS}
+ 
+ # compiler and linker
+-CC = cc
++#CC = cc
+-- 
+2.7.4
+
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +30 -0
new file mode 100644
index 0000000..98d3b23
@@ -0,0 +1,30 @@
+SUMMARY = "Simple web browser"
+DESCRIPTION = "Simple open source web browser based on WebKit2/GTK"
+HOMEPAGE = "https://surf.suckless.org/"
+SECTION = "x11/graphics"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b57e7f7720307a02d5a6598b00fe3afa"
+
+DEPENDS = "webkitgtk gtk+ gtk+3 glib-2.0 xserver-nodm-init"
+
+REQUIRED_DISTRO_FEATURES = "x11"
+
+SRC_URI = "git://git.suckless.org/surf;branch=surf-webkit2 \
+           file://0001-config.mk-Fix-compiler-and-linker.patch \
+"
+SRCREV = "b814567e2bf8bda07cea8de1c7a062f4aa437b65"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+do_install () {
+	install -d ${D}${bindir}
+	install -m 0644 ${S}/surf ${D}${bindir}
+	chmod +x ${D}${bindir}/surf
+}
+
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+INHIBIT_PACKAGE_STRIP = "1"
#2 lore raw
Quoted 7 lines · On Thu, Nov 14, 2019 at 10:53 AM akuster808 <[email protected]> wrote:
Quoted 1 line · Leon Anavi

Add a recipe for surf, a simple web browser based on WebKit2/GTK+.

shouldn't this go into the meta-webserver layer ?

perhaps but its the browser

Quoted 93 lines
Quoted 77 lines
---
 .../0001-config.mk-Fix-compiler-and-linker.patch   | 36 ++++++++++++++++++++++
 meta-oe/recipes-graphics/surf/surf_2.0.bb          | 30 ++++++++++++++++++
 2 files changed, 66 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch
 create mode 100644 meta-oe/recipes-graphics/surf/surf_2.0.bb
meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch new file +36 -0
new file mode 100644
index 0000000..a3e33ea
@@ -0,0 +1,36 @@
+From df199f82752398f86d2332dce53f52e2cfb50c87 Mon Sep 17 00:00:00 2001
+From: Leon Anavi <[email protected]>
+Date: Thu, 14 Nov 2019 14:28:39 +0000
+Subject: [PATCH] config.mk: Fix compiler and linker
+
+Do not set explicitly compiler and linker.
+
+Signed-off-by: Leon Anavi <[email protected]>
+---
+ config.mk | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/config.mk b/config.mk
+index df6e812..bf07406 100644
+--- a/config.mk
++++ b/config.mk
+@@ -15,8 +15,8 @@ GTKINC = `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0`
+ GTKLIB = `pkg-config --libs gtk+-3.0 webkit2gtk-4.0`
+
+ # includes and libs
+-INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
+-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0
++INCS = ${GTKINC}
++LIBS = -lc -lX11 ${GTKLIB} -lgthread-2.0
+
+ # flags
+ CPPFLAGS = -DVERSION=\"${VERSION}\" -DWEBEXTDIR=\"${LIBPREFIX}\" -D_DEFAULT_SOURCE
+@@ -28,4 +28,4 @@ LDFLAGS = -s ${LIBS}
+ #LDFLAGS = ${LIBS}
+
+ # compiler and linker
+-CC = cc
++#CC = cc
+--
+2.7.4
+
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +20 -0
new file mode 100644
index 0000000..98d3b23
@@ -0,0 +1,30 @@
+SUMMARY = "Simple web browser"
+DESCRIPTION = "Simple open source web browser based on WebKit2/GTK"
+HOMEPAGE = "https://surf.suckless.org/"
+SECTION = "x11/graphics"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b57e7f7720307a02d5a6598b00fe3afa"
+
+DEPENDS = "webkitgtk gtk+ gtk+3 glib-2.0 xserver-nodm-init"
+
+REQUIRED_DISTRO_FEATURES = "x11"
+
+SRC_URI = "git://git.suckless.org/surf;branch=surf-webkit2 \
+           file://0001-config.mk-Fix-compiler-and-linker.patch \
+"
+SRCREV = "b814567e2bf8bda07cea8de1c7a062f4aa437b65"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig
+

meta-oe/recipes-graphics/surf/surf_2.0.bb line 30

Quoted 10 lines
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +10 -0
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+do_install () {
+     install -d ${D}${bindir}
+     install -m 0644 ${S}/surf ${D}${bindir}
+     chmod +x ${D}${bindir}/surf
+}
+
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+INHIBIT_PACKAGE_STRIP = "1"

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#3 lore raw

Hi Armin, Khem,

Quoted 7 lines · Khem Raj
Quoted 5 lines · On Thu, Nov 14, 2019 at 10:53 AM akuster808 <[email protected]> wrote:
Quoted 1 line · Leon Anavi

Add a recipe for surf, a simple web browser based on WebKit2/GTK+.

shouldn't this go into the meta-webserver layer ?

perhaps but its the browser

I will be happy to move it to a more appropriate location. Where should this recipe go?

I have been thinking a lot before submitting the patch and I decided to add it to recipes-graphics and set SECTION to "x11/graphics" because it is a web browser with GUI. The other web browser, links, is in meta-oe/recipes-support.

Best regards,
Leon

Quoted 92 lines
Quoted 92 lines
Quoted 77 lines
---
  .../0001-config.mk-Fix-compiler-and-linker.patch   | 36 ++++++++++++++++++++++
  meta-oe/recipes-graphics/surf/surf_2.0.bb          | 30 ++++++++++++++++++
  2 files changed, 66 insertions(+)

create mode 100644 meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch create mode 100644 meta-oe/recipes-graphics/surf/surf_2.0.bb

meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch new file +36 -0
new file mode 100644
index 0000000..a3e33ea
@@ -0,0 +1,36 @@
+From df199f82752398f86d2332dce53f52e2cfb50c87 Mon Sep 17 00:00:00 2001
+From: Leon Anavi <[email protected]>
+Date: Thu, 14 Nov 2019 14:28:39 +0000
+Subject: [PATCH] config.mk: Fix compiler and linker
+
+Do not set explicitly compiler and linker.
+
+Signed-off-by: Leon Anavi <[email protected]>
+---
+ config.mk | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/config.mk b/config.mk
+index df6e812..bf07406 100644
+--- a/config.mk
++++ b/config.mk
+@@ -15,8 +15,8 @@ GTKINC = `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0`
+ GTKLIB = `pkg-config --libs gtk+-3.0 webkit2gtk-4.0`
+
+ # includes and libs
+-INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
+-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0
++INCS = ${GTKINC}
++LIBS = -lc -lX11 ${GTKLIB} -lgthread-2.0
+
+ # flags
+ CPPFLAGS = -DVERSION=\"${VERSION}\" -DWEBEXTDIR=\"${LIBPREFIX}\" -D_DEFAULT_SOURCE
+@@ -28,4 +28,4 @@ LDFLAGS = -s ${LIBS}
+ #LDFLAGS = ${LIBS}
+
+ # compiler and linker
+-CC = cc
++#CC = cc
+--
+2.7.4
+
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +20 -0
new file mode 100644
index 0000000..98d3b23
@@ -0,0 +1,30 @@
+SUMMARY = "Simple web browser"
+DESCRIPTION = "Simple open source web browser based on WebKit2/GTK"
+HOMEPAGE = "https://surf.suckless.org/"
+SECTION = "x11/graphics"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b57e7f7720307a02d5a6598b00fe3afa"
+
+DEPENDS = "webkitgtk gtk+ gtk+3 glib-2.0 xserver-nodm-init"
+
+REQUIRED_DISTRO_FEATURES = "x11"
+
+SRC_URI = "git://git.suckless.org/surf;branch=surf-webkit2 \
+           file://0001-config.mk-Fix-compiler-and-linker.patch \
+"
+SRCREV = "b814567e2bf8bda07cea8de1c7a062f4aa437b65"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig
+

meta-oe/recipes-graphics/surf/surf_2.0.bb line 30

Quoted 10 lines
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +10 -0
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+do_install () {
+     install -d ${D}${bindir}
+     install -m 0644 ${S}/surf ${D}${bindir}
+     chmod +x ${D}${bindir}/surf
+}
+
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+INHIBIT_PACKAGE_STRIP = "1"

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 3 lines
Leon Anavi
Software Engineer
konsulko.com
#4 lore raw
In reply to Khem Raj
Quoted 7 lines · Khem Raj
Quoted 5 lines · On Thu, Nov 14, 2019 at 10:53 AM akuster808 <[email protected]> wrote:
Quoted 1 line · Leon Anavi

Add a recipe for surf, a simple web browser based on WebKit2/GTK+.

shouldn't this go into the meta-webserver layer ?

perhaps but its the browser

hehe, your right..

Quoted 92 lines
Quoted 92 lines
Quoted 77 lines
---
 .../0001-config.mk-Fix-compiler-and-linker.patch   | 36 ++++++++++++++++++++++
 meta-oe/recipes-graphics/surf/surf_2.0.bb          | 30 ++++++++++++++++++
 2 files changed, 66 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch
 create mode 100644 meta-oe/recipes-graphics/surf/surf_2.0.bb
meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch new file +36 -0
new file mode 100644
index 0000000..a3e33ea
@@ -0,0 +1,36 @@
+From df199f82752398f86d2332dce53f52e2cfb50c87 Mon Sep 17 00:00:00 2001
+From: Leon Anavi <[email protected]>
+Date: Thu, 14 Nov 2019 14:28:39 +0000
+Subject: [PATCH] config.mk: Fix compiler and linker
+
+Do not set explicitly compiler and linker.
+
+Signed-off-by: Leon Anavi <[email protected]>
+---
+ config.mk | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/config.mk b/config.mk
+index df6e812..bf07406 100644
+--- a/config.mk
++++ b/config.mk
+@@ -15,8 +15,8 @@ GTKINC = `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0`
+ GTKLIB = `pkg-config --libs gtk+-3.0 webkit2gtk-4.0`
+
+ # includes and libs
+-INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
+-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0
++INCS = ${GTKINC}
++LIBS = -lc -lX11 ${GTKLIB} -lgthread-2.0
+
+ # flags
+ CPPFLAGS = -DVERSION=\"${VERSION}\" -DWEBEXTDIR=\"${LIBPREFIX}\" -D_DEFAULT_SOURCE
+@@ -28,4 +28,4 @@ LDFLAGS = -s ${LIBS}
+ #LDFLAGS = ${LIBS}
+
+ # compiler and linker
+-CC = cc
++#CC = cc
+--
+2.7.4
+
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +20 -0
new file mode 100644
index 0000000..98d3b23
@@ -0,0 +1,30 @@
+SUMMARY = "Simple web browser"
+DESCRIPTION = "Simple open source web browser based on WebKit2/GTK"
+HOMEPAGE = "https://surf.suckless.org/"
+SECTION = "x11/graphics"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b57e7f7720307a02d5a6598b00fe3afa"
+
+DEPENDS = "webkitgtk gtk+ gtk+3 glib-2.0 xserver-nodm-init"
+
+REQUIRED_DISTRO_FEATURES = "x11"
+
+SRC_URI = "git://git.suckless.org/surf;branch=surf-webkit2 \
+           file://0001-config.mk-Fix-compiler-and-linker.patch \
+"
+SRCREV = "b814567e2bf8bda07cea8de1c7a062f4aa437b65"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig
+

meta-oe/recipes-graphics/surf/surf_2.0.bb line 30

Quoted 10 lines
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +10 -0
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+do_install () {
+     install -d ${D}${bindir}
+     install -m 0644 ${S}/surf ${D}${bindir}
+     chmod +x ${D}${bindir}/surf
+}
+
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+INHIBIT_PACKAGE_STRIP = "1"

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#5 lore raw
In reply to akuster808

meta-browser would be more appropriate.

Quoted 90 lines · On 14.11.19 19:52, akuster808 wrote:
Quoted 1 line · Leon Anavi

Add a recipe for surf, a simple web browser based on WebKit2/GTK+.

shouldn't this go into the meta-webserver layer ?

Quoted 86 lines
---
  .../0001-config.mk-Fix-compiler-and-linker.patch   | 36 ++++++++++++++++++++++
  meta-oe/recipes-graphics/surf/surf_2.0.bb          | 30 ++++++++++++++++++
  2 files changed, 66 insertions(+)

create mode 100644 meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch create mode 100644 meta-oe/recipes-graphics/surf/surf_2.0.bb

meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch new file +36 -0
new file mode 100644
index 0000000..a3e33ea
@@ -0,0 +1,36 @@
+From df199f82752398f86d2332dce53f52e2cfb50c87 Mon Sep 17 00:00:00 2001
+From: Leon Anavi <[email protected]>
+Date: Thu, 14 Nov 2019 14:28:39 +0000
+Subject: [PATCH] config.mk: Fix compiler and linker
+
+Do not set explicitly compiler and linker.
+
+Signed-off-by: Leon Anavi <[email protected]>
+---
+ config.mk | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/config.mk b/config.mk
+index df6e812..bf07406 100644
+--- a/config.mk
++++ b/config.mk
+@@ -15,8 +15,8 @@ GTKINC = `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0`
+ GTKLIB = `pkg-config --libs gtk+-3.0 webkit2gtk-4.0`
+
+ # includes and libs
+-INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
+-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0
++INCS = ${GTKINC}
++LIBS = -lc -lX11 ${GTKLIB} -lgthread-2.0
+
+ # flags
+ CPPFLAGS = -DVERSION=\"${VERSION}\" -DWEBEXTDIR=\"${LIBPREFIX}\" -D_DEFAULT_SOURCE
+@@ -28,4 +28,4 @@ LDFLAGS = -s ${LIBS}
+ #LDFLAGS = ${LIBS}
+
+ # compiler and linker
+-CC = cc
++#CC = cc
+--
+2.7.4
+
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +30 -0
new file mode 100644
index 0000000..98d3b23
@@ -0,0 +1,30 @@
+SUMMARY = "Simple web browser"
+DESCRIPTION = "Simple open source web browser based on WebKit2/GTK"
+HOMEPAGE = "https://surf.suckless.org/"
+SECTION = "x11/graphics"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b57e7f7720307a02d5a6598b00fe3afa"
+
+DEPENDS = "webkitgtk gtk+ gtk+3 glib-2.0 xserver-nodm-init"
+
+REQUIRED_DISTRO_FEATURES = "x11"
+
+SRC_URI = "git://git.suckless.org/surf;branch=surf-webkit2 \
+           file://0001-config.mk-Fix-compiler-and-linker.patch \
+"
+SRCREV = "b814567e2bf8bda07cea8de1c7a062f4aa437b65"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+do_install () {
+	install -d ${D}${bindir}
+	install -m 0644 ${S}/surf ${D}${bindir}
+	chmod +x ${D}${bindir}/surf
+}
+
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+INHIBIT_PACKAGE_STRIP = "1"
#6 lore raw
Quoted 1 line · Carlos Rafael Giani

meta-browser would be more appropriate.

I was contemplating that as well. but these layer has more chromium and firefox lineage

Quoted 104 lines · On 14.11.19 19:52, akuster808 wrote:
Quoted 102 lines · Leon Anavi
Quoted 2 lines

Add a recipe for surf, a simple web browser based on WebKit2/GTK+.

shouldn't this go into the meta-webserver layer ?

Quoted 98 lines
---
  .../0001-config.mk-Fix-compiler-and-linker.patch   | 36
++++++++++++++++++++++
  meta-oe/recipes-graphics/surf/surf_2.0.bb          | 30
++++++++++++++++++
  2 files changed, 66 insertions(+)

create mode 100644 meta-oe/recipes-graphics/surf/surf/0001-
config.mk-Fix-compiler-and-linker.patch
create mode 100644 meta-oe/recipes-graphics/surf/surf_2.0.bb

(quoted diff) +0 -0

Fix-compiler-and-linker.patch b/meta-oe/recipes- graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch new file mode 100644
index 0000000..a3e33ea

meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix- new file +0 -0

compiler-and-linker.patch

meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix- new file +1 -0
@@ -0,0 +1,36 @@
+From df199f82752398f86d2332dce53f52e2cfb50c87 Mon Sep 17

00:00:00 2001

meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix- new file +16 -0
+From: Leon Anavi <[email protected]>
+Date: Thu, 14 Nov 2019 14:28:39 +0000
+Subject: [PATCH] config.mk: Fix compiler and linker
+
+Do not set explicitly compiler and linker.
+
+Signed-off-by: Leon Anavi <[email protected]>
+---
+ config.mk | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/config.mk b/config.mk
+index df6e812..bf07406 100644
+--- a/config.mk
++++ b/config.mk
+@@ -15,8 +15,8 @@ GTKINC = `pkg-config --cflags gtk+-3.0

webkit2gtk-4.0`
+ GTKLIB = pkg-config --libs gtk+-3.0 webkit2gtk-4.0

meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix- new file +18 -1
+
+ # includes and libs
+-INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
+-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0
++INCS = ${GTKINC}
++LIBS = -lc -lX11 ${GTKLIB} -lgthread-2.0
+
+ # flags
+ CPPFLAGS = -DVERSION=\"${VERSION}\"
-DWEBEXTDIR=\"${LIBPREFIX}\" -D_DEFAULT_SOURCE
+@@ -28,4 +28,4 @@ LDFLAGS = -s ${LIBS}
+ #LDFLAGS = ${LIBS}
+
+ # compiler and linker
+-CC = cc
++#CC = cc
+--
+2.7.4
+
meta- renamed from meta-oe/recipes-graphics/surf/surf_2.0.bb +0 -0

oe/recipes-graphics/surf/surf_2.0.bb
new file mode 100644
index 0000000..98d3b23

meta-oe/recipes-graphics/surf/surf_2.0.bb new file +2 -0
@@ -0,0 +1,30 @@
+SUMMARY = "Simple web browser"
+DESCRIPTION = "Simple open source web browser based on

WebKit2/GTK"

meta-oe/recipes-graphics/surf/surf_2.0.bb new file +4 -0
+HOMEPAGE = "https://surf.suckless.org/"
+SECTION = "x11/graphics"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM =

"file://LICENSE;md5=b57e7f7720307a02d5a6598b00fe3afa"

meta-oe/recipes-graphics/surf/surf_2.0.bb new file +24 -0
+
+DEPENDS = "webkitgtk gtk+ gtk+3 glib-2.0 xserver-nodm-init"
+
+REQUIRED_DISTRO_FEATURES = "x11"
+
+SRC_URI = "git://git.suckless.org/surf;branch=surf-webkit2 \
+           file://0001-config.mk-Fix-compiler-and-linker.patch \
+"
+SRCREV = "b814567e2bf8bda07cea8de1c7a062f4aa437b65"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+do_install () {
+	install -d ${D}${bindir}
+	install -m 0644 ${S}/surf ${D}${bindir}
+	chmod +x ${D}${bindir}/surf
+}
+
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+INHIBIT_PACKAGE_STRIP = "1"
#7 lore raw
Quoted 5 lines · Khem Raj
Quoted 1 line · Carlos Rafael Giani

meta-browser would be more appropriate.

I was contemplating that as well. but these layer has more chromium and firefox lineage

But it's called meta-browser and not meta-firefox-and-chromium. :)

Ross

#8 lore raw
Quoted 10 lines · Ross Burton
Quoted 5 lines · Khem Raj
Quoted 1 line · Carlos Rafael Giani

meta-browser would be more appropriate.

I was contemplating that as well. but these layer has more chromium and firefox lineage

But it's called meta-browser and not meta-firefox-and-chromium. :)

certainly, worth proposing there.

Quoted 6 lines

Ross
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#9 lore raw

Hi Khem, Ross,

Quoted 9 lines · Khem Raj
Quoted 7 lines · Ross Burton
Quoted 4 lines · Khem Raj
Quoted 1 line · Carlos Rafael Giani

meta-browser would be more appropriate.

I was contemplating that as well. but these layer has more chromium and firefox lineage

But it's called meta-browser and not meta-firefox-and-chromium. :)

certainly, worth proposing there.

Layer meta-browser was on my radar before submitting the patch to meta-oe. I also thought that this layer is more about chromium and firefox. Links, another lightweight browser, is in meta-oe.

In the mean time I've fixed the configurations so that surf recipe doesn't need INHIBIT_PACKAGE_DEBUG_SPLIT or INHIBIT_PACKAGE_STRIP anymore.

Best regards,
Leon

Quoted 7 lines
Quoted 7 lines

Ross
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 3 lines
Leon Anavi
Software Engineer
konsulko.com
#10 lore raw
In reply to Leon Anavi
Quoted 59 lines · Leon Anavi

Add a recipe for surf, a simple web browser based on WebKit2/GTK+.

---
 .../0001-config.mk-Fix-compiler-and-linker.patch   | 36 ++++++++++++++++++++++
 meta-oe/recipes-graphics/surf/surf_2.0.bb          | 30 ++++++++++++++++++
 2 files changed, 66 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch
 create mode 100644 meta-oe/recipes-graphics/surf/surf_2.0.bb
meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch new file +36 -0
new file mode 100644
index 0000000..a3e33ea
@@ -0,0 +1,36 @@
+From df199f82752398f86d2332dce53f52e2cfb50c87 Mon Sep 17 00:00:00 2001
+From: Leon Anavi <[email protected]>
+Date: Thu, 14 Nov 2019 14:28:39 +0000
+Subject: [PATCH] config.mk: Fix compiler and linker
+
+Do not set explicitly compiler and linker.
+
+Signed-off-by: Leon Anavi <[email protected]>
+---
+ config.mk | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/config.mk b/config.mk
+index df6e812..bf07406 100644
+--- a/config.mk
++++ b/config.mk
+@@ -15,8 +15,8 @@ GTKINC = `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0`
+ GTKLIB = `pkg-config --libs gtk+-3.0 webkit2gtk-4.0`
+
+ # includes and libs
+-INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
+-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0
++INCS = ${GTKINC}
++LIBS = -lc -lX11 ${GTKLIB} -lgthread-2.0
+
+ # flags
+ CPPFLAGS = -DVERSION=\"${VERSION}\" -DWEBEXTDIR=\"${LIBPREFIX}\" -D_DEFAULT_SOURCE
+@@ -28,4 +28,4 @@ LDFLAGS = -s ${LIBS}
+ #LDFLAGS = ${LIBS}
+
+ # compiler and linker
+-CC = cc
++#CC = cc
+--
+2.7.4
+
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +0 -0
new file mode 100644
index 0000000..98d3b23

meta-oe/recipes-graphics/surf/surf_2.0.bb line 9

Quoted 9 lines
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +9 -0
@@ -0,0 +1,30 @@
+SUMMARY = "Simple web browser"
+DESCRIPTION = "Simple open source web browser based on WebKit2/GTK"
+HOMEPAGE = "https://surf.suckless.org/"
+SECTION = "x11/graphics"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b57e7f7720307a02d5a6598b00fe3afa"
+
+DEPENDS = "webkitgtk gtk+ gtk+3 glib-2.0 xserver-nodm-init"
+

seems to have sstate issues in do_install see
http://jenkins.nas-admin.org/job/oe_world_workspace-compare-signatures/846/console

perhaps due to ./meta/recipes-graphics/x11-common/xserver-nodm-init_3.0.bb being in depends and
this recipe is pinned per MACHINE via PACKAGE_ARCH = "${MACHINE_ARCH}"

Quoted 29 lines
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +21 -1
+REQUIRED_DISTRO_FEATURES = "x11"
+
+SRC_URI = "git://git.suckless.org/surf;branch=surf-webkit2 \
+           file://0001-config.mk-Fix-compiler-and-linker.patch \
+"
+SRCREV = "b814567e2bf8bda07cea8de1c7a062f4aa437b65"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+do_install () {
+       install -d ${D}${bindir}
+       install -m 0644 ${S}/surf ${D}${bindir}
+       chmod +x ${D}${bindir}/surf
+}
+
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+INHIBIT_PACKAGE_STRIP = "1"
--

2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#11 lore raw

REQUIRED_DISTRO_FEATURES = "x11"

doesn't do anything unless you inherit the distro_features_check.bbclass which I don't see in the recipe.

Quoted 123 lines · Khem Raj
Quoted 6 lines · Leon Anavi

Add a recipe for surf, a simple web browser based on WebKit2/GTK+.

---
 .../0001-config.mk-Fix-compiler-and-linker.patch   | 36

++++++++++++++++++++++

Quoted 1 line
 meta-oe/recipes-graphics/surf/surf_2.0.bb          | 30

++++++++++++++++++

Quoted 2 lines
 2 files changed, 66 insertions(+)
 create mode 100644

meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch

Quoted 3 lines
 create mode 100644 meta-oe/recipes-graphics/surf/surf_2.0.bb

diff --git

a/meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch b/meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch

Quoted 4 lines

new file mode 100644
index 0000000..a3e33ea
--- /dev/null
+++

b/meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch

Quoted 18 lines
meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch new file +17 -0
@@ -0,0 +1,36 @@
+From df199f82752398f86d2332dce53f52e2cfb50c87 Mon Sep 17 00:00:00 2001
+From: Leon Anavi <[email protected]>
+Date: Thu, 14 Nov 2019 14:28:39 +0000
+Subject: [PATCH] config.mk: Fix compiler and linker
+
+Do not set explicitly compiler and linker.
+
+Signed-off-by: Leon Anavi <[email protected]>
+---
+ config.mk | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/config.mk b/config.mk
+index df6e812..bf07406 100644
+--- a/config.mk
++++ b/config.mk
+@@ -15,8 +15,8 @@ GTKINC = `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0`

meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch line 27

Quoted 10 lines
meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch new file +10 -0
+ GTKLIB = `pkg-config --libs gtk+-3.0 webkit2gtk-4.0`
+
+ # includes and libs
+-INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
+-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0
++INCS = ${GTKINC}
++LIBS = -lc -lX11 ${GTKLIB} -lgthread-2.0
+
+ # flags
+ CPPFLAGS = -DVERSION=\"${VERSION}\" -DWEBEXTDIR=\"${LIBPREFIX}\"

-D_DEFAULT_SOURCE

Review

Quoted 10 lines
meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch new file +9 -0
+@@ -28,4 +28,4 @@ LDFLAGS = -s ${LIBS}
+ #LDFLAGS = ${LIBS}
+
+ # compiler and linker
+-CC = cc
++#CC = cc
+--
+2.7.4
+
(quoted diff) +0 -0

b/meta-oe/recipes-graphics/surf/surf_2.0.bb

Quoted 5 lines

new file mode 100644
index 0000000..98d3b23

meta-oe/recipes-graphics/surf/surf_2.0.bb line 9

Quoted 9 lines
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +9 -0
@@ -0,0 +1,30 @@
+SUMMARY = "Simple web browser"
+DESCRIPTION = "Simple open source web browser based on WebKit2/GTK"
+HOMEPAGE = "https://surf.suckless.org/"
+SECTION = "x11/graphics"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b57e7f7720307a02d5a6598b00fe3afa"
+
+DEPENDS = "webkitgtk gtk+ gtk+3 glib-2.0 xserver-nodm-init"
+

seems to have sstate issues in do_install see

http://jenkins.nas-admin.org/job/oe_world_workspace-compare-signatures/846/console

perhaps due to ./meta/recipes-graphics/x11-common/xserver-nodm-init_3.0.bb being in depends and
this recipe is pinned per MACHINE via PACKAGE_ARCH = "${MACHINE_ARCH}"

Quoted 24 lines
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +21 -1
+REQUIRED_DISTRO_FEATURES = "x11"
+
+SRC_URI = "git://git.suckless.org/surf;branch=surf-webkit2 \
+           file://0001-config.mk-Fix-compiler-and-linker.patch \
+"
+SRCREV = "b814567e2bf8bda07cea8de1c7a062f4aa437b65"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+do_install () {
+       install -d ${D}${bindir}
+       install -m 0644 ${S}/surf ${D}${bindir}
+       chmod +x ${D}${bindir}/surf
+}
+
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+INHIBIT_PACKAGE_STRIP = "1"
--

2.7.4

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#12 lore raw
In reply to Leon Anavi
Quoted 1 line · Leon Anavi

+DEPENDS = "webkitgtk gtk+ gtk+3 glib-2.0 xserver-nodm-init"

Are you sure it *build* depends on the X init scripts?

meta-oe/recipes-graphics/surf/surf_2.0.bb line 30

Quoted 2 lines
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +2 -0
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+INHIBIT_PACKAGE_STRIP = "1"

Why?

Ross

author
#13 lore raw

Hi Ross, Martin, Khem,

Thanks you for the feedback and for helping me. I've just submitted an updated version of the patch for a review. Now the recipe inherits distro_features_check.

Quoted 5 lines · Ross Burton
Quoted 1 line · Leon Anavi

+DEPENDS = "webkitgtk gtk+ gtk+3 glib-2.0 xserver-nodm-init"

Are you sure it *build* depends on the X init scripts?

No, sorry, xserver-nodm-init is not a build dependency. I've removed it from the new version of the patch.

Quoted 4 lines

meta-oe/recipes-graphics/surf/surf_2.0.bb line 30

Quoted 2 lines
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +2 -0
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+INHIBIT_PACKAGE_STRIP = "1"

Why?

These two lines prevent already-stripped QA errors.

I have tested the recipe on QEMU and Raspberry Pi 4.

Thanks, Leon

Quoted 3 lines

Ross

Signature · 3 lines
Leon Anavi
Software Engineer
konsulko.com
#14 lore raw
Quoted 12 lines · Leon Anavi

Hi Ross, Martin, Khem,

Thanks you for the feedback and for helping me. I've just submitted an updated version of the patch for a review. Now the recipe inherits distro_features_check.

Quoted 5 lines · Ross Burton
Quoted 1 line · Leon Anavi

+DEPENDS = "webkitgtk gtk+ gtk+3 glib-2.0 xserver-nodm-init"

Are you sure it *build* depends on the X init scripts?

Quoted 8 lines

No, sorry, xserver-nodm-init is not a build dependency. I've removed it from the new version of the patch.

Quoted 4 lines

meta-oe/recipes-graphics/surf/surf_2.0.bb line 30

Quoted 2 lines
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +2 -0
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+INHIBIT_PACKAGE_STRIP = "1"

Why?

These two lines prevent already-stripped QA errors.

At least we don’t want debug splitting to be disabled What errors do you see with this
Enabled

Quoted 12 lines

I have tested the recipe on QEMU and Raspberry Pi 4.

Thanks, Leon

Quoted 3 lines

Ross

--
Leon Anavi
Software Engineer
konsulko.com

#15 lore raw
In reply to Leon Anavi
Quoted 5 lines · Leon Anavi
Quoted 4 lines

meta-oe/recipes-graphics/surf/surf_2.0.bb line 30

Quoted 2 lines
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +2 -0
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+INHIBIT_PACKAGE_STRIP = "1"

Why?

These two lines prevent already-stripped QA errors.

The correct fix is to stop the recipe from forcibly stripping, or tell it to include debug information in the first place. The default CFLAGS includes -g so the problem is normally the former unless CFLAGS is not being respected.

Ross