Web lists-archives.com

Re: [Mingw-msys] Building Vim 6.4 for mSYS




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok i will upload it allthough it was built for (and with) the new msys
so im not sure it will work for the old.
If it does not ill rebuild it for the old msys.

I made some small changes to the mount table to make it closer to msys
way but without changing to much yet. Let me hear your view on the below.


inline void
mount_info::create_root_entry (const PWCHAR root)
{
    /* Create a default root dir derived from the location of the Msys
DLL.
       The entry is immutable, unless the "override" option is given
in /etc/fstab. */
	/* this part seems to be needed for msys */
    char native_root[PATH_MAX];
    sys_wcstombs (native_root, PATH_MAX, root);
    assert (*native_root != '\0');
    if (add_item (native_root, "/", MOUNT_SYSTEM | MOUNT_BINARY |
MOUNT_IMMUTABLE | MOUNT_AUTOMATIC) < 0)
	{
        api_fatal ("add_item (\"%W\", \"/\", ...) failed, errno %d",
native_root, errno);
	}
    /* Create a default cygdrive entry.  Note that this is a user entry.
       This allows to override it with mount, unless the sysadmin created
       a cygdrive entry in /etc/fstab. */
	/* remove for msys ? only seems to apply to the cygdrive itself */
    cygdrive_flags = MOUNT_BINARY | MOUNT_NOPOSIX | MOUNT_CYGDRIVE;
    strcpy (cygdrive, CYGWIN_INFO_CYGDRIVE_DEFAULT_PREFIX "/");
    cygdrive_len = strlen (cygdrive);
}

/* init: Initialize the mount table.  */

void
mount_info::init ()
{
    PWCHAR pathend;
    WCHAR path[PATH_MAX];

    pathend = wcpcpy (path, installation_root);
    create_root_entry (path);
    pathend = wcpcpy (pathend, L"\\etc\\fstab");

    from_fstab (false, path, pathend);
    from_fstab (true, path, pathend);

	/* changed root to /usr as default for msys so the entire root is
visible to /usr, old one had static mounts for only bin and lib while
root was "/" */
    if (!root_mnt)
    {
        char native[PATH_MAX];
        if (root_idx < 0)
		{
            api_fatal ("root_idx %d, user_shared magic %p, nmounts
%d", root_idx, user_shared->version, nmounts);
		}
        char *p = stpcpy (native, mount[root_idx].native_path);
        if (!root_mnt)
        {
            stpcpy (p, "\\");
            add_item (native, "/usr", MOUNT_SYSTEM | MOUNT_BINARY |
MOUNT_AUTOMATIC);
        }
    }
}




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOao2cAAoJEIjGvG7Y4HU87dwH/iXvG6BcWt/Cha420qsQmYdx
2UMc1iUs/G3++C83dyagOzXacyQi+ndj1PU3xaqkOy5e8kny4/xjGAtfWp5ShnGc
O3Apm+SncQHRZhal+oOXuvM6HaNeWavL1XzqR6W1srl1c0+CCrgeg+okex0wpVG+
8XWTXrDTE3n5FyOIZmQW9q0REiIcP4K2OOBVkA2XLgmbpczg5D+ml/JCVMYQIjKm
83y588tIBVA/Sj/KSl0frtQ0iPw7ldm9gG+UyJW6vjb/3lctTZbhMujkhGZEfdlc
sJbHY2qzAXuiARHuXiw14rh/Q/J/2mOyDIo3n9H6dqVkLHtjXWQk90BWLqksL+Q=
=U+ZW
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
_______________________________________________
Mingw-msys mailing list
Mingw-msys@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/mingw-msys