Strange output whenever "sh -xv" is used on FC31 x86_64 (rawhide)

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Strange output whenever "sh -xv" is used on FC31 x86_64 (rawhide)

Fedora List mailing list-2
Hi,

I have been seeing the enclosed lines PLUS a lot more (several pages worth). Can anyone tell me which package they come from and/or how to eliminate them please?

Best regards,

George...

switchml () {  typeset swfound=1;
if [ "${MODULES_USE_COMPAT_VERSION:-0}" = '1' ]; then
typeset swname='main';
if [ -e /usr/share/Modules/libexec/modulecmd.tcl ]; then
typeset swfound=0;
unset MODULES_USE_COMPAT_VERSION;
fi;
else
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@...
Reply | Threaded
Open this post in threaded view
|

Re: Strange output whenever "sh -xv" is used on FC31 x86_64 (rawhide)

Tom Horsley-5
On Sat, 14 Dec 2019 23:40:29 +0000 (UTC)
George R Goffe via users wrote:

> I have been seeing the enclosed lines PLUS a lot more (several pages worth). Can anyone tell me which package they come from and/or how to eliminate them please?

That nonsense is defined in the /etc/profile.d/modules.sh
file which is from the package:

zooty> rpm -q -f /etc/profile.d/modules.sh
environment-modules-4.3.0-1.fc31.x86_64

If you have never used the "module" command and have no idea
why you ever would, then you can safely:

dnf erase environment-modules

Unfortunately in f31, that also takes lots of stuff with it:

Removing dependent packages:
 OpenImageIO         x86_64 2.0.13-1.fc31                       @updates   12 M
 blender             x86_64 1:2.81-2.fc31                       @updates  162 M
 coin-or-Cbc         x86_64 2.10.3-2.fc31                       @fedora   2.6 M
 coin-or-Cgl         x86_64 0.60.2-2.fc31                       @fedora   1.3 M
 coin-or-Clp         x86_64 1.17.3-3.fc31                       @fedora   3.0 M
 digikam             x86_64 6.2.0-1.fc31                        @fedora   149 M
 digikam-doc         noarch 6.2.0-1.fc31                        @fedora     0  
 digikam-libs        x86_64 6.2.0-1.fc31                        @fedora    45 M
 mp                  x86_64 3.1.0-23.20161124git1f39801.fc31    @fedora   3.2 M
 opencv              x86_64 3.4.8-1.fc31                        @updates   11 M
 opencv-contrib      x86_64 3.4.8-1.fc31                        @updates   20 M
 opencv-core         x86_64 3.4.8-1.fc31                        @updates   26 M
 opencv-devel        x86_64 3.4.8-1.fc31                        @updates  5.9 M
 scl-utils           x86_64 1:2.0.2-11.fc31                     @anaconda  63 k

I have no idea why things like blender depend on modules junk.
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@...
Reply | Threaded
Open this post in threaded view
|

Re: Strange output whenever "sh -xv" is used on FC31 x86_64 (rawhide)

Samuel Sieb
On 12/14/19 4:38 PM, Tom Horsley wrote:
> I have no idea why things like blender depend on modules junk.

Strange.  This is one of my computers:
# cat /etc/fedora-release
Fedora release 31 (Thirty One)
# rpm -q blender
blender-2.81-2.fc31.x86_64
# rpm -q environment-modules
package environment-modules is not installed
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@...
Reply | Threaded
Open this post in threaded view
|

Re: Strange output whenever "sh -xv" is used on FC31 x86_64 (rawhide)

Ed Greshko
On 2019-12-15 15:01, Samuel Sieb wrote:

> On 12/14/19 4:38 PM, Tom Horsley wrote:
>> I have no idea why things like blender depend on modules junk.
>
> Strange.  This is one of my computers:
> # cat /etc/fedora-release
> Fedora release 31 (Thirty One)
> # rpm -q blender
> blender-2.81-2.fc31.x86_64
> # rpm -q environment-modules
> package environment-modules is not installed

Equally "strange"...

[root@f31k ~]# cat /etc/fedora-release
Fedora release 31 (Thirty One)

[root@f31k ~]# rpm -q environment-module blender
package environment-module is not installed
package blender is not installed

[root@f31k ~]# dnf install blender
.
.
.
============================================================
Install  103 Packages

None of which is environment-modules


And, FWIW, on my system

/etc/profile.d/modules.sh is a symlink to /etc/alternatives/modules.sh which is a symlink to
/usr/share/lmod/lmod/init/profile

And,

[egreshko@meimei profile.d]$ dnf whatprovides /usr/share/lmod/lmod/init/profile

But one has to find the actual file to learn that....

[egreshko@meimei init]$ dnf whatprovides /usr/share/lmod/8.1.17/init/profile
Last metadata expiration check: 0:05:32 ago on Sun 15 Dec 2019 05:50:56 PM CST.
Lmod-8.1.17-3.fc31.x86_64 : Environmental Modules System in Lua
Repo        : @System
Matched from:
Filename    : /usr/share/lmod/8.1.17/init/profile



--
The key to getting good answers is to ask good questions.
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@...
Reply | Threaded
Open this post in threaded view
|

Re: Strange output whenever "sh -xv" is used on FC31 x86_64 (rawhide)

Ed Greshko
On 2019-12-15 17:59, Ed Greshko wrote:
> [egreshko@meimei init]$ dnf whatprovides /usr/share/lmod/8.1.17/init/profile
> Last metadata expiration check: 0:05:32 ago on Sun 15 Dec 2019 05:50:56 PM CST.
> Lmod-8.1.17-3.fc31.x86_64 : Environmental Modules System in Lua
> Repo        : @System
> Matched from:
> Filename    : /usr/share/lmod/8.1.17/init/profile

But, it should be noted...

[egreshko@meimei ~]$ sudo dnf erase Lmod
[sudo] password for egreshko:
Dependencies resolved.
==================================================================================
 Package                Arch   Version                             Repo      Size
==================================================================================
Removing:
 Lmod                   x86_64 8.1.17-3.fc31                       @fedora  1.1 M
Removing dependent packages:
 blender                x86_64 1:2.81-2.fc31                       @updates 162 M
 digikam                x86_64 6.2.0-1.fc31                        @fedora  149 M
 digikam-libs           x86_64 6.2.0-1.fc31                        @fedora   45 M


--
The key to getting good answers is to ask good questions.
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@...
Reply | Threaded
Open this post in threaded view
|

Re: Strange output whenever "sh -xv" is used on FC31 x86_64 (rawhide)

George N. White III
In reply to this post by Fedora List mailing list-2
On Sat, 14 Dec 2019 at 19:41, George R Goffe via users <[hidden email]> wrote:
Hi,

I have been seeing the enclosed lines PLUS a lot more (several pages worth). Can anyone tell me which package they come from and/or how to eliminate them please?

Best regards,

George...

switchml () {  typeset swfound=1;
if [ "${MODULES_USE_COMPAT_VERSION:-0}" = '1' ]; then
typeset swname='main';
if [ -e /usr/share/Modules/libexec/modulecmd.tcl ]; then
typeset swfound=0;
unset MODULES_USE_COMPAT_VERSION;
fi;
else

This is from the environment-modules package:

Name         : environment-modules
Version      : 4.3.0
Release      : 1.fc31
Architecture : x86_64
Size         : 326 k
Source       : environment-modules-4.3.0-1.fc31.src.rpm
Repository   : fedora
Summary      : Provides dynamic modification of a user's environment
URL          : http://modules.sourceforge.net/
License      : GPLv2+
Description  : The Environment Modules package provides for the dynamic modification of
             : a user's environment via modulefiles.
             :
             : Each modulefile contains the information needed to configure the shell
             : for an application. Once the Modules package is initialized, the
             : environment can be modified on a per-module basis using the module
             : command which interprets modulefiles. Typically modulefiles instruct
             : the module command to alter or set shell environment variables such as
             : PATH, MANPATH, etc. modulefiles may be shared by many users on a system
             : and users may have their own collection to supplement or replace the
             : shared modulefiles.
             :
             : Modules can be loaded and unloaded dynamically and atomically, in an
             : clean fashion. All popular shells are supported, including bash, ksh,
             : zsh, sh, csh, tcsh, as well as some scripting languages such as perl.
             :
             : Modules are useful in managing different versions of applications.
             : Modules can also be bundled into metamodules that will load an entire
             : suite of different applications.
             :
             : NOTE: You will need to get a new shell after installing this package to
             : have access to the module alias.

I prefer Lmod:

Name         : Lmod
Version      : 8.1.17
Release      : 3.fc31
Architecture : x86_64
Size         : 1.1 M
Source       : Lmod-8.1.17-3.fc31.src.rpm
Repository   : @System
From repo    : fedora
Summary      : Environmental Modules System in Lua
URL          : https://www.tacc.utexas.edu/tacc-projects/lmod
License      : MIT and LGPLv2
Description  : Lmod is a Lua based module system that easily handles the MODULEPATH
             : Hierarchical problem.  Environment Modules provide a convenient way to
             : dynamically change the users' environment through modulefiles. This includes
             : easily adding or removing directories to the PATH environment variable.
             : Modulefiles for library packages provide environment variables that specify
             : where the library and header files can be found.

With Lmod:

$ sh -xv
ml () {  eval $($LMOD_DIR/ml_cmd "$@")
}
module () {  eval $($LMOD_CMD bash "$@") && eval $(${LMOD_SETTARG_CMD:-:} -s sh)
}
sh-5.0$
--
George N. White III


_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@...