Commit Graph

32 Commits

Author SHA1 Message Date
Christoph Reiter
e1b769b0e4 filesystem: fix missing CONFIG_SITE breaking configure host detection
We want configure to always go through our config.site. It first
looks at CONFIG_SITE, then the prefix if there is one and then falls
back to our default. But this means if a prefix is set it wouldn't
use it.

Fix this by setting CONFIG_SITE always like before.

Broken by 9a37bb560a
2021-03-24 22:29:10 +01:00
Christoph Reiter
1072c33404 filesystem: more ucrt things 2021-03-21 17:54:35 +01:00
jeremyd2019
6f2e18300f filesystem: deduplicate MSYSTEM handling
also add handling for CLANG* in addition to MINGW* MSYSTEM values
2020-12-31 16:02:39 -08:00
fauxpark
7530d8e962 Override %SHELL% for bash 2020-08-13 06:50:17 +10:00
Christoph Reiter
9f3943b8e4 filesystem: remove rege-info.sh (#2044)
It calls install-info on all info files on the first MSYS2 start, but all
the info files are already installed in our current installer.

I'm not 100% sure why this was added, but I guess because of #1998 the installer
created in a chroot didn't install the info files properly and thus they were
missing on a fresh install. This is no longer the case now.

regen-info.sh is called in /etc/profile and part of the "backup" array in the PKGBUILD
so the call might not be removed if the user has changed /etc/profile. Since it is only
called in the first MSYS2 session this shouldn't lead to any problems.
2020-07-17 10:16:01 +03:00
hiroakit
7476bdd9b4 Remove double quotes of the LOGINSHELL (#1868)
* Remove double quotes of the LOGINSHELL

When set shell arguments, LOGINSHELL has double quotes.
In the default, L6: set "LOGINSHELL=bash". 
I followed the format it.

* Add value to $SHELL for zsh

Issue:
1. Run, C:\msys64\msys2_shell.cmd -mingw64 -shell zsh
2. echo $SHELL
3. Nothing
2020-02-24 10:34:24 +03:00
Viktor Szakats
7f7316ba9b use HTTPS in URLs where supported (#1741) 2019-09-30 09:33:57 +03:00
Алексей
688944cee3 Merge pull request #1205 from niklasholm/patch-5
filesystem: Include /mingwXX/local/man on MANPATH
2018-04-19 07:41:18 +03:00
Aelius
950791306b remove minor bashism from /etc/profile
Noticed this when using `dash` as my shell.

https://wiki.ubuntu.com/DashAsBinSh#source
2018-04-04 15:28:06 -04:00
Niklas Holm
95bf733902 filesystem: Include /mingwXX/local/man on MANPATH 2018-03-14 09:33:26 +01:00
Mehrdad
086e08a092 /etc/post-install and /etc/profile.d script optimizations 2018-03-11 22:44:23 -07:00
Alethea Rose
bf0c061f17 Also source /etc/profile.d/*.sh for zsh 2017-02-13 22:06:22 -05:00
Renato Silva
4c63570212 filesystem: Some improvements.
* Avoid continuously appending items to MANPATH and INFOPATH when
  sourcing /etc/profile multiple times.

* Check for .bashrc existence in shell manager.
2016-06-26 15:46:53 -03:00
Renato Silva
f64a34a763 filesystem: More consistent behavior for MSYSTEM.
MSYSTEM now defaults to MSYS when not specified, and there is no
different behavior anymore between empty value and MSYS, for example
/opt/bin was not being added to path when not setting MSYSTEM. This
removes the need for explicitly setting the variable, since a default
value is now implied.
2016-05-24 14:37:08 -03:00
Renato Silva
b827a678b1 Some environment improvements.
* New script /etc/msystem providing information associated with the
  current MSYSTEM. This is sourced by /etc/profile but can be used by
  non-login scripts for getting information such as the current
  compiler architecture or mount point.

* New script /usr/bin/shell for switching between shells without
  restarting MSYS2. This can be used in interactive sessions but also
  from shell scripts for switching the MSYSTEM without restarting bash
  or spawning a subshell.

* Allow /etc/profile to be sourced multiple times without continuously
  appending stuff to PATH or losing track of the original Windows TEMP.
  Also implemented for /etc/profile.d/perlbin.sh, so perl path is not
  repeatedly appended.
2016-05-24 14:37:08 -03:00
Renato Silva
7fd131dde0 filesystem: More consistent Windows path setting.
The generic variable SET_FULL_PATH has been replaced with MSYS2_PATH_TYPE, which
can accept the following values:

* strict: no Windows path.
* inherit: full Windows path.
* Other values: minimal Windows path (default).
2016-04-08 16:05:50 -03:00
Alexey Pavlov
8db3812e08 filesystem: Fix path convert. Remove TERM variable 2016-03-30 16:08:19 +03:00
Alexey Pavlov
5abf4b608f filesystem: Add environment variable to SKIP minimize PATH 2016-03-30 08:29:49 +03:00
Alexey Pavlov
6e0e609da2 filesystem: Create minimal PATH environment. 2016-03-29 09:38:10 +03:00
Alexpux
e259adce91 filesystem: Add agm2 macros. 2015-04-26 13:35:26 +03:00
Iku Iwasa
856cbc1aae Fix empty MINGW_MOUNT_POINT handling 2015-04-25 13:41:28 +01:00
Alexpux
96089872e9 filesystem: Read profiles for mingw shells from mingw directories 2015-04-05 23:22:20 +03:00
David Macek
310f430905 Clean up /usr/sbin and /usr/etc
Affected recipes: cyrus-sasl, filesystem, gdb, heimdal, tar, tzcode, util-linux

Also:
- add missing dependencies to gdb
- re-format filesystem PKGBUILD slightly
2015-03-07 17:07:25 +01:00
David Macek
9380595f55 Set correct ACLOCAL_PATH in /etc/profile for mingw{32,64}_shell 2015-02-06 01:23:24 +01:00
Alexpux
e60e8d8ffa filesystem: Extend PKG_CONFIG_PATH. Add comments about new method of mapping windows accounts to cygwin/msys. 2014-12-08 14:18:30 +03:00
Alexpux
51695dda36 filesystem: Optimize first MSYS2 run. 2014-11-12 21:07:37 +03:00
Alexpux
556a3fa71e filesystem: We don't need create /etc/{passwd,group} anymore 2014-10-26 22:23:33 +03:00
Alexpux
91cb3a556a filesystem: Some fixes. 2014-10-12 19:14:25 +04:00
Alexpux
a20fb2ba46 filesystem: Move post-install code to some files. Add pacman post install tasks. 2014-09-30 09:50:32 +04:00
Alexpux
16fb5a3608 filesystem: Do not install nsswitch.conf as it broken. Export TERMINFO variable 2014-09-19 09:11:40 +04:00
Alexpux
13fbdd1432 filesystem: Cleanup profile files from Cygwin stuff 2014-07-02 10:02:31 +04:00
Alexpux
4711f5800e filesystem: New package. Replace msys2-base 2014-07-01 15:36:35 +04:00