public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Problems with Cygwin-1.7.8 (or snapshot) and TeXLive 2010
@ 2011-03-05 14:37 Angelo Graziosi
  2011-03-07 10:16 ` Corinna Vinschen
  0 siblings, 1 reply; 24+ messages in thread
From: Angelo Graziosi @ 2011-03-05 14:37 UTC (permalink / raw)
  To: Cygwin

Ken Brown wrote:
> I'm running Win7 in case that makes a difference.

Here on Win XP SP3, 32 bit. I haven't W7 :(

> Corinna, are there changes in the 20100910 snapshot that could explain this?

Anyway it would be a remarkable coincidence that 20100910 snapshot 
ChangeLog says:

[...]
2010-09-10  Corinna Vinschen  <corinna@vinschen.de>

	* flock.cc (allow_others_to_sync): Define MAX_PROCESS_SD_SIZE.  Use
	instead of ACL_DEFAULT_SIZE.
	* sec_acl.cc (setacl): Use TLS buffer to allow maximum ACL size.
	* security.h (ACL_DEFAULT_SIZE): Drop definition.
	(ACL_MAXIMUM_SIZE): Define.
	(SD_MAXIMUM_SIZE): Define.
	* security.cc (get_file_sd): Allocate security_decscriptor with size
	SD_MAXIMUM_SIZE.
	(alloc_sd): Use TLS buffer to allow maximum ACL size.
[...]


Ciao,
Angelo.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: Problems with Cygwin-1.7.8 (or snapshot) and TeXLive 2010
@ 2011-03-08 21:57 Angelo Graziosi
  0 siblings, 0 replies; 24+ messages in thread
From: Angelo Graziosi @ 2011-03-08 21:57 UTC (permalink / raw)
  To: Cygwin

Corinna Vinschen wrote:
> I applied a patch to CVS and just uploaded a new snapshot to
> http://cygwin.com/snapshots/
>
> Please give it a try.  David, this is for you, too.

The problem is fixed for me. Thanks a lot!

Ciao,
Angelo.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: Problems with Cygwin-1.7.8 (or snapshot) and TeXLive 2010
@ 2011-03-07 17:09 Angelo Graziosi
  2011-03-07 19:53 ` Corinna Vinschen
  0 siblings, 1 reply; 24+ messages in thread
From: Angelo Graziosi @ 2011-03-07 17:09 UTC (permalink / raw)
  To: Cygwin

Corinna Vinschen wrote:
> Ok, I found a simpler testcase.

Thanks for you work and your patience...

> Please do NOT quote raw email addresses.

Usually I remove always that... not this time. I apologize..

..and, what about David's report (*)? I am just curios..

Ciao,
Angelo.

---
(*) http://cygwin.com/ml/cygwin/2011-03/msg00184.html

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: Problems with Cygwin-1.7.8 (or snapshot) and TeXLive 2010
@ 2011-03-05 10:22 Angelo Graziosi
  2011-03-05 13:48 ` Ken Brown
  0 siblings, 1 reply; 24+ messages in thread
From: Angelo Graziosi @ 2011-03-05 10:22 UTC (permalink / raw)
  To: Cygwin

Corinna Vinschen wrote:
> Since fmtutil-sys is apparently the core of the problem, and given
> my total lack of knowledge about the Tex/Latex system, is there any
> simple call to fmtutil-sys with which I can reproduce the problem
> without having to install texlive?

It seems too difficult for me. fmtutil-sys is a bash script which calls 
another bash script, fmtutil, which in turn calls a bunch of binaries 
(as results from intall-tl.log) in the form like this:

aleph -ini   -jobname=aleph -progname=aleph *aleph.ini
aleph -ini   -jobname=lamed -progname=lamed *lambda.ini
pdftex -ini   -jobname=amstex -progname=amstex -translate-file=cp227.tcx 
*amstex.ini
[...]

It seems that the binaries aleph, pdftex... are passed via a fmtutil.cnf 
configuration file.

Anyway, with a binary testing (only .dll.bz2 of snapshots), I have 
verified that the last snapshot with which the .fmt files get the right 
permissions (-rw-r--r--) is 20100904 snapshot, instead with 20100910 
they acquires wrong permissions (rwx------). In short, after >= 20100910 
  snapshot, fmtutil script creates /tmp/fmtutil.NUMBER with drwx-----+ 
permissions: fmtutil.NUMBER is a working directory for fmtutil.

This is the best I could do!

For the moment I will adopt this manual fix :(

find /usr/local/texlive/ \! -type d \! -type l -perm u=rwx | xargs chmod 
-x,go+r


Ciao,
Angelo.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: Problems with Cygwin-1.7.8 (or snapshot) and TeXLive 2010
@ 2011-03-04 18:26 Angelo Graziosi
  2011-03-04 19:45 ` Christopher Faylor
  0 siblings, 1 reply; 24+ messages in thread
