Re: Unpacking 7z archives on Cygwin64

2014-03-01 Thread Tony Kelman

Now I have just discovered how!

Installing the bsdtar and friends packages. I was sure that there was
an alternative to p7zip but don't remember which... It is bsdtar...


Thanks, that is useful. I'm trying to work with a build system that
assumes p7zip, and is using it to extract from an msi file. bsdtar is
not working as a drop-in replacement for this, and it would be nice to
remove p7zip from http://cygwin.com/cygwin-64bit-missing regardless.

I reported the inquiry about the 64 bit assembly upstream at
https://sourceforge.net/p/p7zip/support-requests/6/#2150 and found
some patches were required to get the 64 bit assembly to work.
We can either modify the .cygport file to use the C version as I
initially suggested, or modify the .src.patch file to get the 64 bit
assembly version working. This also requires running dos2unix on the
assembly file in order to get the patch to apply.

I'm still not clear, do 64 bit packages have their own independent
set of patches, or is it necessary to write patches that work for
both 32 bit and 64 bit?

-Tony


--
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



Re: Help with shortcuts

2014-03-01 Thread Mike Rushton

Well thanks I will have to try that.

My only other option was to create a menu and execute in from my profile 
... and instead of shortcuts ... they would be options off a menu.


I also found out you can create symbolic links under Win 7, WIn XP (you 
must download this Junction Program) and also do this under various 
Unix/Linux versions.






On 3/1/2014 10:52 AM, Max Polk wrote:

On 2/28/2014 9:09 AM, mrushton wrote:
Can some on give me a help with creating a shortcut to a shell script 
under Windows 7 ?



I am doing something like this in the windows shorcut :

C:\CygwinSoftware\bin\mintty.exe -i /Cygwin-Terminal.ico --exec 
/cygdrive/x/INBOUND/CWSCRIPTS/mymenu.sh


Well I found in the documentation that when you run a script this 
way, it is not an interactive shell and it does not process your 
.bashprofile and .bashrc and all the good stuff it normally does when 
it logs in.  I am missing aliases when it logs in this way.


How can I create a shortcut that would process my normal startup 
files and then run the script I what ?


From cmd.exe you can exec bash with the login and interactive flags, 
and pass it a command like this to see all your vars:


C:\Apps\Cyg\bin\mintty.exe --exec /bin/bash --login -i -c "set && read x"

In Windows create a shortcut and simply paste the above in.

--
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





--
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



Re: Unpacking 7z archives on Cygwin64

2014-03-01 Thread Steven Penny
On Sat, Mar 1, 2014 at 7:24 PM, Angelo Graziosi wrote:
> $ bsdtar -tf foo.7z
> $ bsdtar -xvf foo.7z
> $ bsdtar -xvf foo.7z -C foo_dir

Whoa, it does ISO files too, nice!

--
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



Re: Unpacking 7z archives on Cygwin64

2014-03-01 Thread Angelo Graziosi

Il 23/02/2014 22:46, Angelo Graziosi ha scritto:

On Cygwin64, is there an utility to unpack .7z archives?


Now I have just discovered how!

Installing the bsdtar and friends packages. I was sure that there was an 
alternative to p7zip but don't remember which... It is bsdtar...



$ bsdtar -tf foo.7z
$ bsdtar -xvf foo.7z
$ bsdtar -xvf foo.7z -C foo_dir
...

Very nice!



Thanks,
  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



Re: Unpacking 7z archives on Cygwin64

2014-03-01 Thread Tony Kelman

> There is an x86_64 assembly version of the same
> file included in the source tarball which could be used instead,

Which is? May you clarify this point?


Sure. There's an Asm directory in the source tree, under which there
are x86 and x64 subfolders. They both contain versions of the file
7zCrcT8U.asm. I don't know assembly and I'm not familiar enough
with the details of p7zip to know for sure, but I'm guessing these
should do the same thing.

It should be possible to patch makefile.cygwin_asm to use the x64
assembly file instead, it would just be a bit more invasive of a patch.
The p7zip-9.20.1-1.src.patch file already has a section that touches
makefile.cygwin_asm that I could expand upon to do this.

I didn't understand the relationship between the numbered patches listed
in the PATCH_URI section of the .cygport file, and the .src.patch and
.cygwin.patch files, but I at least see the order in which they are
applied now.

Do 32-bit and 64-bit packages use the same build instructions, or would
the 64-bit package be separate? I can add in makefile conditionals to
make the same patch work for both, or use a simpler patch targeting
64-bit specifically.

-Tony


--
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



Re: Unpacking 7z archives on Cygwin64

2014-03-01 Thread Angelo Graziosi

Tony Kelman wrote:

There is an x86_64 assembly version of the same
file included in the source tarball which could be used instead,


Which is? May you clarify this point?


TIA,
 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



Re: Help with shortcuts

2014-03-01 Thread Max Polk

