Re: [Freeipa-users] Building previous release rpms are failing

2014-08-07 Thread Curtis L. Knight
On Tue, Aug 5, 2014 at 11:26 PM, Rob Crittenden rcrit...@redhat.com wrote:

 Curtis L. Knight wrote:
  On Tue, Aug 5, 2014 at 7:21 AM, Martin Kosek mko...@redhat.com
  mailto:mko...@redhat.com wrote:
 
  On 08/05/2014 12:32 PM, Martin Kosek wrote:
   On 08/05/2014 12:05 PM, Curtis L. Knight wrote:
  ...
   #./make-lint $(LINT_OPTIONS)
  
   run 'make rpms' again to get beyond lint errors shown below
  
  
   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
  
   This is new, I created upstream ticket to timely fix it:
   https://fedorahosted.org/freeipa/ticket/4475
 
  Ticket 4475 is now fixed, thanks to Jan Cholasta. ipa-3-3 branch
  should now
  build OK again.
 
  Martin
 
 
  Hey Martin,
 
  Tested ipa-3-3 and generated rpms from that branch. Many thanks for the
  resolution.
 
  Just a note, but I verified that ipa-3-2 and ipa-3-1 are in need of the
  same ipa-3-3 dependency patch. Both also complained that make-lint
  needed pylint installed which it already was. With the lint failure and
  rhino patch, ipa-3-2 did generate rpms. With the lint failure and rhino
  patch, ipa-3-1 did not generate rpms and gave the following logs.

 I guess it becomes a bit fuzzy, especially with these versions. We don't
 usually offer any guarantees that older releases will build against more
 modern distros, but both 3.1.5 and 3.2.0 crossed that line, with Fedora
 builds in two releases (F18/19 and F19/20 respectively).

 Do you have a requirement to use these older releases or are you just
 offering this data point in case anyone else runs into this?

 regards

 rob


Hello Rob,

Yes this is additional information and is not any requirement for me. I was
not sure which branches were being maintained for F20. My interest was to
see if I could help the freeipa developers build rpms easily from git with
Docker images/containers. That is just about finished. My next thought was
about using a Docker containers to test code from a git working directory
quickly. That workflow could be a) to build rpms from a git commit, install
the generated rpms or b) push changed code into an existing freeipa
installation (probably not recommended but maybe necessary for testing). I
did read a couple of places that it seems to take less time and or RAM to
build code within Docker then other methods. Overall there does not seem to
be enough people that are doing it yet for a lot of data points. Does any
of that sound beneficial to the team?

Regards,
Curtis
-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go To http://freeipa.org for more info on the project

Re: [Freeipa-users] Building previous release rpms are failing

2014-08-07 Thread Martin Kosek
On 08/07/2014 01:39 PM, Curtis L. Knight wrote:
 On Tue, Aug 5, 2014 at 11:26 PM, Rob Crittenden rcrit...@redhat.com wrote:
 
 Curtis L. Knight wrote:
 On Tue, Aug 5, 2014 at 7:21 AM, Martin Kosek mko...@redhat.com
 mailto:mko...@redhat.com wrote:

 On 08/05/2014 12:32 PM, Martin Kosek wrote:
  On 08/05/2014 12:05 PM, Curtis L. Knight wrote:
 ...
  #./make-lint $(LINT_OPTIONS)
 
  run 'make rpms' again to get beyond lint errors shown below
 
 
  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
 
  This is new, I created upstream ticket to timely fix it:
  https://fedorahosted.org/freeipa/ticket/4475

 Ticket 4475 is now fixed, thanks to Jan Cholasta. ipa-3-3 branch
 should now
 build OK again.

 Martin


 Hey Martin,

 Tested ipa-3-3 and generated rpms from that branch. Many thanks for the
 resolution.

 Just a note, but I verified that ipa-3-2 and ipa-3-1 are in need of the
 same ipa-3-3 dependency patch. Both also complained that make-lint
 needed pylint installed which it already was. With the lint failure and
 rhino patch, ipa-3-2 did generate rpms. With the lint failure and rhino
 patch, ipa-3-1 did not generate rpms and gave the following logs.

 I guess it becomes a bit fuzzy, especially with these versions. We don't
 usually offer any guarantees that older releases will build against more
 modern distros, but both 3.1.5 and 3.2.0 crossed that line, with Fedora
 builds in two releases (F18/19 and F19/20 respectively).

 Do you have a requirement to use these older releases or are you just
 offering this data point in case anyone else runs into this?

 regards

 rob

 
 Hello Rob,
 
 Yes this is additional information and is not any requirement for me. I was
 not sure which branches were being maintained for F20. My interest was to
 see if I could help the freeipa developers build rpms easily from git with
 Docker images/containers. That is just about finished. My next thought was
 about using a Docker containers to test code from a git working directory
 quickly. That workflow could be a) to build rpms from a git commit, install
 the generated rpms or b) push changed code into an existing freeipa
 installation (probably not recommended but maybe necessary for testing). I
 did read a couple of places that it seems to take less time and or RAM to
 build code within Docker then other methods. Overall there does not seem to
 be enough people that are doing it yet for a lot of data points. Does any
 of that sound beneficial to the team?
 
 Regards,
 Curtis

Your efforts do sound interesting for the development team. I would like to
encourage you to send your results to the freeipa-devel list, so that
developers can give you proper feedback.

I was already pondering whether containers could be utilized for our
integration tests:
http://www.freeipa.org/page/Testing#Integration_tests
Currently, we use full VMs and that is obviously not so fast. If containers
could be utilized, things could get much faster (I hope).

Martin

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go To http://freeipa.org for more info on the project


Re: [Freeipa-users] Building previous release rpms are failing

2014-08-07 Thread Lukas Slebodnik
On (07/08/14 07:39), Curtis L. Knight wrote:
On Tue, Aug 5, 2014 at 11:26 PM, Rob Crittenden rcrit...@redhat.com wrote:

 Curtis L. Knight wrote:
  On Tue, Aug 5, 2014 at 7:21 AM, Martin Kosek mko...@redhat.com
  mailto:mko...@redhat.com wrote:
 
  On 08/05/2014 12:32 PM, Martin Kosek wrote:
   On 08/05/2014 12:05 PM, Curtis L. Knight wrote:
  ...
   #./make-lint $(LINT_OPTIONS)
  
   run 'make rpms' again to get beyond lint errors shown below
  
  
   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
  
   This is new, I created upstream ticket to timely fix it:
   https://fedorahosted.org/freeipa/ticket/4475
 
  Ticket 4475 is now fixed, thanks to Jan Cholasta. ipa-3-3 branch
  should now
  build OK again.
 
  Martin
 
 
  Hey Martin,
 
  Tested ipa-3-3 and generated rpms from that branch. Many thanks for the
  resolution.
 
  Just a note, but I verified that ipa-3-2 and ipa-3-1 are in need of the
  same ipa-3-3 dependency patch. Both also complained that make-lint
  needed pylint installed which it already was. With the lint failure and
  rhino patch, ipa-3-2 did generate rpms. With the lint failure and rhino
  patch, ipa-3-1 did not generate rpms and gave the following logs.

 I guess it becomes a bit fuzzy, especially with these versions. We don't
 usually offer any guarantees that older releases will build against more
 modern distros, but both 3.1.5 and 3.2.0 crossed that line, with Fedora
 builds in two releases (F18/19 and F19/20 respectively).

 Do you have a requirement to use these older releases or are you just
 offering this data point in case anyone else runs into this?

 regards

 rob


Hello Rob,

Yes this is additional information and is not any requirement for me. I was
not sure which branches were being maintained for F20. My interest was to
see if I could help the freeipa developers build rpms easily from git with
Docker images/containers. That is just about finished. My next thought was
about using a Docker containers to test code from a git working directory
quickly. That workflow could be a) to build rpms from a git commit, install
the generated rpms or b) push changed code into an existing freeipa
installation (probably not recommended but maybe necessary for testing). I
did read a couple of places that it seems to take less time and or RAM to
build code within Docker then other methods. Overall there does not seem to
What kind of other methods did you try?
I doubt it is more efficient then mock [1]

be enough people that are doing it yet for a lot of data points. Does any
of that sound beneficial to the team?


LS

[1] http://fedoraproject.org/wiki/Projects/Mock

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go To http://freeipa.org for more info on the project


[Freeipa-users] Building previous release rpms are failing

2014-08-05 Thread Curtis L. Knight
Hey,

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.

