<div dir="ltr">Hey,<div><br></div><div>I have been trying to build rpms from different releases without much success. I can build 4.0+ rpms but I have not tested them. Going backward like with release-3-3-5, it fails on lint/pylint routine. I comment out the lint call in the Makefile and further along it cannot find some ui files.</div>
<div><br></div><div>I got this setup to use docker to generate the rpms. Included below are the sequences and commands.</div><div><br></div><div>for current release that does build without intervention:</div><div># docker run -ti --name freeipa-devel-rpms-container knighcl/freeipa-devel-rpms:fedora-20 release-4-0-1<br>
</div><div><br></div><div>or for master</div><div><div><br></div><div># docker run -ti --name freeipa-devel-rpms-container knighcl/freeipa-devel-rpms:fedora-20<br></div></div><div><br></div><div>for previous release<br></div>
<div># docker run -ti --name freeipa-devel-rpms-container knighcl/freeipa-devel-rpms:fedora-20 release-3-3-5<br></div><div><br></div><div>Once dropped into the terminal upon finishing, I edit the Makefile to comment out the make-lint line within the lint stanza</div>
<div><pre style="margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0);font-size:13px;line-height:19.5px"><code>#.<span class="">/</span>make-lint <span class="">$(</span>LINT_OPTIONS<span class="">)</span></code></pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px"><code><span class="" style="white-space:normal"><font face="arial">run '<font color="#000000"><span style="line-height:19.5px">make rpms' again to get beyond lint errors shown below</span></font></font></span></code></pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px"><code><span class="" style="white-space:normal"><font face="arial"><font color="#000000"><span style="line-height:19.5px"><br></span></font></font></span></code></pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px"><code><span class="" style="line-height:19.5px;white-space:normal"><font color="#000000" face="arial">cd install; if [ ! -e Makefile ]; then ../autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib; fi
./make-lint 
Traceback (most recent call last):
  File "./make-lint", line 272, in <module>
    sys.exit(main())
  File "./make-lint", line 243, in main
    linter.check(files)
  File "/usr/lib/python2.7/site-packages/pylint/lint.py", line 626, in check
    self.check_astroid_module(astroid, walker, rawcheckers, tokencheckers)
  File "/usr/lib/python2.7/site-packages/pylint/lint.py", line 712, in check_astroid_module
    walker.walk(astroid)
  File "/usr/lib/python2.7/site-packages/pylint/utils.py", line 715, in walk
    self.walk(child)
  File "/usr/lib/python2.7/site-packages/pylint/utils.py", line 715, in walk
    self.walk(child)
  File "/usr/lib/python2.7/site-packages/pylint/utils.py", line 712, in walk
    cb(astroid)
  File "/usr/lib/python2.7/site-packages/pylint/checkers/newstyle.py", line 135, in visit_function
    args=(call.args[0].name, ))
