Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 364113 - sys-cluster/resource-agents-1.0.4-r1 is installing in wrong directory
Summary: sys-cluster/resource-agents-1.0.4-r1 is installing in wrong directory
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-19 10:04 UTC by Han Boetes
Modified: 2011-05-12 18:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Han Boetes 2011-04-19 10:04:09 UTC
sys-cluster/resource-agents-1.0.4-r1 installs files in / which should be installed in /usr/lib/ocf/

equery files resource-agents|grep '^/resource.d'| head
/resource.d
/resource.d/heartbeat
/resource.d/heartbeat/.ocf-binaries
/resource.d/heartbeat/.ocf-directories
/resource.d/heartbeat/.ocf-returncodes
/resource.d/heartbeat/.ocf-shellfuncs
/resource.d/heartbeat/AoEtarget
/resource.d/heartbeat/AudibleAlarm
/resource.d/heartbeat/CTDB
/resource.d/heartbeat/ClusterMon

This can't be right. It also result in:

# /etc/init.d/heartbeat start
runscript.sh[4970]: ERROR: OCF_ROOT points to non-directory .

Checking the output from ./configure:

  Prefix                   = /usr
  Executables              = /usr/sbin
  Man pages                = /usr/share/man
  Libraries                = /usr/lib64
  Header files             = /usr/include
  Arch-independent files   = /usr/share
  Documentation            = /usr/share/doc/resource-agents-1.0.4-r1
  State information        = /var
  System configuration     = /etc
  RA state files           = /var/run/resource-agents
  AIS Plugins              = 



Reproducible: Always
Comment 1 Eray Aslan gentoo-dev 2011-04-19 12:18:51 UTC
Please attach emerge --info output and your build log.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-04-22 02:44:10 UTC
Reopen this bug report when you find the time to post the requested information.
Comment 3 Javier Miqueleiz 2011-05-12 18:14:52 UTC
Same problem here. I tracked it down to the following error message in the buildlog:

----------------------------------------
cat /var/log/portage/sys-cluster\:resource-agents-1.0.4-r1\:20110512-152435.log | grep -B4 -A4 OCF_ROOT_DIR
checking which format is needed to print uint64_t... %lu
checking heartbeat/glue_config.h usability... yes
checking heartbeat/glue_config.h presence... yes
checking for heartbeat/glue_config.h... yes
checking for OCF_ROOT_DIR in heartbeat/glue_config.h... ./configure: line 5292: /tmp/extract_define.OCF_ROOT_DIR.10038: Permission denied

printf: usage: printf [-v var] format [arguments]
checking for hg... no
checking for false... /bin/false
----------------------------------------

The configure script needs exec permission on /tmp (which my system hadn't, since it has the /tmp FS mounted with noexec option). After remounting /tmp with exec option the agents are installed under /usr/lib/ocf.