I got this setup to use docker to generate the rpms. Included below are the
sequences and commands.

for current release that does build without intervention:
# docker run -ti --name freeipa-devel-rpms-container
knighcl/freeipa-devel-rpms:fedora-20 release-4-0-1

or for master

# docker run -ti --name freeipa-devel-rpms-container
knighcl/freeipa-devel-rpms:fedora-20

for previous release
# docker run -ti --name freeipa-devel-rpms-container
knighcl/freeipa-devel-rpms:fedora-20 release-3-3-5

Once dropped into the terminal upon finishing, I edit the Makefile to
comment out the make-lint line within the lint stanza

#./make-lint $(LINT_OPTIONS)

run 'make rpms' again to get beyond lint errors shown below


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


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.

Regards,
Curtis

rpm 3.3.5 log
 /usr/bin/mkdir -p
'/freeipa/rpmbuild/BUILDROOT/freeipa-3.3.5GITd366595-0.fc20.x86_64/usr/share/ipa/ui/js/dojo'
 /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'
make[6]: Leaving directory
`/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/build/dojo'
make[5]: Leaving directory
`/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/build/dojo'
Making install in freeipa
make[5]: Entering directory
`/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/build/freeipa'
../../util/make-ui.sh
Error: Could not find or load main class
org.mozilla.javascript.tools.shell.Main
Error: Could not find or load main class
org.mozilla.javascript.tools.shell.Main
Error: Could not find or load main class
org.mozilla.javascript.tools.shell.Main
/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
Invalid build dir:
/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/util/../release/lib/freeipa
make[6]: Entering directory
`/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/build/freeipa'
make[6]: Nothing to be done for `install-exec-am'.
../../util/make-ui.sh
Error: Could not find or load main class
org.mozilla.javascript.tools.shell.Main
Error: Could not find or load main class
org.mozilla.javascript.tools.shell.Main
Error: Could not find or load main class
org.mozilla.javascript.tools.shell.Main
/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
Invalid build dir:
/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/util/../release/lib/freeipa
 /usr/bin/mkdir -p
'/freeipa/rpmbuild/BUILDROOT/freeipa-3.3.5GITd366595-0.fc20.x86_64/usr/share/ipa/ui/js/freeipa'
 /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'
/usr/bin/install: cannot stat './app.js': No such file or directory
make[6]: *** [install-appDATA] Error 1
make[6]: Leaving directory
`/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/build/freeipa'
make[5]: *** [install-am] Error 2
make[5]: Leaving directory
`/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/build/freeipa'
make[4]: *** 

Re: [Freeipa-users] Building previous release rpms are failing

2014-08-05 Thread Martin Kosek
On 08/05/2014 12:05 PM, Curtis L. Knight wrote:
 Hey,
 
 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.

You could also run

$ make rpms DEVELOPER_MODE=1

to have the lint run, but ignored it's results (though fixing the bug it is
better of course).

 
 I got this setup to use docker to generate the rpms. Included below are the
 sequences and commands.
 
 for current release that does build without intervention:
 # docker run -ti --name freeipa-devel-rpms-container
 knighcl/freeipa-devel-rpms:fedora-20 release-4-0-1
 
 or for master
 
 # docker run -ti --name freeipa-devel-rpms-container
 knighcl/freeipa-devel-rpms:fedora-20
 
 for previous release
 # docker run -ti --name freeipa-devel-rpms-container
 knighcl/freeipa-devel-rpms:fedora-20 release-3-3-5
 
 Once dropped into the terminal upon finishing, I edit the Makefile to
 comment out the make-lint line within the lint stanza
 
 #./make-lint $(LINT_OPTIONS)
 
 run 'make rpms' again to get beyond lint errors shown below
 
 
 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

This is new, I created upstream ticket to timely fix it:
https://fedorahosted.org/freeipa/ticket/4475

 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.
 
 Regards,
 Curtis
 
 rpm 3.3.5 log
  /usr/bin/mkdir -p
 '/freeipa/rpmbuild/BUILDROOT/freeipa-3.3.5GITd366595-0.fc20.x86_64/usr/share/ipa/ui/js/dojo'
  /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'
 make[6]: Leaving directory
 `/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/build/dojo'
 make[5]: Leaving directory
 `/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/build/dojo'
 Making install in freeipa
 make[5]: Entering directory
 `/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/build/freeipa'
 ../../util/make-ui.sh
 Error: Could not find or load main class
 org.mozilla.javascript.tools.shell.Main
 Error: Could not find or load main class
 org.mozilla.javascript.tools.shell.Main
 Error: Could not find or load main class
 org.mozilla.javascript.tools.shell.Main
 /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
 Invalid build dir:
 /freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/util/../release/lib/freeipa
 make[6]: Entering directory
 `/freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/build/freeipa'
 make[6]: Nothing to be done for `install-exec-am'.
 ../../util/make-ui.sh
 Error: Could not find or load main class
 org.mozilla.javascript.tools.shell.Main
 Error: Could not find or load main class
 org.mozilla.javascript.tools.shell.Main
 Error: Could not find or load main class
 org.mozilla.javascript.tools.shell.Main
 /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
 Invalid build dir:
 /freeipa/rpmbuild/BUILD/freeipa-3.3.5GITd366595/install/ui/util/../release/lib/freeipa
  /usr/bin/mkdir -p
 '/freeipa/rpmbuild/BUILDROOT/freeipa-3.3.5GITd366595-0.fc20.x86_64/usr/share/ipa/ui/js/freeipa'
  /usr/bin/install -c -m 644 -p ./app.js
 

Re: [Freeipa-users] Building previous release rpms are failing

2014-08-05 Thread Martin Kosek
On 08/05/2014 12:32 PM, Martin Kosek wrote:
 On 08/05/2014 12:05 PM, Curtis L. Knight wrote:
...
 #./make-lint $(LINT_OPTIONS)

 run 'make rpms' again to get beyond lint errors shown below


 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
 
 This is new, I created upstream ticket to timely fix it:
 https://fedorahosted.org/freeipa/ticket/4475

Ticket 4475 is now fixed, thanks to Jan Cholasta. ipa-3-3 branch should now
build OK again.

Martin

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go To http://freeipa.org for more info on the project


Re: [Freeipa-users] Building previous release rpms are failing

2014-08-05 Thread Curtis L. Knight
On Tue, Aug 5, 2014 at 7:21 AM, Martin Kosek mko...@redhat.com wrote:

 On 08/05/2014 12:32 PM, Martin Kosek wrote:
  On 08/05/2014 12:05 PM, Curtis L. Knight wrote:
 ...
  #./make-lint $(LINT_OPTIONS)
 
  run 'make rpms' again to get beyond lint errors shown below
 
 
  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
 
  This is new, I created upstream ticket to timely fix it:
  https://fedorahosted.org/freeipa/ticket/4475

 Ticket 4475 is now fixed, thanks to Jan Cholasta. ipa-3-3 branch should now
 build OK again.

 Martin


Hey Martin,

Tested ipa-3-3 and generated rpms from that branch. Many thanks for the
resolution.

Just a note, but I verified that ipa-3-2 and ipa-3-1 are in need of the
same ipa-3-3 dependency patch. Both also complained that make-lint needed
pylint installed which it already was. With the lint failure and rhino
patch, ipa-3-2 did generate rpms. With the lint failure and rhino patch,
ipa-3-1 did not generate rpms and gave the following logs.

Regards,
Curtis

Report written to
/freeipa/rpmbuild/BUILD/freeipa-3.1.5GIT98f5abe/install/ui/release/lib/build-report.txt
Process finished normally.
errors: 0
warnings: 0
build time: 4.62 seconds
Invalid option -main
Usage: java org.mozilla.javascript.tools.shell.Main [options...] [files]
Valid options are:
-?, -help  Displays help messages.
-w Enable warnings.
-version 100|110|120|130|140|150|160|170|180
   Set a specific language version.
-opt [-1|0-9]  Set optimization level.
-f script-filename Execute script file, or - for interactive.
-e script-source   Evaluate inline script.
-modules [uri] Add a single path or URL element to the CommonJS
   module search path. (implies -require)
