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

Submitted by:  None
Submitted on:  Fri 03 Jun 2005 02:03:08 AM UTC  
 
Severity: 3 - NormalItem Group: Enhancement
Status: FixedPrivacy: Public
Assigned to: Paul D. Smith <psmith>Open/Closed: Closed
Component Version: 3.79.1Operating System: POSIX-Based
Fixed Release: 3.81Triage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 01 Apr 2006 07:16:15 AM UTCpsmithFixed Release4.0=>3.81
Sat 25 Jun 2005 10:55:26 PM UTCpsmithStatusNone=>Fixed
  Assigned toNone=>psmith
  Open/ClosedOpen=>Closed
  Fixed ReleaseNone=>4.0

Back to the top


Powered by Savane 3.1-cleanup1