On 2/28/2014 9:09 AM, mrushton wrote:

Can some on give me a help with creating a shortcut to a shell script under 
Windows 7 ?


I am doing something like this in the windows shorcut :

C:\CygwinSoftware\bin\mintty.exe -i /Cygwin-Terminal.ico --exec 
/cygdrive/x/INBOUND/CWSCRIPTS/mymenu.sh

Well I found in the documentation that when you run a script this way, it is 
not an interactive shell and it does not process your .bashprofile and .bashrc 
and all the good stuff it normally does when it logs in.  I am missing aliases 
when it logs in this way.

How can I create a shortcut that would process my normal startup files and then 
run the script I what ?


From cmd.exe you can exec bash with the login and interactive flags, 
and pass it a command like this to see all your vars:


C:\Apps\Cyg\bin\mintty.exe --exec /bin/bash --login -i -c "set && read x"

In Windows create a shortcut and simply paste the above in.

--
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



Re: Unpacking 7z archives on Cygwin64

2014-03-01 Thread Tony Kelman

No.  The Cygwin utility for 7z archives is p7zip, but that's one of the
packages that hasn't been ported to 64-bit Cygwin yet.


What's the best way to contribute to help this along? I just downloaded
the p7zip source package and figured out what needs to change to get
the cygport file to build cleanly in 64-bit Cygwin:

1. One of the patches doesn't apply correctly because a man file,
man1/7zr.1, has the wrong line endings. Running dos2unix on that
man file and re-packing the source tarball fixed that.

2. In src_compile() in the cygport file, the line

   cp makefile.cygwin_asm makefile.machine

is resulting in an x86 assembly file getting pulled in, which fails to
link in 64-bit Cygwin. There is an x86_64 assembly version of the same
file included in the source tarball which could be used instead, but the
easier patch is to instead use a C version of the file. There may be some
performance penalty here, but it's a one-liner patch to the cygport file:

   [ `arch` = x86_64 ] && cp makefile.cygwin makefile.machine

added after the previous "cp" line.

Can anyone offer guidance for how to proceed in creating a 64-bit version
of this package now that I've pointed out what needs to be fixed?

Thanks,
Tony


--
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



Re: new setup.exe - another problem, or is this behavior expected?

2014-03-01 Thread Csaba Raduly
On Fri, Feb 28, 2014 at 4:48 PM, Larry Hall (Cygwin)  wrote:
(snip)
>
> Either should work OK, as the former is a superset of the latter.  The key
> thing is to not pick more than 1 mirror if you don't need to.

Heh, I wasn't even aware that the list of mirrors is multi-select, and
I used it daily for 6+ years.

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
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



Python 2.7.5-3 core when using pip

2014-03-01 Thread farmer1...@gmail.com
python 2.7.5-3

cygwin1.dll 1.7.28 x64

windows 8.1 64bit


python core when run

python -c 'import pip'


I compiled python 2.7.6 on same cygwin and everything goes well


issue on pip

https://github.com/pypa/pip/issues/1448


core dump 
https://onedrive.live.com/redir?resid=174F4B7796AF12D8!1082&authkey=!AB3lABlSF7hjdAk&ithint=file%2c.dmp


gdb trace

Program received signal SIGSEGV, Segmentation fault.
0x in ?? ()
(gdb) bt
#0  0x in ?? ()
#1  0x7ffcca221148 in WaitForSingleObjectEx () from
/cygdrive/c/WINDOWS/system32/KERNELBASE.dll
#2  0x002329b8 in ?? ()
#3  0x00231910 in ?? ()
#4  0x002329b8 in ?? ()
#5  0x7ffcca221d28 in WriteFile () from
/cygdrive/c/WINDOWS/system32/KERNELBASE.dll
#6  0x00231250 in ?? ()
#7  0xdc3cba00 in ?? ()
#8  0x0048 in ?? ()
#9  0x00010001 in ?? ()
#10 0x in ?? ()

--
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



Re: Testers needed: New passwd/group handling in Cygwin

2014-03-01 Thread Achim Gratz
Corinna Vinschen writes:
> How?  Details?  Stackdump?  It works for me(TM).  The timing only shows
> that it's not the right thing for you, or that in the long run the
> non-caching option should just go away.  For the time being, though, I
> need *details*.

Sorry, that's the best I can do at the moment.

> Hang on.  Are you telling me this snapshot takes longer than the
> snapshot from yesterday?  And you're telling me that normal caching, as
> was the default all the time, is slower in startup than with the
> additional caching of groups at startup?  Is your startup procedure
> calling `id' twice by any chance?

I've been using the network via VPN, and measured the numbers with the
previous DLL(s) before testing the snapshot, results are in a different
reply.

> The problem with your numbers is that I have nothing really to compare
> it with.  It would be helpful to know what you're doing, the essential
> parts of your startup for instance.

I'm on my way to catch a plane, sorry this will be in about a week.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves

--
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