msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.24k stars 1.21k forks source link

Updating GDB requires boost? #5402

Closed StarWolf3000 closed 5 years ago

StarWolf3000 commented 5 years ago

For some reason, updating gdb will also install source-highlight package, which itself depends on boost package.

I want to update gdb to 8.3-2, but pacman wants to install source-highlight and boost too, which is totally unnecessary and was never required before.

$ pacman -Qu
mingw-w64-i686-crt-git 7.0.0.5397.291c4f8d-1 -> 7.0.0.5449.a0647123-1
mingw-w64-i686-gdb 8.3-1 -> 8.3-2
mingw-w64-i686-headers-git 7.0.0.5397.291c4f8d-1 -> 7.0.0.5449.a0647123-1
mingw-w64-i686-libuv 1.28.0-1 -> 1.29.1-1
mingw-w64-i686-libwinpthread-git 7.0.0.5325.11a5459d-1 -> 7.0.0.5447.a2d94c81-1
mingw-w64-i686-winpthreads-git 7.0.0.5325.11a5459d-1 -> 7.0.0.5447.a2d94c81-1
mingw-w64-i686-zlib 1.2.11-5 -> 1.2.11-7
mingw-w64-x86_64-crt-git 7.0.0.5397.291c4f8d-1 -> 7.0.0.5449.a0647123-1
mingw-w64-x86_64-gdb 8.3-1 -> 8.3-2
mingw-w64-x86_64-headers-git 7.0.0.5397.291c4f8d-1 -> 7.0.0.5449.a0647123-1
mingw-w64-x86_64-libuv 1.28.0-1 -> 1.29.1-1
mingw-w64-x86_64-libwinpthread-git 7.0.0.5325.11a5459d-1 -> 7.0.0.5447.a2d94c81-1
mingw-w64-x86_64-winpthreads-git 7.0.0.5325.11a5459d-1 -> 7.0.0.5447.a2d94c81-1
mingw-w64-x86_64-zlib 1.2.11-5 -> 1.2.11-7

$ pacman -Su
:: Starting core system upgrade...
 Es gibt nichts zu tun
:: Starte vollständige Systemaktualisierung...
Löse Abhängigkeiten auf...
Suche nach in Konflikt stehenden Paketen...

Paket (20)                                  Alte Version           Neue Version           Netto-Veränderung  Größe des Downloads

mingw32/mingw-w64-i686-boost                                       1.70.0-2                      297,14 MiB            19,18 MiB
mingw32/mingw-w64-i686-crt-git              7.0.0.5397.291c4f8d-1  7.0.0.5449.a0647123-1           0,03 MiB             2,16 MiB
mingw32/mingw-w64-i686-gdb                  8.3-1                  8.3-2                           0,00 MiB             3,63 MiB
mingw32/mingw-w64-i686-headers-git          7.0.0.5397.291c4f8d-1  7.0.0.5449.a0647123-1           0,05 MiB             5,07 MiB
mingw32/mingw-w64-i686-icu                                         64.2-1                         93,00 MiB            17,45 MiB
mingw32/mingw-w64-i686-libuv                1.28.0-1               1.29.1-1                        0,00 MiB             0,19 MiB
mingw32/mingw-w64-i686-libwinpthread-git    7.0.0.5325.11a5459d-1  7.0.0.5447.a2d94c81-1           0,00 MiB             0,05 MiB
mingw32/mingw-w64-i686-source-highlight                            3.1.8-3                        18,48 MiB             2,90 MiB
mingw32/mingw-w64-i686-winpthreads-git      7.0.0.5325.11a5459d-1  7.0.0.5447.a2d94c81-1           0,00 MiB             0,05 MiB
mingw32/mingw-w64-i686-zlib                 1.2.11-5               1.2.11-7                       -0,51 MiB             0,10 MiB
mingw64/mingw-w64-x86_64-boost                                     1.70.0-2                      332,11 MiB            21,01 MiB
mingw64/mingw-w64-x86_64-crt-git            7.0.0.5397.291c4f8d-1  7.0.0.5449.a0647123-1           0,02 MiB             3,05 MiB
mingw64/mingw-w64-x86_64-gdb                8.3-1                  8.3-2                           0,00 MiB             3,48 MiB
mingw64/mingw-w64-x86_64-headers-git        7.0.0.5397.291c4f8d-1  7.0.0.5449.a0647123-1           0,05 MiB             5,07 MiB
mingw64/mingw-w64-x86_64-icu                                       64.2-1                         96,26 MiB            17,72 MiB
mingw64/mingw-w64-x86_64-libuv              1.28.0-1               1.29.1-1                        0,00 MiB             0,19 MiB
mingw64/mingw-w64-x86_64-libwinpthread-git  7.0.0.5325.11a5459d-1  7.0.0.5447.a2d94c81-1           0,00 MiB             0,04 MiB
mingw64/mingw-w64-x86_64-source-highlight                          3.1.8-3                        19,66 MiB             2,96 MiB
mingw64/mingw-w64-x86_64-winpthreads-git    7.0.0.5325.11a5459d-1  7.0.0.5447.a2d94c81-1           0,00 MiB             0,05 MiB
mingw64/mingw-w64-x86_64-zlib               1.2.11-5               1.2.11-7                       -0,47 MiB             0,10 MiB

