New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating git #232

Closed
p3lim opened this Issue Jan 27, 2015 · 18 comments

Comments

Projects
None yet
6 participants
@p3lim

p3lim commented Jan 27, 2015

So I just got this, first thing I noticed is the old version of git that was shipped with it (1.7.9) and my first task was to update this.

I found no way of updating it in pact, so I tried removing it then adding it again.
It found the version 2.1.4 and installed that, but now git doesn't work.

@RMAdeveloper

This comment has been minimized.

Show comment
Hide comment
@RMAdeveloper

RMAdeveloper Feb 3, 2015

Same here.

The command doens't prompt any errors, output just remains empty.
Same behaviour with babun check, since the git update...

RMAdeveloper commented Feb 3, 2015

Same here.

The command doens't prompt any errors, output just remains empty.
Same behaviour with babun check, since the git update...

@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok Feb 3, 2015

Contributor

So you did git uninstall and then git install (both with pact) and after
that git does not work?

On Tue, Feb 3, 2015 at 9:45 AM, RMAdevelopper notifications@github.com
wrote:

Same here.

The command doens't prompt any errors, output just remains empty.
Same behaviour with babun check, since the git update...


Reply to this email directly or view it on GitHub
#232 (comment).

Contributor

tombujok commented Feb 3, 2015

So you did git uninstall and then git install (both with pact) and after
that git does not work?

On Tue, Feb 3, 2015 at 9:45 AM, RMAdevelopper notifications@github.com
wrote:

Same here.

The command doens't prompt any errors, output just remains empty.
Same behaviour with babun check, since the git update...


Reply to this email directly or view it on GitHub
#232 (comment).

@RMAdeveloper

This comment has been minimized.

Show comment
Hide comment
@RMAdeveloper

RMAdeveloper Feb 3, 2015

Exactly.
I did it again, here is the whole install output with the 2 git commands at the end:

{ ~ }  » pact install git                                                                   ~ 127
Working directory is /setup
Mirror is http://mirrors.kernel.org/sourceware/cygwin/
setup.ini taken from the cache

Installing git
Found package git
File ‘git-2.1.4-1.tar.xz’ already there; not retrieving.

Unpacking...
Package git requires the following packages, installing:
bash libcurl4 libexpat1 libgcc1 libiconv2 libintl8 libopenssl100 perl perl-Error perl_vendor python zlib0 cygutils less openssh rsync _update-info-dir cygwin
Package bash is already installed, skipping
Package libcurl4 is already installed, skipping
Package libexpat1 is already installed, skipping
Package libgcc1 is already installed, skipping
Package libiconv2 is already installed, skipping
Package libintl8 is already installed, skipping
Package libopenssl100 is already installed, skipping
Package perl is already installed, skipping
Package perl-Error is already installed, skipping
Package perl_vendor is already installed, skipping
Package python is already installed, skipping
Package zlib0 is already installed, skipping
Package cygutils is already installed, skipping
Package less is already installed, skipping
Package openssh is already installed, skipping
Package rsync is already installed, skipping
Package _update-info-dir is already installed, skipping
Package cygwin is already installed, skipping
Package git installed
{ ~ }  » git --version                                                                          ~
{ ~ }  » git status                                                                         ~ 127
{ ~ }  »          

RMAdeveloper commented Feb 3, 2015

Exactly.
I did it again, here is the whole install output with the 2 git commands at the end:

{ ~ }  » pact install git                                                                   ~ 127
Working directory is /setup
Mirror is http://mirrors.kernel.org/sourceware/cygwin/
setup.ini taken from the cache

Installing git
Found package git
File ‘git-2.1.4-1.tar.xz’ already there; not retrieving.

Unpacking...
Package git requires the following packages, installing:
bash libcurl4 libexpat1 libgcc1 libiconv2 libintl8 libopenssl100 perl perl-Error perl_vendor python zlib0 cygutils less openssh rsync _update-info-dir cygwin
Package bash is already installed, skipping
Package libcurl4 is already installed, skipping
Package libexpat1 is already installed, skipping
Package libgcc1 is already installed, skipping
Package libiconv2 is already installed, skipping
Package libintl8 is already installed, skipping
Package libopenssl100 is already installed, skipping
Package perl is already installed, skipping
Package perl-Error is already installed, skipping
Package perl_vendor is already installed, skipping
Package python is already installed, skipping
Package zlib0 is already installed, skipping
Package cygutils is already installed, skipping
Package less is already installed, skipping
Package openssh is already installed, skipping
Package rsync is already installed, skipping
Package _update-info-dir is already installed, skipping
Package cygwin is already installed, skipping
Package git installed
{ ~ }  » git --version                                                                          ~
{ ~ }  » git status                                                                         ~ 127
{ ~ }  »          
@p3lim

