{"id":1108,"date":"2014-12-31T18:57:12","date_gmt":"2014-12-31T16:57:12","guid":{"rendered":"http:\/\/adrhc.go.ro\/wordpress\/?p=1108"},"modified":"2017-10-07T17:25:41","modified_gmt":"2017-10-07T15:25:41","slug":"compiling-nettle","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/compiling-nettle\/","title":{"rendered":"Compiling nettle"},"content":{"rendered":"<pre class=\"brush:bash shell\">\r\n#search for 2.7-fixes at https:\/\/www.mail-archive.com\/nettle-bugs@lists.lysator.liu.se\/msg00683.html\r\nNEW_BUILD_NAME=nettle\r\nNEW_BUILD_VER=2.7-fixes\r\nNEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER\r\nls -l \/tmp\/$NEW_BUILD_NAME-*\r\nls -l ~\/ffp_0.7_armv5\/packages\/$NEW_BUILD_NAME-*\r\nNEW_BUILD_NR=0\r\ncd ~\/compile\r\nwget -O nettle-2.7-fixes.zip https:\/\/git.lysator.liu.se\/nettle\/nettle\/repository\/archive.zip?ref=nettle-2.7-fixes\r\nunzip $NEW_BUILD_NAME_AND_VER.zip\r\ncd ~\/compile\/$NEW_BUILD_NAME_AND_VER\/\r\nfind . -type f \\( -exec sed -i s\/\"\\\/usr\\\/bin\\\/perl\"\/\"\\\/ffp\\\/bin\\\/perl\"\/ {} \\; , -exec sed -i s\/\"\\\/usr\\\/bin\\\/python\"\/\"\\\/ffp\\\/bin\\\/python\"\/ {} \\; , -exec sed -i s\/\"\\\/usr\\\/bin\\\/bash\"\/\"\\\/ffp\\\/bin\\\/bash\"\/ {} \\; , -exec sed -i s\/\"\\\/usr\\\/bin\\\/sh\"\/\"\\\/ffp\\\/bin\\\/sh\"\/ {} \\; , -exec sed -i s\/\"\\\/usr\\\/bin\\\/env\"\/\"\\\/ffp\\\/bin\\\/env\"\/ {} \\; , -exec sed -i s\/\"\\\/bin\\\/bash\"\/\"\\\/ffp\\\/bin\\\/bash\"\/ {} \\; , -exec sed -i s\/\"\\\/bin\\\/sh\"\/\"\\\/ffp\\\/bin\\\/sh\"\/ {} \\; , -exec sed -i s\/\"\\\/bin\\\/env\"\/\"\\\/ffp\\\/bin\\\/env\"\/ {} \\; , -exec sed -i s\/\"\\\/ffp\\\/ffp\\\/\"\/\"\\\/ffp\\\/\"\/ {} \\; \\)\r\nexport BUILD_FLAGS=\"-march=armv5te -mfloat-abi=soft -mabi=aapcs-linux -pthread -O2 -lintl -Wall -I\/ffp\/include\"\r\nexport LDFLAGS=\"-L\/ffp\/lib -lintl\"\r\nexport CPPFLAGS=\"$BUILD_FLAGS\"\r\nexport CXXFLAGS=\"$BUILD_FLAGS\"\r\nexport CFLAGS=\"$BUILD_FLAGS\"\r\nexport LC_ALL=POSIX\r\naclocal -I .\r\nautoconf\r\nautoheader\r\n#automake --add-missing\r\n#Comment\/modify these lines in Makefile.in:\r\n#DOCTARGETS = @IF_DOCUMENTATION@ nettle.html\r\n##DOCTARGETS = @IF_DOCUMENTATION@ nettle.info nettle.html nettle.pdf\r\n#\r\n##.texinfo.dvi:\r\n##\tcd $(srcdir) && texi2dvi -b `basename \"$<\"`\r\n#\r\n##.dvi.ps:\r\n##\tcd $(srcdir) &#038;&#038; dvips -Ppdf -G0 -o `basename \"$<\" .dvi`.ps `basename \"$<\"`\r\n#\r\n#\tnettle.html sha-example.c\r\n##\tnettle.texinfo nettle.info nettle.html nettle.pdf sha-example.c\r\n.\/configure --help > configure.help.txt\r\n.\/configure --prefix=\/ffp --enable-gcov\r\nmake\r\n#nohup \/ffp\/bin\/make -C ~\/compile\/$NEW_BUILD_NAME_AND_VER &\r\n#tail -f nohup.out\r\n#new package creation & installation\r\nrm -r $HOME\/temp\/$NEW_BUILD_NAME_AND_VER\r\nmake install DESTDIR=$HOME\/temp\/$NEW_BUILD_NAME_AND_VER\r\ncd $HOME\/temp\/$NEW_BUILD_NAME_AND_VER\r\nmakepkg $NEW_BUILD_NAME $NEW_BUILD_VER $NEW_BUILD_NR\r\ncp -v \/tmp\/$NEW_BUILD_NAME-$NEW_BUILD_VER-arm-$NEW_BUILD_NR.txz ~\/ffp_0.7_armv5\/packages\/\r\nfunpkg -i ~\/ffp_0.7_armv5\/packages\/$NEW_BUILD_NAME-$NEW_BUILD_VER-arm-$NEW_BUILD_NR.txz\r\nfunpkg -q $NEW_BUILD_NAME\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#search for 2.7-fixes at https:\/\/www.mail-archive.com\/nettle-bugs@lists.lysator.liu.se\/msg00683.html NEW_BUILD_NAME=nettle NEW_BUILD_VER=2.7-fixes NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l \/tmp\/$NEW_BUILD_NAME-* ls -l ~\/ffp_0.7_armv5\/packages\/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 cd ~\/compile wget -O nettle-2.7-fixes.zip https:\/\/git.lysator.liu.se\/nettle\/nettle\/repository\/archive.zip?ref=nettle-2.7-fixes unzip $NEW_BUILD_NAME_AND_VER.zip cd ~\/compile\/$NEW_BUILD_NAME_AND_VER\/ find . -type f \\( -exec sed -i s\/&#8221;\\\/usr\\\/bin\\\/perl&#8221;\/&#8221;\\\/ffp\\\/bin\\\/perl&#8221;\/ {} \\; , -exec sed -i [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/compiling-nettle\/#more-1108\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Compiling nettle<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,11,163],"tags":[132],"class_list":["post-1108","post","type-post","status-publish","format-standard","hentry","category-compiling-from-source","category-linux","category-nsa310","tag-nettle"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/1108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=1108"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/1108\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=1108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=1108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=1108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}