Ticket #553 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

keepdir should create .keep-files as .keep_${CATEGORY}_${PN}-${SLOT} (or something else)

Reported by: dev-zero Owned by: ciaranm
Priority: Sometime Milestone:
Component: core/paludis Version: 0.26.0_alpha14
Keywords: Cc:
Blocked By: Blocking:
Distribution:

Description

A use case for it: dev-db/postgresql-server needs a directory /var/run/postgresql and is slotted. Using /var/run/postgresq-${SLOT} is no solution for various reasons. Doing "keepdir /var/run/postgresql" leads to collisions.

Current workaround:

[ -f "${ROOT}/var/run/postgresql/.keep" ] || keepdir /var/run/postgresql

in src_install

which still may lead to collisions when doing a binary installation (don't care about that atm)

Portage already does this, btw.

Attachments

install_functions.bash.patch Download (810 bytes) - added by dev-zero 5 years ago.

Change History

Changed 5 years ago by dev-zero

comment:1 Changed 5 years ago by dev-zero

Simple patch added.

comment:2 Changed 5 years ago by dev-zero

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in trunk.

Note: See TracTickets for help on using tickets.