Comments (3)
Hmm, this problem, multiple installation of cygwin, is a little complexity.
I received this issue and read following source code of setup.exe
:
https://sourceware.org/git/gitweb.cgi?p=cygwin-setup.git
It seems that setup.rc and root directory will be determined following steps:
- Try to read "file://" + cwd + "/" + "setup.rc" at
UserSettings.cc
line 70-75. - If step 1 failed, then try to read "cygfile:///etc/setup/" + "setup.rc" at
UserSettings.cc
line 76-81. In this case, "cygfile:///" will be determined by cygpath(), but at this stage set_root_dir() has been never called. So read_mounts(std::string()) determines rootdir withHKEY_LOCAL_MACHINE\SOFTWARE\cygwin\setup\rootdir
orHKEY_CURRENT_USER\Software\cygwin\setup\rootdir
atmount.cc
line 330-360. Note thatHKEY_LOCAL_MACHINE
takes priority. - When
Cygwin setup - Choose Installation Directory
dialog displayed, it will determine initial value forroot directory
with--root
option orHKEY_LOCAL_MACHINE\SOFTWARE\cygwin\setup\rootdir
orHKEY_CURRENT_USER\Software\cygwin\setup\rootdir
atroot.cc
line 260-260. But this will be not used for readingsetup.rc
.
As you can see in the above steps, setup.rc
seems to be read only once at step 1 or 2 before root directory is determined at step 3.
This should make some troubles in the case as multiple installation of cygwin.
Even more unfortunately the current version of setup.exe
has no command line options for giving the location of setup.rc
.
Perhaps, the means for giving setup.rc
to setup.exe
, which we can take, is following, maybe:
- Prepare
./setup.rc
in the same directory assetup.exe
. - Rewrite
HKEY_LOCAL_MACHINE\SOFTWARE\cygwin\setup\rootdir
orHKEY_CURRENT_USER\Software\cygwin\setup\rootdir
.
from apt-cyg.
Please check above commit c3b4d00 on issue-47 branch.
from apt-cyg.
I updated issue-47 branch with 305947b.
Can you try it?
from apt-cyg.
Related Issues (20)
- don't require git to perform upgrade-self HOT 1
- How to update a package? HOT 3
- apt-cyg install issues - Cygwin 3.1.2 HOT 18
- Was the category subcommand removed? HOT 2
- apt-cyg blocks from a missing cygwinports.org HOT 1
- Improved mirrors-list HOT 1
- Bug in category subcommand HOT 1
- Set default installation path to /usr/bin or /usr/local/bin path HOT 1
- homepage: command not found HOT 1
- Bad GPG signature warnings again HOT 2
- Very Hard to Install and not working, getting error HOT 3
- Output capping [enhancement] HOT 1
- Installing specific version of the HOT 2
- updating setup.ini failed HOT 12
- The dependencies cannot be solved. HOT 2
- Type p of postinstall scripts must not be marked .done HOT 1
- /etc/postinstall/*.dash are required to be executed.
- Set timeout limit for mirror benchmark? HOT 5
- Removing orphaned auto-packages HOT 1
- Can't create '\\\\?\\C:\\usr\\bin\\free.exe' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apt-cyg.