www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Why does DMD on Debian need xdg-utils

reply flamencofantasy <flamencofantasy gmail.com> writes:
DMD on debian depends on the xdg-utils package.

When I install xdg-utils I get many more packages (see bottom of 
message).

Is that really necessary?

Thanks.

# dpkg -i dmd_2.071.0-0_amd64.deb
Selecting previously unselected package dmd.
(Reading database ... 18532 files and directories currently 
installed.)
Unpacking dmd (from dmd_2.071.0-0_amd64.deb) ...
dpkg: dependency problems prevent configuration of dmd:
  dmd depends on xdg-utils; however:
   Package xdg-utils is not installed.
dpkg: error processing dmd (--install):
  dependency problems - leaving unconfigured
Processing triggers for man-db ...
Errors were encountered while processing:
  dmd







# apt-get install xdg-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
   dbus fontconfig-config libcap2 libclass-isa-perl libdbus-1-3 
libdrm-intel1 libdrm-nouveau1a libdrm-radeon1 libdrm2 
libencode-locale-perl libexpat1 libffi5 libfile-basedir-perl 
libfile-desktopentry-perl libfile-listing-perl
   libfile-mimeinfo-perl libfont-afm-perl libfontconfig1 
libfontenc1 libfreetype6 libgl1-mesa-dri libgl1-mesa-glx 
libglapi-mesa libglib2.0-0 libglib2.0-data libhtml-form-perl 
libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl
   libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl 
libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl 
libice6 libio-socket-ip-perl libio-socket-ssl-perl 
liblwp-mediatypes-perl liblwp-protocol-https-perl
   libmailtools-perl libnet-dbus-perl libnet-http-perl 
libnet-ssleay-perl libpciaccess0 libpcre3 libsm6 libsocket-perl 
libswitch-perl libsystemd-login0 libtie-ixhash-perl 
libtimedate-perl liburi-perl libwww-perl libwww-robotrules-perl
   libx11-protocol-perl libx11-xcb1 libxaw7 libxcb-glx0 
libxcb-shape0 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 
libxft2 libxi6 libxinerama1 libxml-parser-perl libxml-twig-perl 
libxml-xpathengine-perl libxml2 libxmu6 libxpm4
   libxrandr2 libxrender1 libxt6 libxtst6 libxv1 libxxf86dga1 
libxxf86vm1 perl perl-modules sgml-base shared-mime-info 
ttf-dejavu-core ucf x11-common x11-utils x11-xserver-utils 
xml-core
Suggested packages:
   dbus-x11 libglide3 libdata-dump-perl libcrypt-ssleay-perl 
libmime-base64-perl pciutils libauthen-ntlm-perl 
libunicode-map8-perl libunicode-string-perl xml-twig-tools 
perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl make
   libpod-plainer-perl sgml-base-doc mesa-utils nickle cairo-5c 
xorg-docs-core gvfs-bin debhelper
The following NEW packages will be installed:
   dbus fontconfig-config libcap2 libclass-isa-perl libdbus-1-3 
libdrm-intel1 libdrm-nouveau1a libdrm-radeon1 libdrm2 
libencode-locale-perl libexpat1 libffi5 libfile-basedir-perl 
libfile-desktopentry-perl libfile-listing-perl
   libfile-mimeinfo-perl libfont-afm-perl libfontconfig1 
libfontenc1 libfreetype6 libgl1-mesa-dri libgl1-mesa-glx 
libglapi-mesa libglib2.0-0 libglib2.0-data libhtml-form-perl 
libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl
   libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl 
libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl 
libice6 libio-socket-ip-perl libio-socket-ssl-perl 
liblwp-mediatypes-perl liblwp-protocol-https-perl
   libmailtools-perl libnet-dbus-perl libnet-http-perl 
