I can't reproduce a build failure.  If you still have this problem, then
please reply.

** Changed in: pacemaker (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
High Availability Team, which is subscribed to pacemaker in Ubuntu.
https://bugs.launchpad.net/bugs/680866

Title:
  debian/rules: "$(shell cd ..." causes make to execute a directory

Status in “pacemaker” package in Ubuntu:
  Incomplete

Bug description:
  Binary package hint: pacemaker

  Hello,

  in debian/rules you have:

          $(shell cd xml && for a in *-1.0.rng; do ln -s "$$a" `echo
  "$$a" | sed 's/-1.0//g'`; done)

  I'm sorry to inform you that this contains at least two errors:

  running "dpkg-buildpackage" ends with:

  # set rng compatibility symlinks
  /scratch/build/system/cluster/pacemaker/pacemaker-1.0.9.1/xml
  make: execvp: /scratch/build/system/cluster/pacemaker/pacemaker-1.0.9.1/xml: 
Permission denied
  make: *** [build-stamp] Error 127
  dpkg-buildpackage: error: debian/rules build gave error exit status 2

  the reason for this error is that the expression "$(shell cd xml ..." causes 
the cd command to
  print out the current directory which then "make" tries to execute.  Now I 
don't know if this
  is the correct behaviour of the "shell" but you certainly can observe this 
behaviour in bash
  scripts if the argument to the "cd" command is neither absolute nor contains 
a slash.
  Anyways I still think that the correct way to change a directory in a 
makefile is:

  
          (cd xml && for ...)

  doing this brings us to the second error:

  # set rng compatibility symlinks
  (cd xml && for a in *-1.0.rng; do ln -s "$a" `echo "$a" | sed 's/-1.0//g'`; 
done)
  /scratch/build/system/cluster/pacemaker/pacemaker-1.0.9.1/xml
  ln: target `score.rng' is not a directory
  make: *** [build-stamp] Error 1
  dpkg-buildpackage: error: debian/rules build gave error exit status 2

  now what's wrong here?  the directory xml does not contain any file
  that matches the pattern '*-1.0.rng' which means that the for loop is
  run once with $a = '*-1.0.rng' and I don't think this is intended. 

  this brings me to the conclusion:  
  since there no file that matches the desired pattern, you might
  as well remove this line.

  best regards,

    Peter

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pacemaker/+bug/680866/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-ha
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-ha
More help   : https://help.launchpad.net/ListHelp

Reply via email to