bugQuilt - Bugs: bug #63451, backup-files test failure due to...


bug #63451: backup-files test failure due to difference in ln behavior

Submitter:  None
Submitted:  Wed 30 Nov 2022 04:07:46 PM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  khali
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:
       No canned response available


Tue 06 Dec 2022 03:58:32 PM UTC, comment #1: 
Jean Delvare <khali>
Project Administrator
Wed 30 Nov 2022 04:07:46 PM UTC, original submission:  

When running the Quilt 0.67 test suite on Solaris, I encountered the following error in 'backup-files' test:

[238] $ $(@D)/quilt/scripts/backup-files -B backup/ -b dir/link -- failed
Copying dir/link                      == Copying dir/link
cp: cannot stat 'dir/link': No such file or directory != ~

This is because the ln defaults can be slightly different depending on the platform. While on Linux `ln` default to `ln -P`, on Solaris (and possibly other platforms) it defaults to `ln -L`.

It can be reproduced with the following anywhere:
$ ln -s link foo   # link doesn't exist
$ ln -L foo backup
ln: failed to access 'foo': No such file or directory
$ ln -P foo backup  # success

This difference is best resolved by explicitly using the `-P` flag (patch is attached).



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #54043:  solaris.patch added by None (393B - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by khali (Updated the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.





    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-12-06 khali StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2022-12-01 khali StatusNone In Progress
        Assigned toNone khali
    2022-11-30 None Attached File- Added solaris.patch, #54043

    Back to the top

    Powered by Savane 3.9