{"id":1068,"date":"2014-12-16T12:17:07","date_gmt":"2014-12-16T10:17:07","guid":{"rendered":"http:\/\/adrhc.go.ro\/wordpress\/?p=1068"},"modified":"2017-05-12T11:16:01","modified_gmt":"2017-05-12T09:16:01","slug":"building-automake","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/building-automake\/","title":{"rendered":"Building automake"},"content":{"rendered":"<pre class=\"brush:bash shell\">\r\nNEW_BUILD_NAME=automake\r\nNEW_BUILD_VER=1.14.1\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 http:\/\/ftp.gnu.org\/gnu\/automake\/automake-1.14.1.tar.xz\r\ntar -xf $NEW_BUILD_NAME_AND_VER.tar.xz\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\n.\/configure --help > configure.help.txt \r\n.\/bootstrap.sh --prefix=\/ffp\r\nCONFIG_SHELL=\/ffp\/bin\/bash .\/configure CONFIG_SHELL=\/ffp\/bin\/bash --prefix=\/ffp\r\nmake\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 -q $NEW_BUILD_NAME\r\nfunpkg -i ~\/ffp_0.7_armv5\/packages\/$NEW_BUILD_NAME-$NEW_BUILD_VER-arm-$NEW_BUILD_NR.txz\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>NEW_BUILD_NAME=automake NEW_BUILD_VER=1.14.1 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 http:\/\/ftp.gnu.org\/gnu\/automake\/automake-1.14.1.tar.xz tar -xf $NEW_BUILD_NAME_AND_VER.tar.xz 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 s\/&#8221;\\\/usr\\\/bin\\\/python&#8221;\/&#8221;\\\/ffp\\\/bin\\\/python&#8221;\/ {} \\; , -exec sed [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/building-automake\/#more-1068\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Building automake<\/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],"tags":[137],"class_list":["post-1068","post","type-post","status-publish","format-standard","hentry","category-compiling-from-source","category-linux","tag-automake"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/1068","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=1068"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/1068\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=1068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=1068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=1068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}