xbps icon indicating copy to clipboard operation
xbps copied to clipboard

xbps-install removes empty directories but doesn't create them

Open avdgrinten opened this issue 4 years ago • 0 comments

If a package contains empty directories (in the DESTDIR),

  • xbps-create records these directories in the .plist file (see the attached file),
  • xbps-install removes them when (force-)installing a package (complaining when they are not present),
  • but xbps-install does not recreate them.

This results in error messages at xbps-install-time:

ERROR: core-files-0.0pl3135_2: failed to remove obsolete entry `./run': No such file or directory

Reproduction

To reproduce (note that the attached .xbps file is not compatible with void; do not install to / on a void system):

xbps-install -fy -r some_sysroot/ core-files
xbps-install -fy -r some_sysroot/ core-files # The second invocation yields errors.

Expected Behavior

Either of these would work:

  • xbps-create should omit empty directories,
  • xbps-install should create them,
  • or xbps-install should not remove them.

Meta Data

xbps -V: XBPS: 0.59 API: 20200221 GIT: UNSET Possibly related to #317.

files-plist.txt core-files-0.0pl3135_2.x86_64.xbps.gz

avdgrinten avatar Jun 06 '21 12:06 avdgrinten