AttributeError: 'Getattr' object has no attribute 'name'
make: *** [lint] Error 1
<br></font></span></code></pre><div><code><span class="" style="white-space:normal"><font face="arial"><font color="#000000"><span style="line-height:19.5px"><br></span></font></font></span></code></div><div><code><span class="" style="white-space:normal"><font face="arial"><font color="#000000"><span style="line-height:19.5px">The final errors from the build are below. I tried to find the jdennis building/ci script to see if there is something I am missing but I am guessing it is on the build system. This was an exercise on building rpms and learning docker to possibly help the developers out with a new process. I do not need to do this successfully but thought you might want to know that something might not be proper.</span></font></font></span></code></div>
<div><code><span class="" style="white-space:normal"><font face="arial"><font color="#000000"><span style="line-height:19.5px"><br></span></font></font></span></code></div><div><code><span class="" style="white-space:normal"><font face="arial"><font color="#000000"><span style="line-height:19.5px">Regards,</span></font></font></span></code></div>
<div><code><span class="" style="white-space:normal"><font face="arial"><font color="#000000"><span style="line-height:19.5px">Curtis</span></font></font></span></code></div><div><code><span class="" style="white-space:normal"><font face="arial"><font color="#000000"><span style="line-height:19.5px"><br>
</span></font></font></span></code></div><div><code><span class="" style="white-space:normal"><font face="arial"><font color="#000000"><span style="line-height:19.5px">rpm 3.3.5 log</span></font></font></span></code></div>
<div><code><span class=""><font face="arial" style><font color="#000000" style><div style><span style="line-height:19.5px"> /usr/bin/mkdir -p '/freeipa/rpmbuild/BUILDROOT/freeipa-3.3.5GITd366595-0.fc20.x86_64/usr/share/ipa/ui/js/dojo'</span></div>
<div style><span style="line-height:19.5px"> /usr/bin/install -c -m 644 -p dojo.js '/freeipa/rpmbuild/BUILDROOT/freeipa-3.3.5GITd366595-0.fc20.x86_64/usr/share/ipa/ui/js/dojo'</span></div><div style><span style="line-height:19.5px">make[6]: Leaving directory `/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/build/dojo'</span></div>
<div style><span style="line-height:19.5px">make[5]: Leaving directory `/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/build/dojo'</span></div><div style><span style="line-height:19.5px">Making install in freeipa</span></div>
<div style><span style="line-height:19.5px">make[5]: Entering directory `/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/build/freeipa'</span></div><div style><span style="line-height:19.5px">../../util/make-ui.sh</span></div>
<div style><span style="line-height:19.5px">Error: Could not find or load main class org.mozilla.javascript.tools.shell.Main</span></div><div style><span style="line-height:19.5px">Error: Could not find or load main class org.mozilla.javascript.tools.shell.Main</span></div>
<div style><span style="line-height:19.5px">Error: Could not find or load main class org.mozilla.javascript.tools.shell.Main</span></div><div style><span style="line-height:19.5px">/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/util/compile.sh: line 114: pushd: /freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/util/../release/lib/freeipa: No such file or directory</span></div>
<div style><span style="line-height:19.5px">Invalid build dir: /freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/util/../release/lib/freeipa</span></div><div style><span style="line-height:19.5px">make[6]: Entering directory `/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/build/freeipa'</span></div>
<div style><span style="line-height:19.5px">make[6]: Nothing to be done for `install-exec-am'.</span></div><div style><span style="line-height:19.5px">../../util/make-ui.sh</span></div><div style><span style="line-height:19.5px">Error: Could not find or load main class org.mozilla.javascript.tools.shell.Main</span></div>
<div style><span style="line-height:19.5px">Error: Could not find or load main class org.mozilla.javascript.tools.shell.Main</span></div><div style><span style="line-height:19.5px">Error: Could not find or load main class org.mozilla.javascript.tools.shell.Main</span></div>
<div style><span style="line-height:19.5px">/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/util/compile.sh: line 114: pushd: /freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/util/../release/lib/freeipa: No such file or directory</span></div>
<div style><span style="line-height:19.5px">Invalid build dir: /freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/util/../release/lib/freeipa</span></div><div style><span style="line-height:19.5px"> /usr/bin/mkdir -p '/freeipa/rpmbuild/BUILDROOT/freeipa-3.3.5GITd366595-0.fc20.x86_64/usr/share/ipa/ui/js/freeipa'</span></div>
<div style><span style="line-height:19.5px"> /usr/bin/install -c -m 644 -p ./app.js '/freeipa/rpmbuild/BUILDROOT/freeipa-3.3.5GITd366595-0.fc20.x86_64/usr/share/ipa/ui/js/freeipa'</span></div><div style><span style="line-height:19.5px">/usr/bin/install: cannot stat './app.js': No such file or directory</span></div>
<div style><span style="line-height:19.5px">make[6]: *** [install-appDATA] Error 1</span></div><div style><span style="line-height:19.5px">make[6]: Leaving directory `/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/build/freeipa'</span></div>
<div style><span style="line-height:19.5px">make[5]: *** [install-am] Error 2</span></div><div style><span style="line-height:19.5px">make[5]: Leaving directory `/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/build/freeipa'</span></div>
<div style><span style="line-height:19.5px">make[4]: *** [install-recursive] Error 1</span></div><div style><span style="line-height:19.5px">make[4]: Leaving directory `/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/build'</span></div>
<div style><span style="line-height:19.5px">make[3]: *** [install-recursive] Error 1</span></div><div style><span style="line-height:19.5px">make[3]: Leaving directory `/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui'</span></div>
<div style><span style="line-height:19.5px">make[2]: *** [install-recursive] Error 1</span></div><div style><span style="line-height:19.5px">make[2]: Leaving directory `/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install'</span></div>
<div style><span style="line-height:19.5px">make[1]: *** [install] Error 1</span></div><div style><span style="line-height:19.5px">make[1]: Leaving directory `/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595'</span></div>
<div style><span style="line-height:19.5px">error: Bad exit status from /var/tmp/rpm-tmp.4ZvCpe (%install)</span></div><div style><span style="line-height:19.5px"><br></span></div><div style><span style="line-height:19.5px"><br>
</span></div><div style><span style="line-height:19.5px">RPM build errors:</span></div><div style><span style="line-height:19.5px">    Bad exit status from /var/tmp/rpm-tmp.4ZvCpe (%install)</span></div><div style><span style="line-height:19.5px">make: *** [rpms] Error 1</span></div>
<div style="line-height:19.5px;white-space:normal"><br></div></font></font></span></code></div><div><code><span class="" style="white-space:normal"><font face="arial"><font color="#000000"><span style="line-height:19.5px"><br>
</span></font></font></span></code></div><pre style="margin-top:0px;margin-bottom:0px;padding:0px"><code><span class="" style="white-space:normal"><font face="arial"><font color="#000000"><span style="line-height:19.5px"><br>
</span></font></font></span></code></pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px"><code><span class="" style="white-space:normal"><font face="arial"><font color="#000000"><span style="line-height:19.5px"><br>
</span></font></font></span></code></pre></div></div>