socat: Add version 1.7.1.2
PATCH v2 1/1 socat: Add version 1.7.1.2
Second try. Added package source checksums, changed PR to r0, and removed some trailing whitespace in the patch.
Allow socat 1.7.1.2 to cross build. In configure.in, the 4th value in AC_TRY_RUN() gives a default value for cross build environments since a test program cannot be run on the build system. There are 2 places where AC_MSG_RESULT() is used instead of a default value which seems to result in code like "#define CRDLY_SHIFT" which breaks preprocessor checks like "#if CRDLY_SHIFT >= 0".
The patch gives default values in configure and configure.in for cross compiling and checks were added in the affected source.
--- conf/checksums.ini | 4 + recipes/socat/files/socat-1.7.1.2-cross.patch | 98 +++++++++++++++++++++++++ recipes/socat/socat_1.7.1.2.bb | 23 ++++++ 3 files changed, 125 insertions(+), 0 deletions(-) create mode 100644 recipes/socat/files/socat-1.7.1.2-cross.patch create mode 100644 recipes/socat/socat_1.7.1.2.bb
conf/checksums.ini +4 -0
@@ -25150,6 +25150,10 @@ sha256=ecfbca297c26eff6cb04c2c45af1ee5c21d4a123a05f8b056a1c81ffcdfa1e3a md5=860fe417ea5e9ca2d2b2225192b85b87 sha256=ecfbca297c26eff6cb04c2c45af1ee5c21d4a123a05f8b056a1c81ffcdfa1e3a +[http://www.dest-unreach.org/socat/download/socat-1.7.1.2.tar.bz2] +md5=9c0c5e83ce665f38d4d3aababad275eb +sha256=f7395b154914bdaa49805603aac2a90fb3d60255f95691d7779ab4680615e167 + [http://download.ronetix.info/sk-eb926x/linux/kernel/2.6.25.4/socketcan-driver-at91.patch] md5=fe6945121eaea5e9c570e3dad54d7569 sha256=578db455270592833156358f79205b21701aa12b64142da16df08fb36fca3322
recipes/socat/files/socat-1.7.1.2-cross.patch new file +98 -0
98 lines not on this page · raw message
recipes/socat/socat_1.7.1.2.bb new file +23 -0
@@ -0,0 +1,23 @@ +SECTION = "console/network" +DEPENDS = "openssl readline" +DESCRIPTION = "Socat is a network relay for bidirectional data \ +transfer between two independent data channels." +LICENSE = "GPL" +PR = "r0" + +SRC_URI = "http://www.dest-unreach.org/socat/download/${P}.tar.bz2 \ + file://socat-1.7.1.2-cross.patch;patch=1 " + +inherit autotools + +do_configure() { + # Override this function so the included config.h.in is used instead + # of recreating it with autoheader. + (cd ${S} && gnu-configize) || die "failure in running gnu-configize" + oe_runconf +} + +do_install_prepend () { + mkdir -p ${D}${bindir} + install -d ${D}${bindir} ${D}${mandir}/man1 +}
Signature · 1 line
1.6.3.3
Am Samstag, den 23.01.2010, 15:16 -0800 schrieb John Faith:
[Moved note about v2 to the end of commit message.]
Quoted 6 lines
Allow socat 1.7.1.2 to cross build. In configure.in, the 4th value in
AC_TRY_RUN()gives a default value for cross build environments since a test program cannot be run on the build system. There are 2 places whereAC_MSG_RESULT()is used instead of a default value which seems to result in code like "#defineCRDLY_SHIFT" which breaks preprocessor checks like "#ifCRDLY_SHIFT>= 0".
Maybe add an item, why the change in do_configure() is needed. Just copy it from your reply to Koen maybe.
Quoted 2 lines
The patch gives default values in configure and configure.in for cross compiling and checks were added in the affected source.
v2: Added package source checksums, changed PR to r0, and removed some trailing whitespace in the patch.
Quoted 1 line
Signed-off-by John Faith <[email protected]>
(beagleboard, Ångström)
/oe/angstrom-dev/deploy/glibc/ipk/armv7a$ ls -lh socat*
-rw-r--r-- 1 x x 146K 24. Jan 12:21 socat_1.7.1.2-r0.5_armv7a.ipk
-rw-r--r-- 1 x x 9,4M 24. Jan 12:21 socat-dbg_1.7.1.2-r0.5_armv7a.ipk
-rw-r--r-- 1 x x 790 24. Jan 12:21 socat-dev_1.7.1.2-r0.5_armv7a.ipk
-rw-r--r-- 1 x x 36K 24. Jan 12:21 socat-doc_1.7.1.2-r0.5_armv7a.ipkI am just wondering about the size of socat-dbg*.ipk though.
Quoted 1 line
---
[…]
recipes/socat/files/socat-1.7.1.2-cross.patch line 47
Quoted 4 lines
+--- socat-1.7.1.2/xioopts.c.orig 2010-01-04 04:29:36.000000000 -0800
++++socat-1.7.1.2/xioopts.c2010-01-21 10:54:03.561742501 -0800
+@@ -763,7 +763,7 @@ const struct optname optionnames[] = {recipes/socat/files/socat-1.7.1.2-cross.patch new file +1
-0+ IF_IP6 ("ipv6only", &opt_ipv6_v6only)
Still some trailing whitespaces (in all ipv6 lines I think).
openembedded$ git am -s /tmp/\[oe\]_\[PATCH_v2\]_socat\:_Add_version_1.7.1.2
Applying: socat: Add version 1.7.1.2 /oe/openembedded/.git/rebase-apply/patch:76: space before tab in indent.
IF_IP6 ("ipv6only", &opt_ipv6_v6only)
/oe/openembedded/.git/rebase-apply/patch:78: space before tab in indent.
IF_TERMIOS("isig", &opt_isig)
/oe/openembedded/.git/rebase-apply/patch:81: space before tab in indent.
IF_TERMIOS("ispeed", &opt_ispeed)
/oe/openembedded/.git/rebase-apply/patch:83: space before tab in indent.
IF_TERMIOS("istrip", &opt_istrip)
/oe/openembedded/.git/rebase-apply/patch:85: space before tab in indent.
IF_OPENSSL("openssl-pseudo", &opt_openssl_pseudo)
warning: squelched 5 whitespace errors
warning: 10 lines add whitespace errors.
(Try to apply your patch yourself.) But I guess it is alright.
[…]
Quoted 12 lines
recipes/socat/socat_1.7.1.2.bb new file +6
-0@@ -0,0 +1,23 @@ +SECTION = "console/network" +DEPENDS = "openssl readline" +DESCRIPTION = "Socat is a network relay for bidirectional data \ +transfer between two independent data channels." +LICENSE = "GPL" +PR = "r0"
recipes/socat/socat_1.7.1.2.bb line 16
Quoted 10 lines
recipes/socat/socat_1.7.1.2.bb new file +10
-0+ +SRC_URI = "http://www.dest-unreach.org/socat/download/${P}.tar.bz2 \ + file://socat-1.7.1.2-cross.patch;patch=1 " + +inherit autotools + +do_configure() { + # Override this function so the included config.h.in is used instead + # of recreating it with autoheader. + (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
Someone else has to judge on the autotool stuff.
[…]
Quoted 13 lines · Paul Menzel
Am Samstag, den 23.01.2010, 15:16 -0800 schrieb John Faith:
[Moved note about v2 to the end of commit message.]
Quoted 7 lines
Allow socat 1.7.1.2 to cross build. In configure.in, the 4th value in
AC_TRY_RUN()gives a default value for cross build environments since a test program cannot be run on the build system. There are 2 places whereAC_MSG_RESULT()is used instead of a default value which seems to result in code like "#defineCRDLY_SHIFT" which breaks preprocessor checks like "#ifCRDLY_SHIFT>= 0".
Quoted 3 lines
Maybe add an item, why the change in
do_configure()is needed. Just copy it from your reply to Koen maybe.
Do you want a v3 of the patch for this or other changes?
Quoted 14 lines
Quoted 3 lines
The patch gives default values in configure and configure.in for cross compiling and checks were added in the affected source.
v2: Added package source checksums, changed PR to r0, and removed some trailing whitespace in the patch.
Quoted 2 lines
Signed-off-by John Faith <[email protected]>Build-tested-by Paul Menzel <[email protected]>(beagleboard, Ångström)
Quoted 9 lines
/oe/angstrom-dev/deploy/glibc/ipk/armv7a$ ls -lh socat* -rw-r--r-- 1 x x 146K 24. Jan 12:21 socat_1.7.1.2-r0.5_armv7a.ipk -rw-r--r-- 1 x x 9,4M 24. Jan 12:21 socat-dbg_1.7.1.2-r0.5_armv7a.ipk -rw-r--r-- 1 x x 790 24. Jan 12:21 socat-dev_1.7.1.2-r0.5_armv7a.ipk -rw-r--r-- 1 x x 36K 24. Jan 12:21 socat-doc_1.7.1.2-r0.5_armv7a.ipkI am just wondering about the size of
socat-dbg*.ipkthough.
Hm, my debug ipk is only 30k and contains 3 files:
~/oe/arago-deploy/ipk/armv5te $ ls -lh socat*1.7*r0* -rw-r--r-- 1 148K 2010-01-23 13:37 socat_1.7.1.2-r0.2_armv5te.ipk -rw-r--r-- 1 30K 2010-01-23 13:37 socat-dbg_1.7.1.2-r0.2_armv5te.ipk -rw-r--r-- 1 784 2010-01-23 13:37 socat-dev_1.7.1.2-r0.2_armv5te.ipk -rw-r--r-- 1 36K 2010-01-23 13:37 socat-doc_1.7.1.2-r0.2_armv5te.ipk
# opkg files socat-dbg Package socat-dbg (1.7.1.2-r0.2) is installed on root and has the following files: /usr/bin/.debug/procan /usr/bin/.debug/filan /usr/bin/.debug/socat
# ls -l /usr/bin/.debug -rwxr-xr-x 1 root root 20599 Jan 23 21:37 filan -rwxr-xr-x 1 root root 18750 Jan 23 21:37 procan -rwxr-xr-x 1 root root 59328 Jan 23 21:37 socat
Quoted 24 lines
recipes/socat/files/socat-1.7.1.2-cross.patch line 47
Quoted 6 lines
+--- socat-1.7.1.2/xioopts.c.orig 2010-01-04 04:29:36.000000000 -0800
++++socat-1.7.1.2/xioopts.c2010-01-21 10:54:03.561742501 -0800
+@@ -763,7 +763,7 @@ const struct optname optionnames[] = {recipes/socat/files/socat-1.7.1.2-cross.patch new file +1
-0+ IF_IP6 ("ipv6only", &opt_ipv6_v6only)Still some trailing whitespaces (in all ipv6 lines I think).
openembedded$ git am -s /tmp/\[oe\]_\[PATCH_v2\]_socat\:_Add_version_1.7.1.2
Applying: socat: Add version 1.7.1.2 /oe/openembedded/.git/rebase-apply/patch:76: space before tab in indent.
IF_IP6("ipv6only",&opt_ipv6_v6only)
/oe/openembedded/.git/rebase-apply/patch:78: space before tab in indent.
IF_TERMIOS("isig", &opt_isig)
/oe/openembedded/.git/rebase-apply/patch:81: space before tab in indent.
IF_TERMIOS("ispeed", &opt_ispeed)
/oe/openembedded/.git/rebase-apply/patch:83: space before tab in indent.
IF_TERMIOS("istrip", &opt_istrip)
/oe/openembedded/.git/rebase-apply/patch:85: space before tab in indent.
IF_OPENSSL("openssl-pseudo", &opt_openssl_pseudo)
warning: squelched 5 whitespace errors
warning: 10 lines add whitespace errors.
Quoted 4 lines
(Try to apply your patch yourself.) But I guess it is alright.
[…]
I did try 'git am' and noticed that the number of whitespace warnings wend down after I manually removed spaces on otherwise empty lines apparently introduced by my diff process. The remaining "space before tab" warnings are in the socat source in adjacent lines created by diff -u; these of course could never go away since a patch to remove them containing the '-<space><tab>' would itself trigger a warning from "git am". Not sure how the socat authors would feel about changing all these ;). socat-1.7.1.2$ grep ' \t' * | wc -l
7615
Thanks for the review.
,
John
Quoted 2 lines · On Sunday 24 January 2010 00:16:46 John Faith wrote:
Second try. Added package source checksums, changed PR to r0, and removed
some trailing whitespace in the patch.
First of all, thank you for the contribution. I have one question. Why did you need to patch the configure script? It should be automatically regenerated in the do_configure stage?
Quoted 10 lines · Holger Hans Peter Freyther
Quoted 3 lines · On Sunday 24 January 2010 00:16:46 John Faith wrote:
Second try. Added package source checksums, changed PR to r0, and removed
some trailing whitespace in the patch.First of all, thank you for the contribution. I have one question. Why did you need to patch the configure script? It should be automatically regenerated in the
do_configurestage?
Hi,
Using the default do_configure() overwrote config.h.in which lacked #defines like HAVE_SIGACTION and broke compilation for me. I imagine that the right thing to do would be to just to patch configure.in and recreate the configure script and config.h.in. This page:
http://www.gnu.org/software/hello/manual/gettext/config_002eh_002ein.html
seems to indicate that its ok to manually maintain a config.h.in, so I wonder what do_configure() should do in this case when this file is included in the source.
,
John
Quoted 16 lines · John Faith
Quoted 4 lines · Holger Hans Peter Freyther
Quoted 1 line · On Sunday 24 January 2010 00:16:46 John Faith wrote:
Quoted 10 lines
Quoted 3 lines
Second try. Added package source checksums, changed PR to r0, and removed some trailing whitespace in the patch.
First of all, thank you for the contribution. I have one question. Why did you need to patch the configure script? It should be automatically regenerated in the
do_configurestage?
Quoted 9 lines
Hi,
Using the defaultdo_configure()overwrote config.h.in which lacked #defines likeHAVE_SIGACTIONand broke compilation for me. I imagine that the right thing to do would be to just to patch configure.in and recreate the configure script and config.h.in. This page:
http://www.gnu.org/software/hello/manual/gettext/config_002eh_002ein.html
seems to indicate that its ok to manually maintain a config.h.in, so I wonder whatdo_configure()should do in this case when this file is included in the source.
autoheader is creating the config.h.in and do_configure will do it if project is set
to maintain config.h.in automatically. Your option is to override do_configure and invoke the only regeneration commands that are needed however fixing it in configure.in would be best IMO because then autoheader will get it right too.
Quoted 10 lines
,
John_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 2 lines · On Sunday 24 January 2010 00:16:46 John Faith wrote:
Second try. Added package source checksums, changed PR to r0, and removed some trailing whitespace in the patch.
Hi,
I'm terrible sorry... besides posting in this thread I forgot about it when upgrading socat to that version. The problem for me was with the newer autoconf and that it needs three parameters for the autoheader app to properly generate entries...
z.