Skip to contentSkip to conversation

package/feh: Fix build issue with some older cross-compilers

PATCH Superseded Petr Vorel 2 participants 5 messages Nov 15, 2017

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/2 package/feh: Fix build issue with some older cross-compilers

by adding -std=gnu11 to CFLAGS.

Also: build in parallel, use TARGET_CONFIGURE_OPTS and cleanup FEH_INSTALL_TARGET_CMDS.

Fixes:
http://autobuild.buildroot.net/results/94527fcd70fa85298c366537013c939534beead0/
http://autobuild.buildroot.net/results/bf31199cdaa18971a9b599c26fbefac73b2d6f30/
http://autobuild.buildroot.net/results/5b65c305b50664e02d5f8022278055c80739342d/
http://autobuild.buildroot.net/results/ed3b9fb8d09cd677af4b8825566877c552926ae5/

---
 package/feh/feh.mk | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
package/feh/feh.mk +3 -4
index 3f4c410440..e0ca21b9ca 100644
@@ -12,13 +12,12 @@ FEH_LICENSE = MIT
 FEH_LICENSE_FILES = COPYING
 
 define FEH_BUILD_CMDS
-	$(TARGET_MAKE_ENV) $(MAKE1) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" \
-		-C $(@D) all
+	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -std=gnu11" \
+		$(MAKE) -C $(@D) all
 endef
 
 define FEH_INSTALL_TARGET_CMDS
-	$(TARGET_MAKE_ENV) $(MAKE1) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) " \
-		PREFIX=/usr DESTDIR=$(TARGET_DIR) -C $(@D) install
+	$(TARGET_MAKE_ENV) $(MAKE) PREFIX=/usr DESTDIR=$(TARGET_DIR) -C $(@D) install
 endef
 
 $(eval $(generic-package))
Signature · 1 line
2.15.0
author
#1 lore raw

PATCH 2/2 package/feh: Bump to version 2.22.2

---
 package/feh/feh.hash | 2 +-
 package/feh/feh.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/feh/feh.hash +1 -1
index f3f7ceddd9..0f8ac8c0b0 100644
@@ -1,2 +1,2 @@
 # Locally calculated after checking pgp signature
-sha256 520481c9908d999f8f7546103b78ff9b11f41d25b0938f0a22f10aaa48beef2b  feh-2.21.tar.bz2
+sha256 05a81fbe0997f6274c7617efc351647be38e5244c2624bd203459025c9a68ecd  feh-2.22.2.tar.bz2
package/feh/feh.mk +1 -1
index e0ca21b9ca..5fa6e055d3 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-FEH_VERSION = 2.21
+FEH_VERSION = 2.22.2
 FEH_SOURCE = feh-$(FEH_VERSION).tar.bz2
 FEH_SITE = http://feh.finalrewind.org
 FEH_DEPENDENCIES = libcurl imlib2 libpng xlib_libXinerama xlib_libXt
Signature · 1 line
2.15.0
#2 lore raw

PATCH 1/2 package/feh: Fix build issue with some older cross-compilers

In reply to Petr Vorel

Hi Petr,

How did you overcome the build issue you had?

Quoted 4 lines · Petr Vorel

by adding -std=gnu11 to CFLAGS.

Also: build in parallel, use TARGET_CONFIGURE_OPTS and cleanup FEH_INSTALL_TARGET_CMDS.

This should be a separate patch, I think.

baruch

Quoted 32 lines

Fixes:
http://autobuild.buildroot.net/results/94527fcd70fa85298c366537013c939534beead0/
http://autobuild.buildroot.net/results/bf31199cdaa18971a9b599c26fbefac73b2d6f30/
http://autobuild.buildroot.net/results/5b65c305b50664e02d5f8022278055c80739342d/
http://autobuild.buildroot.net/results/ed3b9fb8d09cd677af4b8825566877c552926ae5/

---
 package/feh/feh.mk | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
package/feh/feh.mk +3 -4
index 3f4c410440..e0ca21b9ca 100644
@@ -12,13 +12,12 @@ FEH_LICENSE = MIT
 FEH_LICENSE_FILES = COPYING
 
 define FEH_BUILD_CMDS
-	$(TARGET_MAKE_ENV) $(MAKE1) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" \
-		-C $(@D) all
+	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -std=gnu11" \
+		$(MAKE) -C $(@D) all
 endef
 
 define FEH_INSTALL_TARGET_CMDS
-	$(TARGET_MAKE_ENV) $(MAKE1) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) " \
-		PREFIX=/usr DESTDIR=$(TARGET_DIR) -C $(@D) install
+	$(TARGET_MAKE_ENV) $(MAKE) PREFIX=/usr DESTDIR=$(TARGET_DIR) -C $(@D) install
 endef
 
 $(eval $(generic-package))
Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
author
#3 lore raw

PATCH 1/2 package/feh: Fix build issue with some older cross-compilers

Hi Baruch,

Quoted 3 lines

Hi Petr,

How did you overcome the build issue you had?

Build on another machine with Debian. I'll write about it in the original thread (and CC you and.

Quoted 7 lines · Petr Vorel
Quoted 4 lines

by adding -std=gnu11 to CFLAGS.

Also: build in parallel, use TARGET_CONFIGURE_OPTS and cleanup FEH_INSTALL_TARGET_CMDS.

This should be a separate patch, I think.

I don't like squashing things in one commit either, but this looked obvious to me. OK, I'll split it.

Kind regards,
Petr

#4 lore raw

PATCH 1/2 package/feh: Fix build issue with some older cross-compilers

Hi Petr,

Quoted 6 lines · Petr Vorel

Hi Baruch,

Quoted 1 line

How did you overcome the build issue you had?

Build on another machine with Debian. I'll write about it in the original thread (and CC you and.

Quoted 1 line · Petr Vorel
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

by adding -std=gnu11 to CFLAGS.

Also: build in parallel, use TARGET_CONFIGURE_OPTS and cleanup FEH_INSTALL_TARGET_CMDS.

This should be a separate patch, I think.

I don't like squashing things in one commit either, but this looked obvious to me. OK, I'll split it.

Apart from keeping separate changes in separate patches, I think we'd like to have the fix in master, but the cleanup in next.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -