On Fri, Dec 2, 2016 at 10:48 AM, Sudeepto Roy <sudeepto.roy at gmail.com> wrote:
Hi,

on my setup i am having trouble building openssl and the reason is a
creation if a file whose file name is bigger then 144 char.


make[5]: Leaving directory
`/home/sudeepto/Documents/projects/lede/source/build_dir/target-mips_24kc_musl-1.1.15/openssl-1.0.2j/apps'
make[4]: Leaving directory
`/home/sudeepto/Documents/projects/lede/source/build_dir/target-mips_24kc_musl-1.1.15/openssl-1.0.2j'
rm -f /home/sudeepto/Documents/projects/lede/source/build_dir/target-mips_24kc_musl-1.1.15/openssl-1.0.2j/.configured_* touch /home/sudeepto/Documents/projects/lede/source/build_dir/target-mips_24kc_musl-1.1.15/openssl-1.0.2j/.configured_nnynnnynnyyyyyyyyyy_shared_no-err_no-sse2_no-ssl2_no-ssl2-method_no-heartbeats_no-engines_no-ec2m_no-ssl3_no-ssl3-method_no-hw_no-dtls_no-comp_no-sse2
touch: cannot touch
'/home/sudeepto/Documents/projects/lede/source/build_dir/target-mips_24kc_musl-1.1.15/openssl-1.0.2j/.configured_nnynnnynnyyyyyyyyyy_shared_no-err_no-sse2_no-ssl2_no-ssl2-method_no-heartbeats_no-engines_no-ec2m_no-ssl3_no-ssl3-method_no-hw_no-dtls_no-comp_no-sse2':
File name too long
make[3]: *** [/home/sudeepto/Documents/projects/lede/source/build_dir/target-mips_24kc_musl-1.1.15/openssl-1.0.2j/.configured_nnynnnynnyyyyyyyyyy_shared_no-err_no-sse2_no-ssl2_no-ssl2-method_no-heartbeats_no-engines_no-ec2m_no-ssl3_no-ssl3-method_no-hw_no-dtls_no-comp_no-sse2]
Error 1
make[3]: Leaving directory
`/home/sudeepto/Documents/projects/lede/source/package/libs/openssl'
make[2]: *** [package/libs/openssl/compile] Error 2

<<<

I don't see the same issue on another machine running Ubuntu 14.04 and
i had to make code changes to satisfy touch command on my working
machine. diff below

Do you know the significance of STAMP_CONFIGURED variable and will it
be ok to change this variable to have camel-case syntax. This makes
the file name sorter and we will have scope for future flags in case.

any comments if i should submit a patch for this?

Diff:

sudeepto at ubuntu:source$ git diff
diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile
index a09c148..0a10e30 100644
--- a/package/libs/openssl/Makefile
+++ b/package/libs/openssl/Makefile
@@ -168,7 +168,10 @@ else
   endif
 endif

-STAMP_CONFIGURED := $(STAMP_CONFIGURED)_$(subst $(space),_,$(OPENSSL_OPTIONS))
+S_DIR := $(shell dirname $(STAMP_CONFIGURED))
+S_BASE := $(shell basename $(STAMP_CONFIGURED) | cut -d_ -f1)
+S_OPTION := $(subst $(space),_,$(OPENSSL_OPTIONS))
+STAMP_CONFIGURED := $(S_DIR)/$(S_BASE)_$(shell echo $(S_OPTION) | sed
-r 's/(^|_|-)([a-z])/\U\2/g')

 define Build/Configure
        [ -f $(STAMP_CONFIGURED) ] || { \
sudeepto at ubuntu:source$


Regards,
Sudeepto Roy

_______________________________________________
Lede-dev mailing list
Lede-dev at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Are you using an encrypted /home by any chance? I had similar errors, I have my code outside /home for exactly that reason - because ecryptfs doesn't like the long filenames.

_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to