Gesamtgröße des Downloads:            104,46 MiB
Gesamtgröße der installierten Pakete:  1148,17 MiB
Größendifferenz der Aktualisierung:   855,83 MiB

$ pacman -Sii mingw-w64-i686-boost
Repositorium             : mingw32
Name                     : mingw-w64-i686-boost
Version                  : 1.70.0-2
Beschreibung             : Free peer-reviewed portable C++ source libraries (mingw-w64)
Architektur              : any
URL                      : https://www.boost.org/
Lizenzen                 : custom
Gruppen                  : Nichts
Stellt bereit            : Nichts
Hängt ab von             : mingw-w64-i686-gcc-libs  mingw-w64-i686-bzip2  mingw-w64-i686-icu  mingw-w64-i686-zlib
Optionale Abhängigkeiten : Nichts
Benötigt von             : mingw-w64-i686-OpenSceneGraph  mingw-w64-i686-alembic  mingw-w64-i686-arrow  mingw-w64-i686-blender  mingw-w64-i686-cegui  mingw-w64-i686-cereal  mingw-w64-i686-cgal  mingw-w64-i686-clucene  mingw-w64-i686-collada-dom-svn
                           mingw-w64-i686-field3d  mingw-w64-i686-innoextract  mingw-w64-i686-kicad  mingw-w64-i686-kicad-footprints  mingw-w64-i686-kicad-packages3D  mingw-w64-i686-kicad-symbols  mingw-w64-i686-kicad-templates  mingw-w64-i686-libbotan
                           mingw-w64-i686-libkml  mingw-w64-i686-librevenge  mingw-w64-i686-libtorrent-rasterbar  mingw-w64-i686-luabind-git  mingw-w64-i686-mlpack  mingw-w64-i686-ogitor-git  mingw-w64-i686-ogre3d  mingw-w64-i686-opencolorio-git
                           mingw-w64-i686-openimageio  mingw-w64-i686-openscad  mingw-w64-i686-openshadinglanguage  mingw-w64-i686-pyilmbase  mingw-w64-i686-qbittorrent  mingw-w64-i686-quantlib  mingw-w64-i686-soci  mingw-w64-i686-source-highlight  mingw-w64-i686-thrift
                           mingw-w64-i686-vigra
Optional für             : mingw-w64-i686-vtk
In Konflikt mit          : Nichts
Ersetzt                  : Nichts
Größe des Downloads      : 19,18 MiB
Installationsgröße       : 297,14 MiB
Packer                   : Alexey Pavlov <alexpux@gmail.com>
Erstellt am              : Mo, 13. Mai 2019 07:33:58
MD5-Summe                : e5c1604c187a9685c0824dec1e4302db
SHA-256-Summe            : f614337607b378e92b20a06e182d29b2d32c543196fd537be2d711cf57dcc83f
Signaturen               : 5F92EFC1A47D45A1