libnet-ssleay-perl libpciaccess0 libpcre3 libsm6 libsocket-perl 
libswitch-perl libsystemd-login0 libtie-ixhash-perl 
libtimedate-perl liburi-perl libwww-perl libwww-robotrules-perl
   libx11-protocol-perl libx11-xcb1 libxaw7 libxcb-glx0 
libxcb-shape0 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 
libxft2 libxi6 libxinerama1 libxml-parser-perl libxml-twig-perl 
libxml-xpathengine-perl libxml2 libxmu6 libxpm4
   libxrandr2 libxrender1 libxt6 libxtst6 libxv1 libxxf86dga1 
libxxf86vm1 perl perl-modules sgml-base shared-mime-info 
ttf-dejavu-core ucf x11-common x11-utils x11-xserver-utils 
xdg-utils xml-core
0 upgraded, 91 newly installed, 0 to remove and 0 not upgraded.
Need to get 44.4 MB of archives.
After this operation, 163 MB of additional disk space will be 
used.
Do you want to continue [Y/n]?
Jun 02 2016
next sibling parent reply ZombineDev <petar.p.kirov gmail.com> writes:
On Thursday, 2 June 2016 at 17:36:46 UTC, flamencofantasy wrote:
 DMD on debian depends on the xdg-utils package.

 When I install xdg-utils I get many more packages (see bottom 
 of message).

 Is that really necessary?

 Thanks.
It shouldn't be necessary. It's probably a packaging issue. Meanwhile, you can try the install.sh script on listed on http://dlang.org/download. It shouldn't have any unnecessary dependencies.
Jun 02 2016
parent reply flamencofantasy <flamencofantasy gmail.com> writes:
On Thursday, 2 June 2016 at 17:54:07 UTC, ZombineDev wrote:
 On Thursday, 2 June 2016 at 17:36:46 UTC, flamencofantasy wrote:
 DMD on debian depends on the xdg-utils package.

 When I install xdg-utils I get many more packages (see bottom 
 of message).

 Is that really necessary?

 Thanks.
It shouldn't be necessary. It's probably a packaging issue. Meanwhile, you can try the install.sh script on listed on http://dlang.org/download. It shouldn't have any unnecessary dependencies.
Thanks, but does the script handle upgrades?
Jun 02 2016
parent reply ZombineDev <petar.p.kirov gmail.com> writes:
On Thursday, 2 June 2016 at 18:04:43 UTC, flamencofantasy wrote:
 On Thursday, 2 June 2016 at 17:54:07 UTC, ZombineDev wrote:
 On Thursday, 2 June 2016 at 17:36:46 UTC, flamencofantasy 
 wrote:
 DMD on debian depends on the xdg-utils package.

 When I install xdg-utils I get many more packages (see bottom 
 of message).

 Is that really necessary?

 Thanks.
It shouldn't be necessary. It's probably a packaging issue. Meanwhile, you can try the install.sh script on listed on http://dlang.org/download. It shouldn't have any unnecessary dependencies.
Thanks, but does the script handle upgrades?
Yes. It also supports multiple versions side by side and also installs dub. You can find the source here: https://github.com/dlang/installer/blob/master/script/install.sh Example usage: # Install dmd 2.70.0 ~/dlang/install.sh install dmd-2.70.0 # Install dmd 2.69.0 ~/dlang/install.sh install dmd-2.69.0 # start using version 2.70.0 activate ~/dlang/dmd-2.70.0 # stop using version 2.70.0 deactivate # start using version 2.69.0 activate ~/dlang/dmd-2.69.0 # stop using version 2.69.0 deactivate # uninstall version 2.69.0 ~/dlang/install.sh uninstall dmd-2.69.0 # removes everything installed so far rm -rf ~/dlang # downloads (again) the install script and # installs the latest stable version of the compiler. curl -fsS https://dlang.org/install.sh | bash -s dmd
Jun 02 2016
parent reply Mathias Lang via Digitalmars-d <digitalmars-d puremagic.com> writes:
It shouldn't be necessary. I believe that is because of `dmd -man`, which
open a web browser.

