Bug 196626 - [archivers/dpkg] "update-alternatives" command needs directory "/usr/local/var/log"
Summary: [archivers/dpkg] "update-alternatives" command needs directory "/usr/local/va...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-12 18:05 UTC by Jordan Irwin
Modified: 2015-01-26 01:49 UTC (History)
2 users (show)

See Also:


Attachments
Makefile patch for archivers/dpkg that creates "/usr/local/var/log" directory (342 bytes, patch)
2015-01-13 08:46 UTC, Jordan Irwin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jordan Irwin 2015-01-12 18:05:40 UTC
After installing archivers/dpkg, running the "update-alternatives" command
results in the following:

$ update-alternatives --install /usr/local/bin/gcc4 gcc4 /usr/local/bin/gcc48
100
update-alternatives: error: cannot append to
'/usr/local/var/log/alternatives.log': No such file or directory

I created a patch for the Makefile that creates this directory post-install.
I'm not sure if I did it in the right format. This is the command that I used:

$ diff -uN Makefile.orig Makefile > dpkg-Makefile.patch

I figured that I don't use the "make makepatch" for this instance because the
changes have nothing to do with the source code.
Comment 1 Gavin Atkinson freebsd_committer freebsd_triage 2015-01-12 18:48:52 UTC
Hi,

Due to an issue with the backend FreeBSD Bugzilla database, your original PR and any updates to it since have been lost.  I've recreated the original PR as best as I can, however any attachments and updates you submitted to the PR have been lost.  Please could you resubmit them?

Thanks, and apologies.
Comment 2 Jordan Irwin 2015-01-13 08:46:40 UTC
Created attachment 151529 [details]
Makefile patch for archivers/dpkg that creates "/usr/local/var/log" directory

Here is the patch. But, I also plan to submit it upstream.
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-01-25 11:03:21 UTC
A commit references this bug:

Author: pawel
Date: Sun Jan 25 11:03:02 UTC 2015
New revision: 377877
URL: https://svnweb.freebsd.org/changeset/ports/377877

Log:
  Use /var/log for logdir

  PR:		196626
  Reported by:	Jordan Irwin <antumdeluge@gmail.com>

Changes:
  head/archivers/dpkg/Makefile
Comment 4 Pawel Pekala freebsd_committer freebsd_triage 2015-01-25 11:05:52 UTC
Package uses /var/db/dpkg for it's database, so let's consistently
use /var/log for logs. Thanks for reporting.
Comment 5 Jordan Irwin 2015-01-26 01:49:04 UTC
Excellent! That's a better fix than mine. :)