$ pacman -Sii mingw-w64-i686-source-highlight
Repositorium             : mingw32
Name                     : mingw-w64-i686-source-highlight
Version                  : 3.1.8-3
Beschreibung             : Convert source code to syntax highlighted document (mingw-w64)
Architektur              : any
URL                      : https://www.gnu.org/software/src-highlite/
Lizenzen                 : GPL
Gruppen                  : Nichts
Stellt bereit            : Nichts
Hängt ab von             : bash  mingw-w64-i686-boost
Optionale Abhängigkeiten : Nichts
Benötigt von             : mingw-w64-i686-gdb
Optional für             : Nichts
In Konflikt mit          : Nichts
Ersetzt                  : Nichts
Größe des Downloads      : 2,90 MiB
Installationsgröße       : 18,48 MiB
Packer                   : Alexey Pavlov <alexpux@gmail.com>
Erstellt am              : Do, 16. Mai 2019 08:10:05
MD5-Summe                : 0b4204bd66adc373fc4b8010871f2e66
SHA-256-Summe            : 2725b9ebaab1f717e3cee02f5da76841e5429e34e6992ec85735dc311a35cee4
Signaturen               : 5F92EFC1A47D45A1

$ pacman -Sii mingw-w64-i686-gdb
Repositorium             : mingw32
Name                     : mingw-w64-i686-gdb
Version                  : 8.3-2
Beschreibung             : GNU Debugger (mingw-w64)
Architektur              : any
URL                      : https://www.gnu.org/software/gdb/
Lizenzen                 : GPL
Gruppen                  : mingw-w64-i686-toolchain
Stellt bereit            : Nichts
Hängt ab von             : mingw-w64-i686-expat  mingw-w64-i686-libiconv  mingw-w64-i686-python3  mingw-w64-i686-readline  mingw-w64-i686-source-highlight  mingw-w64-i686-zlib
Optionale Abhängigkeiten : Nichts
Benötigt von             : Nichts
Optional für             : mingw-w64-i686-qt-creator
In Konflikt mit          : Nichts
Ersetzt                  : Nichts
Größe des Downloads      : 3,63 MiB
Installationsgröße       : 12,30 MiB
Packer                   : Alexey Pavlov <alexpux@gmail.com>
Erstellt am              : Do, 16. Mai 2019 08:36:34
MD5-Summe                : 49c447e3868e56c0853209a1923903f1
SHA-256-Summe            : 0cd1f591f07050071c135346c319bcfd88a650a267e22573671c0836ce0fd8b9
Signaturen               : 5F92EFC1A47D45A1
oscarfv commented 5 years ago

That's an optional feature in 8.3 that the maintainer decided to enable. From https://www.gnu.org/software/gdb/download/ANNOUNCEMENT :

*   GDB now supports terminal styling for the CLI and TUI.
    Source highlighting is also supported by building GDB with GNU
    Highlight.
StarWolf3000 commented 5 years ago

@Alexpux Why did you decide to enable the source highlighting feature in the latest gdb build?

Alexpux commented 5 years ago

@StarWolf3000 it was added as dependency after gdb build with it and fail to run. So if it really no need then create pull request

StarWolf3000 commented 5 years ago

So the build will succeed, but gdb crashes, if you disable it in configure script call?

oscarfv commented 5 years ago

@StarWolf3000 : AFAIU Alexpux is saying that the build was configured for using that feature and later it was noted that gdb wont run without the binaries of Highlight and its dependencies (boost).

If you want to remove the dependence on boost (and, by implication, switching off the feature Highlight provides) please expose your arguments for doing so.

StarWolf3000 commented 5 years ago

@oscarfv Do you realize how many files the boost package contains? Its the whole library used for developing programs to utilize boost, not just some required runtime binaries.

The /lib and /include directories contain around 350 MiB together, while the actual required dlls sitting in /bin require about 15 MiB.

oscarfv commented 5 years ago

@StarWolf3000 : please note that I'm not arguing for or against anything. I'm just explaining how things work.

As Alexpux said, do a PR that disables Highlight.

StarWolf3000 commented 5 years ago

PR attempt number 2: #5411

oscarfv commented 5 years ago

@StarWolf3000 : your PR was merged. Please close this bug report. Thanks.

(In the future, if you write Fixes #XXXX in the commit message, the issue #XXXX will automatically close when the PR is accepted)