{"id":49,"date":"2014-10-13T19:57:54","date_gmt":"2014-10-13T19:57:54","guid":{"rendered":"http:\/\/adrhc.go.ro\/wordpress\/?p=49"},"modified":"2017-10-07T17:26:13","modified_gmt":"2017-10-07T15:26:13","slug":"compiling-findutils","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/compiling-findutils\/","title":{"rendered":"Compiling findutils"},"content":{"rendered":"<pre class=\"brush:bash shell\">\r\n#See https:\/\/adrhc.go.ro\/wordpress\/common-commands-when-building\/ for building environment, x.sh script and other things not defined here.\r\n#Before starting do declare the environment variables specified to the link above.\r\n\r\n#requires: pth-2.0.7-arm-1.txz, libiconv-1.14-arm-1.txz, texinfo-5.2-arm-1.txz\r\ncd ~\/compile\r\nrm -r ~\/compile\/findutils\r\n#rel-4-4-fixes branch (stable)\r\n#git clone -q -b rel-4-4-fixes git:\/\/git.savannah.gnu.org\/findutils.git\r\n#master branch\r\ngit clone git:\/\/git.savannah.gnu.org\/findutils.git\r\n\r\n#ERROR:\r\n\tfind.texi:1893: node `Time Formats' lacks menu item for `Formatting Flags' despite being its Up target\r\n\tmake[2]: *** [find.info] Error 1\r\n\tmake[2]: Leaving directory `\/usr\/local\/zy-pkgs\/ffproot\/ffp\/home\/root\/compile\/findutils\/doc'\r\n\tmake[1]: *** [all-recursive] Error 1\r\n\tmake[1]: Leaving directory `\/usr\/local\/zy-pkgs\/ffproot\/ffp\/home\/root\/compile\/findutils'\r\n\tmake: *** [all] Error 2\r\n#SOLUTION:\r\n\tWhen building rel-4-4-fixes branch you need something like s:texinfo-4.13a-arm-1.txz (ver. 4.x) but not uli:texinfo-5.2-arm-1.txz (ver. 5.x).\r\n\tUser master branch with uli:texinfo-5.2-arm-1.txz (ver. 5.x).\r\n#ERROR1:\r\n\tconfigure.ac:4: error: possibly undefined macro: AM_INIT_AUTOMAKE\r\n\t\t  If this token and others are legitimate, please use m4_pattern_allow.\r\n\t\t  See the Autoconf documentation.\r\n#SOLUTION1:\r\n\tDon't download the sources instead use master branch or rel-4-4-fixes branch links above.\r\n\r\ncd ~\/compile\/findutils\r\n~\/x.sh ffpg\r\nrm -r ~\/compile\/findutils\/gnulib\r\n.\/import-gnulib.sh\r\nrm nohup.out\r\nnohup .\/configure --prefix=\/ffp --enable-id-cache --enable-leaf-optimisation --enable-dependency-tracking --enable-threads=posix --without-included-regex --with-libiconv-prefix=\/ffp --with-libintl-prefix=\/ffp &\r\n#sed -i s\/\"@insertcopying{}\"\/\"@insertcopying\"\/ ~\/compile\/findutils\/doc\/find.texi\r\nnohup make &\r\nrenice -14 `pidof cc1plus` -p `pidof make` -p `pidof as`\r\ntail -f nohup.out\r\nmkdir -p ~\/temp\/findutils\r\nrm -r ~\/temp\/findutils\/*\r\n#make install DESTDIR=~\/temp\/findutils -&gt; ATENTIE, trebuie data calea completa (ca mai jos) ci nu cu ~\r\nmake install DESTDIR=\/usr\/local\/zy-pkgs\/ffproot\/ffp\/home\/root\/temp\/findutils\r\n#rm \/tmp\/findutils-4.5.15-arm-X.txz -&gt; won't delete it because I want to force the modifying of buildnumber on new builds\r\n#makepkg findutils version buildnumber\r\ncd ~\/temp\/findutils\r\nmakepkg findutils 4.5.15 2\r\ncp -v \/tmp\/findutils-4.5.15-arm-2.txz \/usr\/local\/zy-pkgs\/gui\/ffp_0.7_armv5\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#See https:\/\/adrhc.go.ro\/wordpress\/common-commands-when-building\/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. #requires: pth-2.0.7-arm-1.txz, libiconv-1.14-arm-1.txz, texinfo-5.2-arm-1.txz cd ~\/compile rm -r ~\/compile\/findutils #rel-4-4-fixes branch (stable) #git clone -q [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/compiling-findutils\/#more-49\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Compiling findutils<\/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":[],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-compiling-from-source","category-linux","category-nsa310"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/49","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=49"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/49\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}