bugmake - Bugs: bug #13280, There is no way to have make not...

 
 

bug #13280: There is no way to have make not follow symbolic links

Submitter:  None
Submitted:  Fri 03 Jun 2005 02:03:08 AM UTC
   
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  3.79.1 Operating System:  POSIX-Based
Fixed Release:  3.81 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 25 Jun 2005 10:55:26 PM UTC, comment #1: 

The next version of GNU make supports a -L flag: if specified this flag will take the latest mtime of a file OR any symlink elements that are used to resolve that filename.

I've now modified this behavior so that if you specify -L and the symlink is broken (doesn't point to a real file), make will use the latest mtime for whatever symlinks exist instead of assuming the file does not exist.

Paul D. Smith <psmith>
Group administrator
Fri 03 Jun 2005 02:03:08 AM UTC, original submission:  

I think there should be a way to tell make not to follow symbolic links on systems that support them.

Reason:
I am using make to create an archive of files. Naturally, I am having make create a new archive if any of the prerequisites are newer than the archive. A problem arises when make tries to follow a broken symbolic link that is one of the prerequisites (make complains there is no rule to make the non-existent target). In my archive, I want to preserve the directory structure and the files within, whatever they may be (broken symbolic links or otherwise).

You may wonder why I don't remove the broken links. The files aren't necessarily under my control, and I don't know any way to quickly and easily search through the file system and remove only broken symbolic links. Besides, I don't see any reason that they shouldn't be part of the archive, broken or not.

Platform:
Linux (RedHat 9) 2.4.20-8 #1 Thu Mar 13 17:18:24 EST 2003 i686 athlon i386 GNU/Linux
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i386-redhat-linux-gnu

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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
2006-04-01 psmith Fixed Release4.0 3.81
2005-06-25 psmith StatusNone Fixed
    Assigned toNone psmith
    Open/ClosedOpen Closed
    Fixed ReleaseNone 4.0

Back to the top

Powered by Savane 3.13-d3ae.
Corresponding source code