From: Angelo Graziosi @ 2011-03-04 18:26 UTC (permalink / raw)
  To: Cygwin; +Cc: Ken Brown

Corinna Vinschen wrote:
> Since fmtutil-sys is apparently the core of the problem, and given
> my total lack of knowledge about the Tex/Latex system, is there any
> simple call to fmtutil-sys with which I can reproduce the problem
> without having to install texlive?

You are right. I will try...

...now, just for completeness, I have tried to rebuild the TL2010 
binaries under the current snapshot (20110303), but...

-------------------------------------------------------
gcc -DHAVE_CONFIG_H -I. -I../../../texk/xdvik -I../../../texk/xdvik/gui 
-DPS_GS -I/tmp/texlive-source/Work/texk -I/tmp/texlive-source/texk 
-I/tmp/texlive-source/Work/libs/t1lib     -Wimplicit -Wreturn-type 
-Wdeclaration-after-statement -Wno-unknown-pragmas -Wno-write-strings 
-Wno-attributes -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o 
../../../texk/xdvik/main.c
sed -f sedscript <../../../texk/xdvik/xdvi.1.in >xdvi.1
In file included from /usr/include/errno.h:9,
                  from /tmp/texlive-source/texk/kpathsea/c-errno.h:22,
                  from /tmp/texlive-source/texk/kpathsea/c-std.h:74,
                  from /tmp/texlive-source/texk/kpathsea/config.h:88,
                  from ../../../texk/xdvik/xdvi.h:43,
                  from ../../../texk/xdvik/main.c:10:
/usr/include/sys/errno.h:25: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '.' token
/usr/include/sys/errno.h:26: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '.' token
make[5]: *** [main.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory `/tmp/texlive-source/Work/texk/xdvik'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/tmp/texlive-source/Work/texk/xdvik'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tmp/texlive-source/Work/texk/xdvik'
make[2]: *** [subtexk] Error 1
make[2]: Leaving directory `/tmp/texlive-source/Work/texk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/texlive-source/Work/texk'
make: *** [all-recursive] Error 1

real	80m39.341s
user	91m3.353s
sys	57m7.051s
+ echo 2
/tmp/texlive-source/Build: Build failed, no executables under 
/tmp/texlive-source/inst/bin.
done Fri Mar 4 19:09:53 2011
-------------------------------------------------------

The same sources built fine on September with 1.7.7.

Ciao,
Angelo.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: Problems with Cygwin-1.7.8 (or snapshot) and TeXLive 2010
@ 2011-03-04 16:49 Angelo Graziosi
  2011-03-04 17:06 ` Corinna Vinschen
  0 siblings, 1 reply; 24+ messages in thread
From: Angelo Graziosi @ 2011-03-04 16:49 UTC (permalink / raw)
  To: Cygwin

Ken Brown wrote:
> I think fmtutil creates the files in a temporary directory (using TMPDIR, TEMP, or TMP if they exist) and then mv's them. Could this be your problem? What happens if you unset those variables before installing texlive?

It is some time that my Cygwin installation does not set those variables 
any more, and indeed they are all EMPTY.. Perhaps is the TL installation 
process that sets them, at least temporary. And if so, why that does not 
occur with 1.7.7? Why not with other files under TL installed tree?

Ciao,
Angelo.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: Problems with Cygwin-1.7.8 (or snapshot) and TeXLive 2010
@ 2011-03-04 16:42 Angelo Graziosi
  0 siblings, 0 replies; 24+ messages in thread
From: Angelo Graziosi @ 2011-03-04 16:42 UTC (permalink / raw)
  To: Cygwin

Corinna Vinschen wrote:
> If you see that behaviour as part of
> a perl script, you should also see that which every other tool,
> even simple stuff like `echo foo > bar'.

Really the perl script, at some time, calls (in a posta install action) 
'fmutil-sys --all', which creates the .fmt file with wrong permission.

Ciao,
Angelo.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: Problems with Cygwin-1.7.8 (or snapshot) and TeXLive 2010
@ 2011-03-03 21:23 Angelo Graziosi
  2011-03-04 10:07 ` Corinna Vinschen
  2011-03-04 15:24 ` Ken Brown
  0 siblings, 2 replies; 24+ messages in thread
From: Angelo Graziosi @ 2011-03-03 21:23 UTC (permalink / raw)
  To: Cygwin

Corinna Vinschen wrote:
> What about some helpful details which allow to reproduce your problem?
> Like, say, how to get the packages, how you install them, stuff like
> that.  You seem to imply that everybody knows how to do that.  I don't.

Sorry, I have omitted details because TL2010 is a full distribution of 
LaTeX. Anyway, just for completeness..

Usually TL2010 can be installed via the WEB (*), but I maintain a local 
repository:

rsync -avz --delete --exclude=*mactex* tug.org::texlive/tlnet/ ./tlnet_repo

(tlnet_repo is about 1.7G). When one has the repository, it is simple to 
install (Cygwin is officially supported). As 'root' I do:

./tlnet_repo/install-tl

(it is a Perl script).

Here, usually I choose to change the installation directory from 
/usr/local/texlive/2010 to /usr/local/texlive:

hit 'd', then '1', then type /usr/local/texlive, then 'r', then 'i'

This starts the installation ('i' == install). After 30-45 minutes (on 
AMD Athlon X2, Win XP 32 SP3), it finishes (2.5G!) and suggests to add 
the binaries directory to PATH etc. (MANPATH, INFOPATH..).

The last steps of installation regard the generation of format file for 
all users (-rw-r--r-- root root), but with recent snapshots the format 
file are creted only for root (-rwx-----+) (**) : these permissions 
resemble those created when one installs native Windows applications 
('c:\Program files' is full of similar files).

I still apologize for my omissions.

Ciao,
Angelo.

---
(*) http://www.tug.org/texlive/quickinstall.html
(**) I am using TL on Cygwin since Aug. 2008, and this never occurred.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Problems with Cygwin-1.7.8 (or snapshot) and TeXLive 2010
@ 2011-03-03 17:45 Angelo Graziosi
  2011-03-03 19:20 ` Corinna Vinschen
  2011-03-05 18:09 ` David Rothenberger
  0 siblings, 2 replies; 24+ messages in thread
From: Angelo Graziosi @ 2011-03-03 17:45 UTC (permalink / raw)
  To: Cygwin; +Cc: Ken Brown

After I flagged these problems [*], I chose to do a clean reinstall of 
TeXLive 2010 (TL2010). After installed its packages (> 2000!), TL2010 
installation proceeds with its post-install actions, mainly generating 
all format files. The installation is done as 'root' (administrator), 
but the format files are created for all system users (as it should),

-rw-r--r-- 1 root root 20760  3 mar 16.33 foo.fmt

Now, with recent snapshot (say >= 20110215, including the one released 
today) this does not occur any more,

-rwx------ 1 root root 20760  3 mar 16.33 foo.fmt

so, when a simple user builds his/her latex documents the fmt file are 
regenerated in a local directory under HOME.

JUST substituting the snapshot DLL with that of 1.7.7, restores the 
right behavior (like on GNU/Linux). With 1.7.8 it fails completely, as 
described [*].

At first sight, I thought that was caused by my mistaken in installing 
the snapshots, but I followed literally FAQ and installing 1.7.7 as a 
snapshot fixes the problems. So it seems a regression in 1.7.8 series.

Ciao,
Angelo.

---
[*] http://cygwin.com/ml/cygwin/2011-03/msg00065.html
     http://cygwin.com/ml/cygwin/2011-03/msg00066.html
     http://cygwin.com/ml/cygwin/2011-03/msg00067.html

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2011-03-08 23:03 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-05 14:37 Problems with Cygwin-1.7.8 (or snapshot) and TeXLive 2010 Angelo Graziosi
2011-03-07 10:16 ` Corinna Vinschen
2011-03-07 13:39   ` Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
2011-03-08 21:57 Angelo Graziosi
2011-03-07 17:09 Angelo Graziosi
2011-03-07 19:53 ` Corinna Vinschen
2011-03-08 15:03   ` Corinna Vinschen
2011-03-08 23:49     ` David Rothenberger
2011-03-05 10:22 Angelo Graziosi
2011-03-05 13:48 ` Ken Brown
2011-03-07 10:12   ` Corinna Vinschen
2011-03-04 18:26 Angelo Graziosi
2011-03-04 19:45 ` Christopher Faylor
2011-03-04 16:49 Angelo Graziosi
2011-03-04 17:06 ` Corinna Vinschen
2011-03-04 16:42 Angelo Graziosi
2011-03-03 21:23 Angelo Graziosi
2011-03-04 10:07 ` Corinna Vinschen
2011-03-04 15:24 ` Ken Brown
2011-03-03 17:45 Angelo Graziosi
2011-03-03 19:20 ` Corinna Vinschen
2011-03-05 18:09 ` David Rothenberger
2011-03-07 10:17   ` Corinna Vinschen
2011-03-07 22:13     ` David Rothenberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).