Skip to contentSkip to conversation

package/joe: bump version to 4.4

PATCH Superseded Bernd Kuhls 2 participants 4 messages Jul 24, 2017 – Jul 25, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/joe: bump version to 4.4

Add upstream sha1 & md5 hashes.

Removed patch 0001 after bessel functions in uClibc were enabled by default:
https://git.buildroot.net/buildroot/commit/package/uclibc?id=de56d58e5d26d78161ca3b7a1a2a4decfe4e89db

---
Tested with test-pkg using this defconfig

BR2_PACKAGE_JOE=y
BR2_PACKAGE_JOE_FULL=y

                armv5-ctng-linux-gnueabi [ 1/47]: OK
              armv7-ctng-linux-gnueabihf [ 2/47]: OK
                        br-aarch64-glibc [ 3/47]: OK
                           br-arcle-hs38 [ 4/47]: OK
                            br-arm-basic [ 5/47]: OK
                  br-arm-cortex-a9-glibc [ 6/47]: OK
                   br-arm-cortex-a9-musl [ 7/47]: OK
                   br-arm-cortex-m4-full [ 8/47]: SKIPPED
                             br-arm-full [ 9/47]: OK
                    br-arm-full-nothread [10/47]: OK
                      br-arm-full-static [11/47]: OK
                            br-bfin-full [12/47]: SKIPPED
                   br-i386-pentium4-full [13/47]: OK
                br-i386-pentium-mmx-musl [14/47]: OK
                       br-m68k-5208-full [15/47]: SKIPPED
                      br-m68k-68040-full [16/47]: OK
                    br-microblazeel-full [17/47]: OK
                 br-mips32r6-el-hf-glibc [18/47]: OK
                      br-mips64-n64-full [19/47]: OK
                 br-mips64r6-el-hf-glibc [20/47]: OK
                      br-mipsel-o32-full [21/47]: OK
                          br-nios2-glibc [22/47]: OK
                      br-openrisc-uclibc [23/47]: OK
               br-powerpc-603e-basic-cpp [24/47]: OK
             br-powerpc64le-power8-glibc [25/47]: OK
               br-powerpc64-power7-glibc [26/47]: OK
                  br-powerpc-e500mc-full [27/47]: OK
                             br-sh4-full [28/47]: OK
                        br-sparc64-glibc [29/47]: OK
                         br-sparc-uclibc [30/47]: OK
                    br-x86-64-core2-full [31/47]: OK
                          br-x86-64-musl [32/47]: OK
                          br-xtensa-full [33/47]: OK
                     i686-ctng-linux-gnu [34/47]: OK
                          linaro-aarch64 [35/47]: OK
                              linaro-arm [36/47]: OK
             mips64el-ctng_n32-linux-gnu [37/47]: OK
             mips64el-ctng_n64-linux-gnu [38/47]: OK
        powerpc-ctng_e500v2-linux-gnuspe [39/47]: OK
                     sourcery-arm-armv4t [40/47]: OK
                            sourcery-arm [41/47]: OK
                     sourcery-arm-thumb2 [42/47]: OK
                         sourcery-mips64 [43/47]: OK
                           sourcery-mips [44/47]: OK
                          sourcery-nios2 [45/47]: OK
                         sourcery-x86-64 [46/47]: OK
           x86_64-ctng_locales-linux-gnu [47/47]: OK

47 builds, 3 skipped, 0 build failed, 0 legal-info failed

 .../0001-disable-bessel-functions-on-uclibc.patch  | 50 ----------------------
 package/joe/joe.hash                               |  5 ++-
 package/joe/joe.mk                                 |  2 +-
 3 files changed, 5 insertions(+), 52 deletions(-)
 delete mode 100644 package/joe/0001-disable-bessel-functions-on-uclibc.patch
package/joe/0001-disable-bessel-functions-on-uclibc.patch deleted +0 -50
deleted file mode 100644
index 9f7b72c17..000000000
@@ -1,50 +0,0 @@
-[PATCH] uClibc can be (and by default is) configured without bessel functions
-
-Signed-off-by: Peter Korsgaard <[email protected]>
----
- umath.c |   10 ++++++++++
- 1 file changed, 10 insertions(+)
-
-Index: joe-3.7/umath.c
-===================================================================
---- joe-3.7.orig/umath.c
-+++ joe-3.7/umath.c
-@@ -7,6 +7,12 @@
-  */
- #include "types.h"
- 
-+/* uClibc can be configured without bessel functions */
-+#include <features.h>
-+#if defined (__UCLIBC__) && !defined(__DO_XSI_MATH__)
-+#define NO_BESSEL
-+#endif
-+
- unsigned char *merr;
- 
- int mode_hex;
-@@ -396,10 +402,12 @@
- double m_fabs(double n) { return fabs(n); }
- double m_erf(double n) { return erf(n); }
- double m_erfc(double n) { return erfc(n); }
-+#ifndef NO_BESSEL
- double m_j0(double n) { return j0(n); }
- double m_j1(double n) { return j1(n); }
- double m_y0(double n) { return y0(n); }
- double m_y1(double n) { return y1(n); }
-+#endif
- 
- double calc(BW *bw, unsigned char *s)
- {
-@@ -434,10 +442,12 @@
- 		v = get(USTR "abs"); v->func = m_fabs;
- 		v = get(USTR "erf"); v->func = m_erf;
- 		v = get(USTR "erfc"); v->func = m_erfc;
-+#ifndef NO_BESSEL
- 		v = get(USTR "j0"); v->func = m_j0;
- 		v = get(USTR "j1"); v->func = m_j1;
- 		v = get(USTR "y0"); v->func = m_y0;
- 		v = get(USTR "y1"); v->func = m_y1;
-+#endif
- 	}
- 
- 	v = get(USTR "top");
package/joe/joe.hash +4 -1
index 664410d19..0a9c1fb8d 100644
@@ -1,2 +1,5 @@
+# From https://sourceforge.net/projects/joe-editor/files/JOE%20sources/joe-4.4/
+sha1 aedf1ac9e6b91053aa26c70e7bba5bbd8136f033  joe-4.4.tar.gz
+md5 59e63debe60b456a6ee5c0c27a756a47  joe-4.4.tar.gz
 # Locally computed:
-sha256  cae456e1ad5a8c1d3c94920a3416c2347277739b260e3494d3bc0f2b9b73106f  joe-3.7.tar.gz
+sha256 a5704828bbca29acb9e200414fef522c66cdf9ce28150f402d6767da43460979  joe-4.4.tar.gz
package/joe/joe.mk +1 -1
index e19cae121..934018aad 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-JOE_VERSION = 3.7
+JOE_VERSION = 4.4
 JOE_SITE = http://downloads.sourceforge.net/project/joe-editor/JOE%20sources/joe-$(JOE_VERSION)
 JOE_LICENSE = GPL-1.0+
 JOE_LICENSE_FILES = COPYING
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 package/joe: bump version to 4.4

Quoted 61 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Add upstream sha1 & md5 hashes.
Removed patch 0001 after bessel functions in uClibc were enabled by default:
https://git.buildroot.net/buildroot/commit/package/uclibc?id=de56d58e5d26d78161ca3b7a1a2a4decfe4e89db

---
Tested with test-pkg using this defconfig