-require   Enable CommonJS module support.
-sandbox   Enable CommonJS sandbox mode. (implies -require)
-debug Generate debug code.
-strictEnable strict mode warnings.
-fatal-warningsTreat warnings as errors.
-encoding charset  Use specified character encoding as default when
reading scripts.
/freeipa/rpmbuild/BUILD/freeipa-3.1.5GIT98f5abe/install/ui/release/lib/freeipa
/freeipa/rpmbuild/BUILD/freeipa-3.1.5GIT98f5abe/install/ui/build/freeipa
/freeipa/rpmbuild/BUILD/freeipa-3.1.5GIT98f5abe/install/ui/build/freeipa
 /usr/bin/mkdir -p
'/freeipa/rpmbuild/BUILDROOT/freeipa-3.1.5GIT98f5abe-0.fc20.x86_64/usr/share/ipa/ui/js/freeipa'
 /usr/bin/install -c -m 644 ./app.js
'/freeipa/rpmbuild/BUILDROOT/freeipa-3.1.5GIT98f5abe-0.fc20.x86_64/usr/share/ipa/ui/js/freeipa'
/usr/bin/install: cannot stat './app.js': No such file or directory
make[6]: *** [install-appDATA] Error 1
make[6]: Leaving directory
`/freeipa/rpmbuild/BUILD/freeipa-3.1.5GIT98f5abe/install/ui/build/freeipa'
make[5]: *** [install-am] Error 2
make[5]: Leaving directory
`/freeipa/rpmbuild/BUILD/freeipa-3.1.5GIT98f5abe/install/ui/build/freeipa'
make[4]: *** [install-recursive] Error 1
make[4]: Leaving directory
`/freeipa/rpmbuild/BUILD/freeipa-3.1.5GIT98f5abe/install/ui/build'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory
`/freeipa/rpmbuild/BUILD/freeipa-3.1.5GIT98f5abe/install/ui'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory
`/freeipa/rpmbuild/BUILD/freeipa-3.1.5GIT98f5abe/install'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/freeipa/rpmbuild/BUILD/freeipa-3.1.5GIT98f5abe'
error: Bad exit status from /var/tmp/rpm-tmp.Ex5L4m (%install)


RPM build errors:
bogus date in %changelog: Thu Aug 17 2012 Martin Kosek 
mko...@redhat.com - 2.99.0-41
bogus date in %changelog: Fri Jun 21 2012 Sumit Bose sb...@redhat.com
- 2.99.0-36
bogus date in %changelog: Fri Jun 21 2012 Rob Crittenden 
rcrit...@redhat.com - 2.99.0-35
bogus date in %changelog: Fri Jun 21 2012 Petr Vobornik 
pvobo...@redhat.com - 2.99.0-34
bogus date in %changelog: Wed Mar 

Re: [Freeipa-users] Building previous release rpms are failing

2014-08-05 Thread Rob Crittenden
Curtis L. Knight wrote:
 On Tue, Aug 5, 2014 at 7:21 AM, Martin Kosek mko...@redhat.com
 mailto:mko...@redhat.com wrote:
 
 On 08/05/2014 12:32 PM, Martin Kosek wrote:
  On 08/05/2014 12:05 PM, Curtis L. Knight wrote:
 ...
  #./make-lint $(LINT_OPTIONS)
 
  run 'make rpms' again to get beyond lint errors shown below
 
 
  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
 
  This is new, I created upstream ticket to timely fix it:
  https://fedorahosted.org/freeipa/ticket/4475
 
 Ticket 4475 is now fixed, thanks to Jan Cholasta. ipa-3-3 branch
 should now
 build OK again.
 
 Martin
 
 
 Hey Martin,
 
 Tested ipa-3-3 and generated rpms from that branch. Many thanks for the
 resolution.
 
 Just a note, but I verified that ipa-3-2 and ipa-3-1 are in need of the
 same ipa-3-3 dependency patch. Both also complained that make-lint
 needed pylint installed which it already was. With the lint failure and
 rhino patch, ipa-3-2 did generate rpms. With the lint failure and rhino
 patch, ipa-3-1 did not generate rpms and gave the following logs.

I guess it becomes a bit fuzzy, especially with these versions. We don't
usually offer any guarantees that older releases will build against more
modern distros, but both 3.1.5 and 3.2.0 crossed that line, with Fedora
builds in two releases (F18/19 and F19/20 respectively).

Do you have a requirement to use these older releases or are you just
offering this data point in case anyone else runs into this?

regards

rob

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go To http://freeipa.org for more info on the project