This comment has been minimized.

Show comment
Hide comment
@p3lim

p3lim Feb 3, 2015

@tombujok That's exactly what I did, as I found no other means of updating. Now git doesn't seem to work (I can execute commands, but nothing is output, not even errors).

p3lim commented Feb 3, 2015

@tombujok That's exactly what I did, as I found no other means of updating. Now git doesn't seem to work (I can execute commands, but nothing is output, not even errors).

@v-yadli

This comment has been minimized.

Show comment
Hide comment
@v-yadli

v-yadli Feb 4, 2015

Contributor

Same here. It's because the new version of (almost anything in the repo actually) git rely on a newer version of libgcc1. However we cannot simply update libgcc1. It's about the whole environment.

Contributor

v-yadli commented Feb 4, 2015

Same here. It's because the new version of (almost anything in the repo actually) git rely on a newer version of libgcc1. However we cannot simply update libgcc1. It's about the whole environment.

@v-yadli

This comment has been minimized.

Show comment
Hide comment
@v-yadli

v-yadli Feb 4, 2015

Contributor

@tombujok Is there a way to update the whole base system?

Contributor

v-yadli commented Feb 4, 2015

@tombujok Is there a way to update the whole base system?

@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok Feb 4, 2015

Contributor

I understand the problem now. Yes, definitely there is - babun is a normal cygwin installation.
It's not automated now - we would have to think about it.
Could one of you download the newest cygwin.exe (32bit!) and try to update the whole system checking if everything works?
If yes, we could automate the process easily...

Contributor

tombujok commented Feb 4, 2015

I understand the problem now. Yes, definitely there is - babun is a normal cygwin installation.
It's not automated now - we would have to think about it.
Could one of you download the newest cygwin.exe (32bit!) and try to update the whole system checking if everything works?
If yes, we could automate the process easily...

@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok Feb 4, 2015

Contributor

I was not specific enough - I meant:
Download Cygwin installer from http://cygwin.com/setup-x86.exe
Run the installer and use your .babun\cygwin directory (most likely C:\Users\your username.babun\cygwin) as the root install directory
Click through the installer. By default, it upgrades all packages.

Contributor

tombujok commented Feb 4, 2015

I was not specific enough - I meant:
Download Cygwin installer from http://cygwin.com/setup-x86.exe
Run the installer and use your .babun\cygwin directory (most likely C:\Users\your username.babun\cygwin) as the root install directory
Click through the installer. By default, it upgrades all packages.

@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok Feb 4, 2015

Contributor

So one guy has already confirmed that updating with cygwin's setup.exe is the way to go:
https://twitter.com/virtualblackfox/status/563016897852354561

Contributor

tombujok commented Feb 4, 2015

So one guy has already confirmed that updating with cygwin's setup.exe is the way to go:
https://twitter.com/virtualblackfox/status/563016897852354561

@p3lim

This comment has been minimized.

Show comment
Hide comment
@p3lim

p3lim Feb 4, 2015

Can confirm that worked, although it is important that the right mirror is selected for each user, as it can vary from a 2 minute update to a 2 hour update.

p3lim commented Feb 4, 2015

Can confirm that worked, although it is important that the right mirror is selected for each user, as it can vary from a 2 minute update to a 2 hour update.

@v-yadli

This comment has been minimized.

Show comment
Hide comment
@v-yadli

v-yadli Feb 5, 2015

Contributor

I can confirm that it works for me. Thanks! But now it takes a long time to spawn a shell. Don't know what happened. I'll try rebase everything manually.

Update:
Rebase doesn't work. It still takes ~30secs to open mintty. But anyway the awesomeness of pact is back!

Contributor

v-yadli commented Feb 5, 2015