BR2_PACKAGE_JOE=y
BR2_PACKAGE_JOE_FULL=y

                armv5-ctng-linux-gnueabi [ 1/47]: OK
              armv7-ctng-linux-gnueabihf [ 2/47]: OK
                        br-aarch64-glibc [ 3/47]: OK
                           br-arcle-hs38 [ 4/47]: OK
                            br-arm-basic [ 5/47]: OK
                  br-arm-cortex-a9-glibc [ 6/47]: OK
                   br-arm-cortex-a9-musl [ 7/47]: OK
                   br-arm-cortex-m4-full [ 8/47]: SKIPPED
                             br-arm-full [ 9/47]: OK
                    br-arm-full-nothread [10/47]: OK
                      br-arm-full-static [11/47]: OK
                            br-bfin-full [12/47]: SKIPPED
                   br-i386-pentium4-full [13/47]: OK
                br-i386-pentium-mmx-musl [14/47]: OK
                       br-m68k-5208-full [15/47]: SKIPPED
                      br-m68k-68040-full [16/47]: OK
                    br-microblazeel-full [17/47]: OK
                 br-mips32r6-el-hf-glibc [18/47]: OK
                      br-mips64-n64-full [19/47]: OK
                 br-mips64r6-el-hf-glibc [20/47]: OK
                      br-mipsel-o32-full [21/47]: OK
                          br-nios2-glibc [22/47]: OK
                      br-openrisc-uclibc [23/47]: OK
               br-powerpc-603e-basic-cpp [24/47]: OK
             br-powerpc64le-power8-glibc [25/47]: OK
               br-powerpc64-power7-glibc [26/47]: OK
                  br-powerpc-e500mc-full [27/47]: OK
                             br-sh4-full [28/47]: OK
                        br-sparc64-glibc [29/47]: OK
                         br-sparc-uclibc [30/47]: OK
                    br-x86-64-core2-full [31/47]: OK
                          br-x86-64-musl [32/47]: OK
                          br-xtensa-full [33/47]: OK
                     i686-ctng-linux-gnu [34/47]: OK
                          linaro-aarch64 [35/47]: OK
                              linaro-arm [36/47]: OK
             mips64el-ctng_n32-linux-gnu [37/47]: OK
             mips64el-ctng_n64-linux-gnu [38/47]: OK
        powerpc-ctng_e500v2-linux-gnuspe [39/47]: OK
                     sourcery-arm-armv4t [40/47]: OK
                            sourcery-arm [41/47]: OK
                     sourcery-arm-thumb2 [42/47]: OK
                         sourcery-mips64 [43/47]: OK
                           sourcery-mips [44/47]: OK
                          sourcery-nios2 [45/47]: OK
                         sourcery-x86-64 [46/47]: OK
           x86_64-ctng_locales-linux-gnu [47/47]: OK
Quoted 1 line

47 builds, 3 skipped, 0 build failed, 0 legal-info failed

Really?

Quoted 1 line
Quoted 1 line
Quoted 1 line

joe 4.4 Installing to target

/usr/bin/install -m 0755 -D /home/peko/source/buildroot/output-joe/build/joe-4.4/joe /home/peko/source/buildroot/output-joe/target/usr/bin/joe /usr/bin/install: omitting directory '/home/peko/source/buildroot/output-joe/build/joe-4.4/joe' package/pkg-generic.mk:308: recipe for target '/home/peko/source/buildroot/output-joe/build/joe-4.4/.stamp_target_installed' failed make[1]: *** [/home/peko/source/buildroot/output-joe/build/joe-4.4/.stamp_target_installed] Error 1
Makefile:16: recipe for target '_all' failed
make: *** [_all] Error 2

joe 4.x seems to have moved the joe binary into the joe/ subdirectory.

I'm not quite sure why we use a custom install step instead of just make install. This is what joe installs:

make DESTDIR=/tmp/blah install

du -h /tmp/blah/

132K    /tmp/blah/usr/share/man/man1
44K     /tmp/blah/usr/share/man/ru/man1
48K     /tmp/blah/usr/share/man/ru
184K    /tmp/blah/usr/share/man
572K    /tmp/blah/usr/share/joe/syntax
232K    /tmp/blah/usr/share/joe/lang
16K     /tmp/blah/usr/share/joe/charmaps
824K    /tmp/blah/usr/share/joe
312K    /tmp/blah/usr/share/doc/joe
316K    /tmp/blah/usr/share/doc
1.3M    /tmp/blah/usr/share
596K    /tmp/blah/usr/bin
1.9M    /tmp/blah/usr
320K    /tmp/blah/etc/joe
324K    /tmp/blah/etc
2.3M    /tmp/blah/

So ~320KB default configuration in /etc and ~824K of syntax/lang/charmaps data.

If that is too much, then some of this can be imho be stripped in a post-build script.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 package/joe: bump version to 4.4

Hi Peter,

Am Tue, 25 Jul 2017 16:14:25 +0200 schrieb Peter Korsgaard:

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <bernd.kuhls-

Quoted 7 lines · [email protected]> writes:
Quoted 5 lines

Tested with test-pkg using this defconfig

BR2_PACKAGE_JOE=y
BR2_PACKAGE_JOE_FULL=y

Really?

yes.

Quoted 2 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

joe 4.4 Installing to target

/usr/bin/install -m 0755 -D /home/peko/source/buildroot/output-joe/

build/joe-4.4/joe /home/peko/source/buildroot/output-joe/target/usr/bin/ joe

Quoted 1 line

/usr/bin/install: omitting directory '/home/peko/source/buildroot/

output-joe/build/joe-4.4/joe'

Quoted 1 line

package/pkg-generic.mk:308: recipe for target '/home/peko/source/

buildroot/output-joe/build/joe-4.4/.stamp_target_installed' failed

Quoted 1 line

make[1]: *** [/home/peko/source/buildroot/output-joe/build/

joe-4.4/.stamp_target_installed] Error 1

Quoted 2 lines

Makefile:16: recipe for target '_all' failed
make: *** [_all] Error 2

Did you test with the same defconfig?

I just re-tested "make joe" using this defconfig

BR2_x86_64=y
BR2_x86_core2=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/ tarballs/br-x86-64-core2-full-2017.05-1078-g95b1dae.tar.bz2" BR2_TOOLCHAIN_EXTERNAL_GCC_6=y BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_4=y BR2_TOOLCHAIN_EXTERNAL_LOCALE=y
# BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG is not set BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_PACKAGE_JOE=y

and it installs

$ LC_ALL=C ls -la output/target/usr/bin/
total 612
drwxr-xr-x 2 bernd bernd   4096 Jul 25 21:53 .
drwxr-xr-x 6 bernd bernd   4096 Jul 25 21:53 ..
lrwxrwxrwx 1 bernd bernd      3 Jul 25 21:53 jmacs -> joe
-rwxr-xr-x 1 bernd bernd 615704 Jul 25 21:53 joe
lrwxrwxrwx 1 bernd bernd      3 Jul 25 21:53 jpico -> joe
lrwxrwxrwx 1 bernd bernd      3 Jul 25 21:53 jstar -> joe
lrwxrwxrwx 1 bernd bernd      3 Jul 25 21:53 rjoe -> joe

without errors.

Ah, now I see the difference, BR2_PACKAGE_JOE_FULL has "default y" and was part of my defconfig. When deactivating BR2_PACKAGE_JOE_FULL I can reproduce the error, sent v2.

Quoted 2 lines

I'm not quite sure why we use a custom install step instead of just make install. This is what joe installs:

"make install" installs everything while custom JOE_INSTALL_TARGET_CMDS only installs the binary when BR2_PACKAGE_JOE_FULL is disabled.

Regards, Bernd

#3 lore raw

PATCH 1/1 package/joe: bump version to 4.4

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Hi,

Quoted 3 lines

Ah, now I see the difference, BR2_PACKAGE_JOE_FULL has "default y" and was part of my defconfig. When deactivating BR2_PACKAGE_JOE_FULL I can reproduce the error, sent v2.

Ok, thanks.

Quoted 5 lines
Quoted 2 lines

I'm not quite sure why we use a custom install step instead of just make install. This is what joe installs:

"make install" installs everything while custom JOE_INSTALL_TARGET_CMDS only installs the binary when BR2_PACKAGE_JOE_FULL is disabled.

Ahh yes.

Signature · 1 line
Bye, Peter Korsgaard