{"action":"created","issue":{"url":"https://api.github.com/repos/freebsd/pkg/issues/1260","labels_url":"https://api.github.com/repos/freebsd/pkg/issues/1260/labels{/name}","comments_url":"https://api.github.com/repos/freebsd/pkg/issues/1260/comments","events_url":"https://api.github.com/repos/freebsd/pkg/issues/1260/events","html_url":"https://github.com/freebsd/pkg/issues/1260","id":84853652,"number":1260,"title":"\"mkdir /tmp/foo && pkg install -r /tmp/foo perl5\" fails","user":{"login":"lidl","id":1443898,"avatar_url":"https://avatars.githubusercontent.com/u/1443898?v=3","gravatar_id":"","url":"https://api.github.com/users/lidl","html_url":"https://github.com/lidl","followers_url":"https://api.github.com/users/lidl/followers","following_url":"https://api.github.com/users/lidl/following{/other_user}","gists_url":"https://api.github.com/users/lidl/gists{/gist_id}","starred_url":"https://api.github.com/users/lidl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lidl/subscriptions","organizations_url":"https://api.github.com/users/lidl/orgs","repos_url":"https://api.github.com/users/lidl/repos","events_url":"https://api.github.com/users/lidl/events{/privacy}","received_events_url":"https://api.github.com/users/lidl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-04T01:38:35Z","updated_at":"2015-06-04T03:05:14Z","closed_at":null,"body":"I was trying out the new \"-r /path/name\" functionality (pkg 1.5.3), and it fails to\r\ninstall the 'perl5' package.\r\n\r\nroot@quanta04-141: ktrace -i pkg -r /tmp/foo install perl5\r\nUpdating FreeBSD repository catalogue...\r\nFreeBSD repository is up-to-date.\r\nUpdating pi-coral repository catalogue...\r\npi-coral repository is up-to-date.\r\nAll repositories are up-to-date.\r\nChecking integrity... done (0 conflicting)\r\nThe following 1 package(s) will be affected (of 0 checked):\r\n\r\nNew packages to be INSTALLED:\r\n\tperl5: 5.20.2_4 [FreeBSD]\r\n\r\nThe process will require 49 MiB more space.\r\n\r\nProceed with this action? [y/N]: y\r\n[1/1] Installing perl5-5.20.2_4...\r\n[1/1] Extracting perl5-5.20.2_4:   0%\r\npkg: archive_read_extract(): Can't create '/tmp/foo/usr/local/bin/perl5'\r\n[1/1] Extracting perl5-5.20.2_4: 100%\r\n[1/1] Deleting files for perl5-5.20.2_4: 100%\r\n\r\nThe actual failure can be ktrace'd to the link that it tries to make between\r\n\"perl\" and \"perl5\":\r\n\r\n 73952 pkg      CALL  lstat(0x7fffffffd160,0x7fffffffd0b8)\r\n 73952 pkg      NAMI  \"/tmp/foo/usr/local/bin/perl5\"\r\n 73952 pkg      RET   lstat -1 errno 2 No such file or directory\r\n 73952 pkg      CALL  umask(0<><invalid>0)\r\n 73952 pkg      RET   umask 18/0x12\r\n 73952 pkg      CALL  umask(0x12<S_IWGRP|S_IWOTH>)\r\n 73952 pkg      RET   umask 0\r\n 73952 pkg      CALL  link(0x8031e6fc0,0x8033181c0)\r\n 73952 pkg      NAMI  \"/usr/local/bin/perl\"\r\n 73952 pkg      NAMI  \"/tmp/foo/usr/local/bin/perl5\"\r\n 73952 pkg      RET   link -1 errno 18 Cross-device link\r\n"},"comment":{"url":"https://api.github.com/repos/freebsd/pkg/issues/comments/108698306","html_url":"https://github.com/freebsd/pkg/issues/1260#issuecomment-108698306","issue_url":"https://api.github.com/repos/freebsd/pkg/issues/1260","id":108698306,"user":{"login":"brd","id":1096842,"avatar_url":"https://avatars.githubusercontent.com/u/1096842?v=3","gravatar_id":"","url":"https://api.github.com/users/brd","html_url":"https://github.com/brd","followers_url":"https://api.github.com/users/brd/followers","following_url":"https://api.github.com/users/brd/following{/other_user}","gists_url":"https://api.github.com/users/brd/gists{/gist_id}","starred_url":"https://api.github.com/users/brd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brd/subscriptions","organizations_url":"https://api.github.com/users/brd/orgs","repos_url":"https://api.github.com/users/brd/repos","events_url":"https://api.github.com/users/brd/events{/privacy}","received_events_url":"https://api.github.com/users/brd/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T03:05:14Z","updated_at":"2015-06-04T03:05:14Z","body":"I cannot reproduce this with the official packages myself either..\r\n\r\n```\r\n# pkg -r /tmp/foo install perl5                                                                                                \r\nUpdating FreeBSD repository catalogue...\r\nFreeBSD repository is up-to-date.\r\nAll repositories are up-to-date.\r\nChecking integrity... done (0 conflicting)\r\nThe following 1 package(s) will be affected (of 0 checked):\r\n\r\nNew packages to be INSTALLED:\r\n        perl5: 5.20.2_4\r\n\r\nThe process will require 49 MiB more space.\r\n\r\nProceed with this action? [y/N]: y\r\n[1/1] Installing perl5-5.20.2_4...\r\n[1/1] Extracting perl5-5.20.2_4: 100%\r\n```\r\n\r\nCan someone else take a look at this?"}}