That's an apt-d issue (in hopefully Jordi Sayol will read this) which
prevents using this repository if your machine has no X (I guess you
discovered that on a server, as I did).

2016-06-02 20:17 GMT+02:00 ZombineDev via Digitalmars-d <
digitalmars-d puremagic.com>:

 On Thursday, 2 June 2016 at 18:04:43 UTC, flamencofantasy wrote:

 On Thursday, 2 June 2016 at 17:54:07 UTC, ZombineDev wrote:

 On Thursday, 2 June 2016 at 17:36:46 UTC, flamencofantasy wrote:

 DMD on debian depends on the xdg-utils package.

 When I install xdg-utils I get many more packages (see bottom of
 message).

 Is that really necessary?

 Thanks.
It shouldn't be necessary. It's probably a packaging issue. Meanwhile, you can try the install.sh script on listed on http://dlang.org/download. It shouldn't have any unnecessary dependencies.
Thanks, but does the script handle upgrades?
Yes. It also supports multiple versions side by side and also installs dub. You can find the source here: https://github.com/dlang/installer/blob/master/script/install.sh Example usage: # Install dmd 2.70.0 ~/dlang/install.sh install dmd-2.70.0 # Install dmd 2.69.0 ~/dlang/install.sh install dmd-2.69.0 # start using version 2.70.0 activate ~/dlang/dmd-2.70.0 # stop using version 2.70.0 deactivate # start using version 2.69.0 activate ~/dlang/dmd-2.69.0 # stop using version 2.69.0 deactivate # uninstall version 2.69.0 ~/dlang/install.sh uninstall dmd-2.69.0 # removes everything installed so far rm -rf ~/dlang # downloads (again) the install script and # installs the latest stable version of the compiler. curl -fsS https://dlang.org/install.sh | bash -s dmd
Jun 02 2016
parent flamencofantasy <flamencofantasy gmail.com> writes:
On Thursday, 2 June 2016 at 21:32:28 UTC, Mathias Lang wrote:
 It shouldn't be necessary. I believe that is because of `dmd 
 -man`, which open a web browser.

 That's an apt-d issue (in hopefully Jordi Sayol will read this) 
 which
 prevents using this repository if your machine has no X (I 
 guess you
 discovered that on a server, as I did).


 Yes. It also supports multiple versions side by side and also 
 installs dub. You can find the source here: 
 https://github.com/dlang/installer/blob/master/script/install.sh

 Example usage:

 # Install dmd 2.70.0
 ~/dlang/install.sh install dmd-2.70.0

 # Install dmd 2.69.0
 ~/dlang/install.sh install dmd-2.69.0

 # start using version 2.70.0
 activate ~/dlang/dmd-2.70.0

 # stop using version 2.70.0
 deactivate

 # start using version 2.69.0
 activate ~/dlang/dmd-2.69.0

 # stop using version 2.69.0
 deactivate

 # uninstall version 2.69.0
 ~/dlang/install.sh uninstall dmd-2.69.0

 # removes everything installed so far
 rm -rf ~/dlang

 # downloads (again) the install script and
 # installs the latest stable version of the compiler.
 curl -fsS https://dlang.org/install.sh | bash -s dmd
Yes, it's a server. It's actually a linux branded SmartOS zone and the install script does not seem to work. I have always been using the .deb package and it's been working, I just didn't want xdg-utils and all the other stuff that comes with it.
Jun 02 2016
prev sibling parent Joakim <dlang joakim.fea.st> writes:
On Thursday, 2 June 2016 at 17:36:46 UTC, flamencofantasy wrote:
 DMD on debian depends on the xdg-utils package.

 When I install xdg-utils I get many more packages (see bottom 
 of message).

 Is that really necessary?
No, it isn't, apparently it's because the "dman" help tool requires xdg-open: https://issues.dlang.org/show_bug.cgi?id=13139 You can ignore the dependency.
Jun 02 2016