I can confirm that it works for me. Thanks! But now it takes a long time to spawn a shell. Don't know what happened. I'll try rebase everything manually.

Update:
Rebase doesn't work. It still takes ~30secs to open mintty. But anyway the awesomeness of pact is back!

@RMAdeveloper

This comment has been minimized.

Show comment
Hide comment
@RMAdeveloper

RMAdeveloper Feb 5, 2015

Hello,

Thank you for your help.
It worked with the manual cygwin update. (Haven't yet try to perform a rebase)

However Babun launch time has become very long.

RMAdeveloper commented Feb 5, 2015

Hello,

Thank you for your help.
It worked with the manual cygwin update. (Haven't yet try to perform a rebase)

However Babun launch time has become very long.

@v-yadli

This comment has been minimized.

Show comment
Hide comment
@v-yadli

v-yadli Feb 21, 2015

Contributor

@RMAdevelopper This worked for me:
http://stackoverflow.com/questions/28410852/startup-is-really-slow-for-all-cygwin-applications

Turns out that the slow start of mintty is due to slow credential access. I'm in a domain network and the lag was around 30 secs. After getting home (away from the domain network) cygwin became completely inaccessible.

The solution in the above link fixed my problem. Could you please try that?

Contributor

v-yadli commented Feb 21, 2015

@RMAdevelopper This worked for me:
http://stackoverflow.com/questions/28410852/startup-is-really-slow-for-all-cygwin-applications

Turns out that the slow start of mintty is due to slow credential access. I'm in a domain network and the lag was around 30 secs. After getting home (away from the domain network) cygwin became completely inaccessible.

The solution in the above link fixed my problem. Could you please try that?

@v-yadli

This comment has been minimized.

Show comment
Hide comment
@v-yadli

v-yadli Feb 21, 2015

Contributor

@RMAdevelopper also if you migrated your babun dist from one machine from another, you might want to do mkpasswd -l -c > /etc/passwd and mkgroup -l -c /etc/group just like what @tombujok made for us in the post install script.

Contributor

v-yadli commented Feb 21, 2015

@RMAdevelopper also if you migrated your babun dist from one machine from another, you might want to do mkpasswd -l -c > /etc/passwd and mkgroup -l -c /etc/group just like what @tombujok made for us in the post install script.

@RMAdeveloper

This comment has been minimized.

Show comment
Hide comment
@RMAdeveloper

RMAdeveloper Feb 27, 2015

Will try the solution about slow start as soon as I am back at work(in 15days btw..) and complete this thread to let anyone knows.
Thanks for the advice!

RMAdeveloper commented Feb 27, 2015

Will try the solution about slow start as soon as I am back at work(in 15days btw..) and complete this thread to let anyone knows.
Thanks for the advice!

@sgregson

This comment has been minimized.

Show comment
Hide comment
@sgregson

sgregson Mar 20, 2015

Also succesful upgrade using the cygwin approach listed in #232 (comment)

After the install (updated to git 2.1.4) my difftool command was broken due to the perl error module problems outlined here - http://permalink.gmane.org/gmane.os.cygwin/151848. If you run into similar errors, just re-run the cygwin installer and update the perl-Error module to the lastest.

sgregson commented Mar 20, 2015

Also succesful upgrade using the cygwin approach listed in #232 (comment)

After the install (updated to git 2.1.4) my difftool command was broken due to the perl error module problems outlined here - http://permalink.gmane.org/gmane.os.cygwin/151848. If you run into similar errors, just re-run the cygwin installer and update the perl-Error module to the lastest.

@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok Mar 30, 2015

Contributor

Fixed in 1.1.0.
Release status: #266

Contributor

tombujok commented Mar 30, 2015

Fixed in 1.1.0.
Release status: #266

@eyeloveu

This comment has been minimized.

Show comment
Hide comment
@eyeloveu

eyeloveu Dec 20, 2017

After I pact install the gcc-g++, the g++ command outputs nothing, and it doesn't have any response.
Thanks to @tombujok 's sulotion. Manually update the Cygwin work for me.

eyeloveu commented Dec 20, 2017

After I pact install the gcc-g++, the g++ command outputs nothing, and it doesn't have any response.
Thanks to @tombujok 's sulotion. Manually update the Cygwin work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment