On Sun, Mar 16, 2014 at 08:11:31AM +0800, Rajeev V. Pillai wrote:
> On Saturday, March 15, 2014 10:48 PM, Thomas Dickey <[email protected]> wrote:
> 
> > I see.? I had tested this by setting umask in the build process,
> > but using a pristine tarball (which would have correct permissions).
> > I did that for both dpkg and rpm...
> 
> The source tarball does have the correct file permissions, but, when
> extracting files, GNU tar will consider the user's current umask value
> when setting a file's permissions instead of using only the mode-bits
> in the tarball.

I did say "pristine": packagers as a rule work directly from the tarball,
and the packaging systems generally (I don't know of exceptions) don't
alter the permissions.

(by the way, lynx's use of tar in this way for installing documentation
dates back to 

1998-09-12 (2.8.1dev.26)
* split out install-doc rule in top-level makefile to install extra
  documentation files in $(libdir)/lynx_doc (request by HN) - TD

> Speaking of tarballs, lynx2.8.8rel.2.tar has a couple of extraneous
> files:
> -rw-r--r-- dickey/lynx?????? 0 2014-03-10 03:13 lynx2-8-8/test/nobody
> -rw-r--r-- dickey/lynx?????? 0 2014-03-10 03:13 lynx2-8-8/test/X

those are intentional:

2014-03-09 (2.8.8rel.2)
* correct errata in test-files which cause broken links in break-out directory
  in lynx.isc.org server -TD
 
> > > and add a couple of additional commands in there--something along the 
> > > lines of:
> > > 
> > > find $(DOCDIR) -type d -print0 | xargs -0 chmod 755
> > > find $(DOCDIR) -type f -print0 | xargs -0 chmod 644>
> > something like (but not exactly: the example given isn't portable)
> 
> I presume `find $(DOCDIR) -type d -exec chmod 755 {} \;' is more
> POSIX compliant?

yes

-- 
Thomas E. Dickey <[email protected]>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Lynx-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lynx-dev

Reply via email to