[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#867425: marked as done (gcc-defaults: /usr/share/doc/gcc symlink recreated on every package upgrade)



Your message dated Tue, 08 Aug 2017 16:20:19 +0000
with message-id <E1df7Ex-0001KF-U4@fasolo.debian.org>
and subject line Bug#867425: fixed in gcc-defaults-ports 1.172
has caused the Debian Bug report #867425,
regarding gcc-defaults: /usr/share/doc/gcc symlink recreated on every package upgrade
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
867425: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=867425
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: gcc-defaults
Version: 1.168d1
Severity: minor
Tags: patch

The gcc preinst script removes the /usr/share/doc/gcc symlink (it tests
whether /usr/share/doc/gcc is a directory, but this test also succeeds
for a symlink to a directory), apparently as part of a
directory -> symlink conversion that happened over 16 years ago:

,----
| gcc-defaults (0.4) unstable; urgency=low
| 
|   * Link /usr/share/doc/gcc to cpp doc directory (#80990).
| 
|  -- Matthias Klose <doko@debian.org>  Mon,  1 Jan 2001 18:27:27 +0100
`----

It seems that the preinst script and the part of the postinst script
that also deals with this conversion can be safely removed, see the
attached patch.


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 4.12.0-nouveau (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

diff -Nru gcc-defaults-1.168d1/debian/gcc.postinst.in gcc-defaults-1.168d1local1/debian/gcc.postinst.in
--- gcc-defaults-1.168d1/debian/gcc.postinst.in	2013-06-12 23:03:20.000000000 +0200
+++ gcc-defaults-1.168d1local1/debian/gcc.postinst.in	2017-07-06 10:00:09.000000000 +0200
@@ -1,12 +1,5 @@
 #! /bin/sh -e
 
-# remove the doc dir, if it's still a directory and replace with a symlink
-pkg=`basename $0 .postinst`
-if [ ! -L  /usr/share/doc/$pkg ]; then
-    rm -rf /usr/share/doc/$pkg
-    ln -s cpp /usr/share/doc/$pkg
-fi
-
 update-alternatives --quiet \
     --install /usr/bin/cc cc /usr/bin/gcc 20 \
     @GFDL@--slave /usr/share/man/man1/cc.1.gz cc.1.gz /usr/share/man/man1/gcc.1.gz
diff -Nru gcc-defaults-1.168d1/debian/gcc.preinst gcc-defaults-1.168d1local1/debian/gcc.preinst
--- gcc-defaults-1.168d1/debian/gcc.preinst	2015-07-18 20:30:28.000000000 +0200
+++ gcc-defaults-1.168d1local1/debian/gcc.preinst	1970-01-01 01:00:00.000000000 +0100
@@ -1,10 +0,0 @@
-#! /bin/sh -e
-
-if [ -d /usr/share/doc/gcc ]; then
-    echo "Removing old gcc doc directory."
-    rm -rf /usr/share/doc/gcc
-fi
-
-#DEBHELPER#
-
-exit 0

--- End Message ---
--- Begin Message ---
Source: gcc-defaults-ports
Source-Version: 1.172

We believe that the bug you reported is fixed in the latest version of
gcc-defaults-ports, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 867425@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated gcc-defaults-ports package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 08 Aug 2017 11:58:19 -0400
Source: gcc-defaults-ports
Binary: cpp-alpha-linux-gnu gcc-alpha-linux-gnu g++-alpha-linux-gnu gobjc-alpha-linux-gnu gobjc++-alpha-linux-gnu gfortran-alpha-linux-gnu gccgo-alpha-linux-gnu gcj-alpha-linux-gnu gdc-alpha-linux-gnu cpp-hppa-linux-gnu gcc-hppa-linux-gnu g++-hppa-linux-gnu gobjc-hppa-linux-gnu gobjc++-hppa-linux-gnu gfortran-hppa-linux-gnu gcj-hppa-linux-gnu gdc-hppa-linux-gnu cpp-m68k-linux-gnu gcc-m68k-linux-gnu g++-m68k-linux-gnu gobjc-m68k-linux-gnu gobjc++-m68k-linux-gnu gfortran-m68k-linux-gnu gccgo-m68k-linux-gnu gcj-m68k-linux-gnu gdc-m68k-linux-gnu cpp-mips64-linux-gnuabi64 gcc-mips64-linux-gnuabi64 g++-mips64-linux-gnuabi64 gobjc-mips64-linux-gnuabi64 gobjc++-mips64-linux-gnuabi64 gfortran-mips64-linux-gnuabi64 gccgo-mips64-linux-gnuabi64 gcj-mips64-linux-gnuabi64 gdc-mips64-linux-gnuabi64 gcc-multilib-mips64-linux-gnuabi64 g++-multilib-mips64-linux-gnuabi64 gobjc-multilib-mips64-linux-gnuabi64 gobjc++-multilib-mips64-linux-gnuabi64 gfortran-multilib-mips64-linux-gnuabi64
 gccgo-multilib-mips64-linux-gnuabi64 gdc-multilib-mips64-linux-gnuabi64 cpp-powerpc-linux-gnu gcc-powerpc-linux-gnu g++-powerpc-linux-gnu gobjc-powerpc-linux-gnu gobjc++-powerpc-linux-gnu gfortran-powerpc-linux-gnu gccgo-powerpc-linux-gnu gcj-powerpc-linux-gnu gdc-powerpc-linux-gnu gcc-multilib-powerpc-linux-gnu g++-multilib-powerpc-linux-gnu gobjc-multilib-powerpc-linux-gnu gobjc++-multilib-powerpc-linux-gnu gfortran-multilib-powerpc-linux-gnu gccgo-multilib-powerpc-linux-gnu gdc-multilib-powerpc-linux-gnu cpp-powerpc-linux-gnuspe gcc-powerpc-linux-gnuspe g++-powerpc-linux-gnuspe gobjc-powerpc-linux-gnuspe gobjc++-powerpc-linux-gnuspe gfortran-powerpc-linux-gnuspe gccgo-powerpc-linux-gnuspe gcj-powerpc-linux-gnuspe gdc-powerpc-linux-gnuspe cpp-powerpc64-linux-gnu gcc-powerpc64-linux-gnu g++-powerpc64-linux-gnu gobjc-powerpc64-linux-gnu gobjc++-powerpc64-linux-gnu gfortran-powerpc64-linux-gnu gccgo-powerpc64-linux-gnu gcj-powerpc64-linux-gnu gdc-powerpc64-linux-gnu
 gcc-multilib-powerpc64-linux-gnu g++-multilib-powerpc64-linux-gnu gobjc-multilib-powerpc64-linux-gnu gobjc++-multilib-powerpc64-linux-gnu gfortran-multilib-powerpc64-linux-gnu gccgo-multilib-powerpc64-linux-gnu gdc-multilib-powerpc64-linux-gnu cpp-sh4-linux-gnu gcc-sh4-linux-gnu g++-sh4-linux-gnu gobjc-sh4-linux-gnu gobjc++-sh4-linux-gnu gfortran-sh4-linux-gnu gcj-sh4-linux-gnu gdc-sh4-linux-gnu cpp-sparc64-linux-gnu gcc-sparc64-linux-gnu g++-sparc64-linux-gnu gobjc-sparc64-linux-gnu gobjc++-sparc64-linux-gnu gfortran-sparc64-linux-gnu gccgo-sparc64-linux-gnu gcj-sparc64-linux-gnu gdc-sparc64-linux-gnu gcc-multilib-sparc64-linux-gnu g++-multilib-sparc64-linux-gnu gobjc-multilib-sparc64-linux-gnu gobjc++-multilib-sparc64-linux-gnu gfortran-multilib-sparc64-linux-gnu gccgo-multilib-sparc64-linux-gnu
 gdc-multilib-sparc64-linux-gnu
Architecture: source
Version: 1.172
Distribution: unstable
Urgency: medium
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Description:
 cpp-alpha-linux-gnu - GNU C preprocessor (cpp) for the alpha architecture
 cpp-hppa-linux-gnu - GNU C preprocessor (cpp) for the hppa architecture
 cpp-m68k-linux-gnu - GNU C preprocessor (cpp) for the m68k architecture
 cpp-mips64-linux-gnuabi64 - GNU C preprocessor (cpp) for the mips64 architecture
 cpp-powerpc-linux-gnu - GNU C preprocessor (cpp) for the powerpc architecture
 cpp-powerpc-linux-gnuspe - GNU C preprocessor (cpp) for the powerpcspe architecture
 cpp-powerpc64-linux-gnu - GNU C preprocessor (cpp) for the ppc64 architecture
 cpp-sh4-linux-gnu - GNU C preprocessor (cpp) for the sh4 architecture
 cpp-sparc64-linux-gnu - GNU C preprocessor (cpp) for the sparc64 architecture
 g++-alpha-linux-gnu - GNU C++ compiler for the alpha architecture
 g++-hppa-linux-gnu - GNU C++ compiler for the hppa architecture
 g++-m68k-linux-gnu - GNU C++ compiler for the m68k architecture
 g++-mips64-linux-gnuabi64 - GNU C++ compiler for the mips64 architecture
 g++-multilib-mips64-linux-gnuabi64 - GNU C++ compiler for the mips64 architecture
 g++-multilib-powerpc-linux-gnu - GNU C++ compiler for the powerpc architecture
 g++-multilib-powerpc64-linux-gnu - GNU C++ compiler for the ppc64 architecture
 g++-multilib-sparc64-linux-gnu - GNU C++ compiler for the sparc64 architecture
 g++-powerpc-linux-gnu - GNU C++ compiler for the powerpc architecture
 g++-powerpc-linux-gnuspe - GNU C++ compiler for the powerpcspe architecture
 g++-powerpc64-linux-gnu - GNU C++ compiler for the ppc64 architecture
 g++-sh4-linux-gnu - GNU C++ compiler for the sh4 architecture
 g++-sparc64-linux-gnu - GNU C++ compiler for the sparc64 architecture
 gcc-alpha-linux-gnu - GNU C compiler for the alpha architecture
 gcc-hppa-linux-gnu - GNU C compiler for the hppa architecture
 gcc-m68k-linux-gnu - GNU C compiler for the m68k architecture
 gcc-mips64-linux-gnuabi64 - GNU C compiler for the mips64 architecture
 gcc-multilib-mips64-linux-gnuabi64 - GNU C compiler for the mips64 architecture
 gcc-multilib-powerpc-linux-gnu - GNU C compiler for the powerpc architecture
 gcc-multilib-powerpc64-linux-gnu - GNU C compiler for the ppc64 architecture
 gcc-multilib-sparc64-linux-gnu - GNU C compiler for the sparc64 architecture
 gcc-powerpc-linux-gnu - GNU C compiler for the powerpc architecture
 gcc-powerpc-linux-gnuspe - GNU C compiler for the powerpcspe architecture
 gcc-powerpc64-linux-gnu - GNU C compiler for the ppc64 architecture
 gcc-sh4-linux-gnu - GNU C compiler for the sh4 architecture
 gcc-sparc64-linux-gnu - GNU C compiler for the sparc64 architecture
 gccgo-alpha-linux-gnu - Go compiler (based on GCC) for the alpha architecture
 gccgo-m68k-linux-gnu - Go compiler (based on GCC) for the m68k architecture
 gccgo-mips64-linux-gnuabi64 - Go compiler (based on GCC) for the mips64 architecture
 gccgo-multilib-mips64-linux-gnuabi64 - Go compiler (based on GCC) for the mips64 architecture
 gccgo-multilib-powerpc-linux-gnu - Go compiler (based on GCC) for the powerpc architecture
 gccgo-multilib-powerpc64-linux-gnu - Go compiler (based on GCC) for the ppc64 architecture
 gccgo-multilib-sparc64-linux-gnu - Go compiler (based on GCC) for the sparc64 architecture
 gccgo-powerpc-linux-gnu - Go compiler (based on GCC) for the powerpc architecture
 gccgo-powerpc-linux-gnuspe - Go compiler (based on GCC) for the powerpcspe architecture
 gccgo-powerpc64-linux-gnu - Go compiler (based on GCC) for the ppc64 architecture
 gccgo-sparc64-linux-gnu - Go compiler (based on GCC) for the sparc64 architecture
 gcj-alpha-linux-gnu - GNU Java compiler (based on GCC) for the alpha architecture
 gcj-hppa-linux-gnu - GNU Java compiler (based on GCC) for the hppa architecture
 gcj-m68k-linux-gnu - GNU Java compiler (based on GCC) for the m68k architecture
 gcj-mips64-linux-gnuabi64 - GNU Java compiler (based on GCC) for the mips64 architecture
 gcj-powerpc-linux-gnu - GNU Java compiler (based on GCC) for the powerpc architecture
 gcj-powerpc-linux-gnuspe - GNU Java compiler (based on GCC) for the powerpcspe architecture
 gcj-powerpc64-linux-gnu - GNU Java compiler (based on GCC) for the ppc64 architecture
 gcj-sh4-linux-gnu - GNU Java compiler (based on GCC) for the sh4 architecture
 gcj-sparc64-linux-gnu - GNU Java compiler (based on GCC) for the sparc64 architecture
 gdc-alpha-linux-gnu - GNU D compiler (based on GCC) for the alpha architecture
 gdc-hppa-linux-gnu - GNU D compiler (based on GCC) for the hppa architecture
 gdc-m68k-linux-gnu - GNU D compiler (based on GCC) for the m68k architecture
 gdc-mips64-linux-gnuabi64 - GNU D compiler (based on GCC) for the mips64 architecture
 gdc-multilib-mips64-linux-gnuabi64 - GNU D compiler (based on GCC) for the mips64 architecture
 gdc-multilib-powerpc-linux-gnu - GNU D compiler (based on GCC) for the powerpc architecture
 gdc-multilib-powerpc64-linux-gnu - GNU D compiler (based on GCC) for the ppc64 architecture
 gdc-multilib-sparc64-linux-gnu - GNU D compiler (based on GCC) for the sparc64 architecture
 gdc-powerpc-linux-gnu - GNU D compiler (based on GCC) for the powerpc architecture
 gdc-powerpc-linux-gnuspe - GNU D compiler (based on GCC) for the powerpcspe architecture
 gdc-powerpc64-linux-gnu - GNU D compiler (based on GCC) for the ppc64 architecture
 gdc-sh4-linux-gnu - GNU D compiler (based on GCC) for the sh4 architecture
 gdc-sparc64-linux-gnu - GNU D compiler (based on GCC) for the sparc64 architecture
 gfortran-alpha-linux-gnu - GNU Fortran 95 compiler for the alpha architecture
 gfortran-hppa-linux-gnu - GNU Fortran 95 compiler for the hppa architecture
 gfortran-m68k-linux-gnu - GNU Fortran 95 compiler for the m68k architecture
 gfortran-mips64-linux-gnuabi64 - GNU Fortran 95 compiler for the mips64 architecture
 gfortran-multilib-mips64-linux-gnuabi64 - GNU Fortran 95 compiler for the mips64 architecture
 gfortran-multilib-powerpc-linux-gnu - GNU Fortran 95 compiler for the powerpc architecture
 gfortran-multilib-powerpc64-linux-gnu - GNU Fortran 95 compiler for the ppc64 architecture
 gfortran-multilib-sparc64-linux-gnu - GNU Fortran 95 compiler for the sparc64 architecture
 gfortran-powerpc-linux-gnu - GNU Fortran 95 compiler for the powerpc architecture
 gfortran-powerpc-linux-gnuspe - GNU Fortran 95 compiler for the powerpcspe architecture
 gfortran-powerpc64-linux-gnu - GNU Fortran 95 compiler for the ppc64 architecture
 gfortran-sh4-linux-gnu - GNU Fortran 95 compiler for the sh4 architecture
 gfortran-sparc64-linux-gnu - GNU Fortran 95 compiler for the sparc64 architecture
 gobjc++-alpha-linux-gnu - GNU Objective-C++ compiler for the alpha architecture
 gobjc++-hppa-linux-gnu - GNU Objective-C++ compiler for the hppa architecture
 gobjc++-m68k-linux-gnu - GNU Objective-C++ compiler for the m68k architecture
 gobjc++-mips64-linux-gnuabi64 - GNU Objective-C++ compiler for the mips64 architecture
 gobjc++-multilib-mips64-linux-gnuabi64 - GNU Objective-C++ compiler for the mips64 architecture
 gobjc++-multilib-powerpc-linux-gnu - GNU Objective-C++ compiler for the powerpc architecture
 gobjc++-multilib-powerpc64-linux-gnu - GNU Objective-C++ compiler for the ppc64 architecture
 gobjc++-multilib-sparc64-linux-gnu - GNU Objective-C++ compiler for the sparc64 architecture
 gobjc++-powerpc-linux-gnu - GNU Objective-C++ compiler for the powerpc architecture
 gobjc++-powerpc-linux-gnuspe - GNU Objective-C++ compiler for the powerpcspe architecture
 gobjc++-powerpc64-linux-gnu - GNU Objective-C++ compiler for the ppc64 architecture
 gobjc++-sh4-linux-gnu - GNU Objective-C++ compiler for the sh4 architecture
 gobjc++-sparc64-linux-gnu - GNU Objective-C++ compiler for the sparc64 architecture
 gobjc-alpha-linux-gnu - GNU Objective-C compiler for the alpha architecture
 gobjc-hppa-linux-gnu - GNU Objective-C compiler for the hppa architecture
 gobjc-m68k-linux-gnu - GNU Objective-C compiler for the m68k architecture
 gobjc-mips64-linux-gnuabi64 - GNU Objective-C compiler for the mips64 architecture
 gobjc-multilib-mips64-linux-gnuabi64 - GNU Objective-C compiler for the mips64 architecture
 gobjc-multilib-powerpc-linux-gnu - GNU Objective-C compiler for the powerpc architecture
 gobjc-multilib-powerpc64-linux-gnu - GNU Objective-C compiler for the ppc64 architecture
 gobjc-multilib-sparc64-linux-gnu - GNU Objective-C compiler for the sparc64 architecture
 gobjc-powerpc-linux-gnu - GNU Objective-C compiler for the powerpc architecture
 gobjc-powerpc-linux-gnuspe - GNU Objective-C compiler for the powerpcspe architecture
 gobjc-powerpc64-linux-gnu - GNU Objective-C compiler for the ppc64 architecture
 gobjc-sh4-linux-gnu - GNU Objective-C compiler for the sh4 architecture
 gobjc-sparc64-linux-gnu - GNU Objective-C compiler for the sparc64 architecture
Closes: 867425
Changes:
 gcc-defaults-ports (1.172) unstable; urgency=medium
 .
   * Build gccbrig on x86 linux architectures only.
   * Remove obsolete docdir symlink update (Sven Joachim). Closes: #867425.
   * Don't build gccgo packages on m68k.
Checksums-Sha1:
 48537bafcc722f4135f5760f8afaf86bc856bd4d 11878 gcc-defaults-ports_1.172.dsc
 7ce48117887100c80db0b2ad1befcdc922220d60 67843 gcc-defaults-ports_1.172.tar.gz
 b3d13f3adb8733546d8b2dd91baeb0ac9816fb83 8860 gcc-defaults-ports_1.172_source.buildinfo
Checksums-Sha256:
 4596acd2b6e5fab6956b73ce76f86655de6efd002ac32464cb98ac22040bdad7 11878 gcc-defaults-ports_1.172.dsc
 71b1fac39f146e01529e43118ae7187062fff89f01827a63c9d42c5b0d2b47d6 67843 gcc-defaults-ports_1.172.tar.gz
 032cd4f412d863e35121b3a8ba7af6f04f9673e4fe69b7d7680112d647991dec 8860 gcc-defaults-ports_1.172_source.buildinfo
Files:
 8d254e9afd6255c1ccd7190e4a7709a6 11878 devel standard gcc-defaults-ports_1.172.dsc
 c18ecdb2a68b3ac5e79b2ba180853214 67843 devel standard gcc-defaults-ports_1.172.tar.gz
 8132fcd130a4e9f539fa6196030991d4 8860 devel standard gcc-defaults-ports_1.172_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAlmJ4RgQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9RcQD/0We9MPDUpc5JkEslpF5wSNcE0zCyVQ4GqC
PTBhVJPAkC/xgZXzPb5WF38cTbh0GEoYzDAk0qf7YDjN0r9VPoRIDW9sHgEms0RZ
+vy6hpJ3/kz7e64L0buuxL5W7a3qJJvYG5uK+CtI38VRZbl7TEK92L1nmj8GzmbD
JsGEfouuXZ0lqXXjIog8S/JdG14woR6ZUnu9VQob5vjzVjNvK/4PHkN/A6dV/g49
JxVrSFYHYerYDxE5KJ3njWoKyeCVOSsJ4YyArWL7NWmAwhc8h5SIG2wMDT9zPqHB
H3Y5E+HpzXJw7HJSOa80IW2rHyFqOAaRWuAEgDmMUghxaVlnAr4D1G7DkSApij4P
ijZoas0XG91exsI9GfOUhCwoKo6GyoE2DdhM6iycIEsXhYRpSbPt8yJmC2bOxCVo
v7A6ePr2CcCcIMAvdVYHy8V4NllVlhSlKEkUN95RoYqwSMiqgVGDLq2YAYDTJWqI
8hDisrPzL5bqBiGy3NqM8x4yDQKV2eUVyMYe/PIDlswqjbgB18o17yHWxZ5SjkTF
e2/mRTjucOvWF7nj5beg+7YBRKLagiWFwtwgaIg/7IBR1j8S9lbVb0n1DQ8Yx1AS
DIvZf5u4GJ7Y0mjatN1hfJP66QgFKwDZlNNsqA8Kmru/+bobqhoBZyQetmSi05GB
JJn61Yl+7g==
=YmxN
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: