Adding debian version 13.8.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
9bcc7c1392
commit
a7acd6e844
21 changed files with 2265 additions and 0 deletions
3
debian/1777-dirs
vendored
Normal file
3
debian/1777-dirs
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
tmp
|
||||
var/lock
|
||||
var/tmp
|
9
debian/NEWS
vendored
Normal file
9
debian/NEWS
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
base-files (13.2) unstable; urgency=medium
|
||||
|
||||
By default, snippets for Bourne and Bourne-compatible shells (*.sh)
|
||||
in /etc/profile.d will only be sourced by /etc/profile if they
|
||||
conform to a sensible regexp including only some ASCII characters,
|
||||
as it already happens with cron entries and the like. Previously,
|
||||
the behaviour was not really well defined.
|
||||
|
||||
-- Santiago Vila <sanvila@debian.org> Fri, 03 May 2024 18:04:00 +0200
|
106
debian/README
vendored
Normal file
106
debian/README
vendored
Normal file
|
@ -0,0 +1,106 @@
|
|||
Frequently Asked Questions about base-files
|
||||
===========================================
|
||||
|
||||
* Questions about /etc/issue and /etc/debian_version:
|
||||
|
||||
Q. I upgraded my system to the testing distribution and now my /etc/issue
|
||||
says "forky/sid". Should it not read "forky" or "testing"?
|
||||
|
||||
Q. I upgraded my system to the unstable distribution and now my /etc/issue
|
||||
says "forky/sid". Should it not read "sid" or "unstable"?
|
||||
|
||||
A. That would be nice, but it is not possible because of the way the
|
||||
testing distribution works. Packages uploaded for unstable reach
|
||||
testing after ten days, provided they are built for every released
|
||||
architecture, have no RC-bugs and their dependencies may be met in
|
||||
testing. You should consider the testing and unstable distributions as
|
||||
two sides of the same coin. Since the base-files package in testing
|
||||
was initially uploaded for unstable, the only sensible /etc/issue to
|
||||
have is one that is both valid for testing and unstable, hence
|
||||
"forky/sid" (or whatever is appropriate).
|
||||
|
||||
Q. Why "forky/sid" and not "testing/unstable" as it used to be?
|
||||
|
||||
A. The codename is a little bit more informative, as the meaning of
|
||||
"testing" changes over time.
|
||||
|
||||
Q. Ok, but how do I know which distribution I'm running?
|
||||
|
||||
A. If you are running testing or unstable, then /etc/debian_version is
|
||||
not a reliable way to know that anymore. Looking at the contents of
|
||||
your /etc/apt/sources.list file is probably a much better way.
|
||||
|
||||
Q. There is a new point release and I've just upgraded my system.
|
||||
The /etc/debian_version file now says 13.x but /etc/issue still says 13.
|
||||
Is this ok?
|
||||
|
||||
A. Yes. The release managers asked me not to touch /etc/issue, as that's
|
||||
a file which is often customized by the user. The /etc/debian_version file,
|
||||
on the other side, is updated at every point release, so that the exact
|
||||
Debian version is shown when used by tools like reportbug.
|
||||
|
||||
* Other questions:
|
||||
|
||||
Q. After upgrading my system recently, I noticed that some files from
|
||||
base-files do not match the ones which are installed on a fresh install
|
||||
of squeeze. Should I not be warned about that?
|
||||
|
||||
A. Those files are configuration files, so they are completely under
|
||||
the control of the system admin. The files installed by base-files are
|
||||
just defaults. Changes in the default files are not important enough
|
||||
to warn the user, as it is also policy that prompting should be
|
||||
reduced to a minimum. This is also the reason they are not handled via
|
||||
dpkg's conffile mechanism.
|
||||
|
||||
In either case, if you want to "upgrade" those files, just look at the
|
||||
postinst for base-files (i.e. /var/lib/dpkg/info/base-files.postinst)
|
||||
and you will see how they are created and where their master copies are:
|
||||
|
||||
install_from_default /usr/share/base-files/dot.profile /root/.profile
|
||||
install_from_default /usr/share/base-files/dot.bashrc /root/.bashrc
|
||||
install_from_default /usr/share/base-files/profile /etc/profile
|
||||
install_from_default /usr/share/base-files/motd /etc/motd
|
||||
|
||||
So, if you want your system to be as similar as possible to a newly
|
||||
installed squeeze system, you might want to sync these files manually.
|
||||
|
||||
Note 1: Since base-files version 6.10, /etc/profile is automatically
|
||||
upgraded if it has not been modified from a previous default.
|
||||
|
||||
Note 2: The file /etc/nsswitch.conf has been moved to libc-bin.
|
||||
|
||||
|
||||
Q. Why isn't license "foo" included in common-licenses?
|
||||
|
||||
A. I delegate such decisions to the policy group. If you want to
|
||||
propose a new license you should make a policy proposal to modify the
|
||||
paragraph in policy saying "Packages distributed under the Apache
|
||||
license (version 2.0), the Artistic license, the GNU GPL (versions 1,
|
||||
2, or 3), the GNU LGPL (versions 2, 2.1, or 3), and the GNU FDL
|
||||
(versions 1.2 or 1.3) should refer to the corresponding files under
|
||||
/usr/share/common-licenses". The way of doing this is explained in the
|
||||
debian-policy package. As usual, you should always take a look at
|
||||
already reported bugs against debian-policy before submitting a new
|
||||
one.
|
||||
|
||||
Q. I upgraded from woody to sarge. Should my system be FHS-compliant now?
|
||||
|
||||
A. Achieving FHS compliance by upgrading would be tricky and prone to
|
||||
error in certain cases, so it is not a goal of base-files, nor it is
|
||||
planned to be. By default, some "mandatory" directories (like /opt,
|
||||
/srv or /media) are only created in the first install (performed by
|
||||
debootstrap), to keep the code as simple as possible, follow the
|
||||
principle of least surprise on upgrades, and also to give people the
|
||||
freedom to remove those directories without them being created again
|
||||
when base-files is upgraded. Therefore, if you are running any sort of
|
||||
compliance tests, you should do it on newly installed systems only.
|
||||
|
||||
Q. My system (when I do "dpkg -s base-files") shows /etc/profile as
|
||||
an "obsolete conffile". Is this ok?
|
||||
|
||||
A. Yes. The file was handled by base-files as a conffile in the dpkg sense
|
||||
in the past, so dpkg may consider the file as an obsolete conffile.
|
||||
There is currently not a way to tell dpkg to unregister it as a conffile
|
||||
without removing it, so the best approach for now is to do nothing about it.
|
||||
|
||||
Santiago Vila <sanvila@debian.org>
|
29
debian/README.FHS
vendored
Normal file
29
debian/README.FHS
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
The FHS standard specifies /var/mail as the mail spool, but it also says
|
||||
/var/mail may be a symbolic link to another directory, and there is no
|
||||
requirement to physically move the mail spool to this location.
|
||||
|
||||
Therefore, no package will move files around from one location to another
|
||||
on upgrades, and /var/mail will be the real directory only in newly
|
||||
installed systems.
|
||||
|
||||
Since /var/spool/mail has been in use for several years now, we need
|
||||
also to provide backwards compatibility for some time yet.
|
||||
|
||||
So, to summarize:
|
||||
|
||||
* New systems (Debian 2.2 or later) will have /var/mail as a real
|
||||
directory and /var/spool/mail as a symlink to it.
|
||||
|
||||
* Upgraded systems will have /var/spool/mail as the real directory
|
||||
and /var/mail as a symlink to it.
|
||||
|
||||
|
||||
People upgrading from previous releases who prefer the new physical
|
||||
location /var/mail over the old one may do the required changes in their
|
||||
systems if they do it with extreme care and know what they are doing. The
|
||||
packages in charge of ensuring that /var/mail exists (currently, libc6 and
|
||||
base-files) will not touch it at all if it already exists as a directory
|
||||
or a symlink.
|
||||
|
||||
|
||||
Santiago Vila <sanvila@debian.org>
|
38
debian/base-files.dirs
vendored
Normal file
38
debian/base-files.dirs
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
boot
|
||||
dev
|
||||
etc
|
||||
etc/default
|
||||
etc/dpkg/origins
|
||||
etc/profile.d
|
||||
etc/skel
|
||||
etc/update-motd.d
|
||||
home
|
||||
proc
|
||||
root
|
||||
run
|
||||
sys
|
||||
tmp
|
||||
usr
|
||||
usr/games
|
||||
usr/include
|
||||
usr/share
|
||||
usr/share/base-files
|
||||
usr/share/common-licenses
|
||||
usr/share/dict
|
||||
usr/share/info
|
||||
usr/share/lintian/overrides
|
||||
usr/share/man
|
||||
usr/share/misc
|
||||
usr/src
|
||||
var
|
||||
var/backups
|
||||
var/cache
|
||||
var/lib
|
||||
var/lib/dpkg
|
||||
var/lib/misc
|
||||
var/local
|
||||
var/lock
|
||||
var/log
|
||||
var/run
|
||||
var/spool
|
||||
var/tmp
|
2
debian/base-files.docs
vendored
Normal file
2
debian/base-files.docs
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
debian/README
|
||||
debian/README.FHS
|
4
debian/base-files.links
vendored
Normal file
4
debian/base-files.links
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
usr/share/doc/base-files/README usr/share/doc/base-files/FAQ
|
||||
usr/share/common-licenses/GFDL-1.3 usr/share/common-licenses/GFDL
|
||||
usr/share/common-licenses/LGPL-3 usr/share/common-licenses/LGPL
|
||||
usr/share/common-licenses/GPL-3 usr/share/common-licenses/GPL
|
43
debian/base-files.lintian-overrides
vendored
Normal file
43
debian/base-files.lintian-overrides
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
#
|
||||
# Permissions 0700 on /root are intentional as people expect
|
||||
# the /root directory to be more private than /home/* directories.
|
||||
#
|
||||
base-files: non-standard-dir-perm 0700 != 0755 [root/]
|
||||
#
|
||||
# The /etc/os-release symlink is relative on purpose to avoid breaking dracut.
|
||||
# See Bug #755394 for details.
|
||||
#
|
||||
base-files: relative-symlink ../usr/lib/os-release [etc/os-release]
|
||||
#
|
||||
# The purpose of having licenses here is precisely to allow
|
||||
# other packages to reference them.
|
||||
#
|
||||
base-files: extra-license-file [usr/share/common-licenses/Artistic]
|
||||
base-files: extra-license-file [usr/share/common-licenses/BSD]
|
||||
base-files: extra-license-file [usr/share/common-licenses/GPL-1]
|
||||
base-files: extra-license-file [usr/share/common-licenses/GPL-2]
|
||||
base-files: extra-license-file [usr/share/common-licenses/GPL-3]
|
||||
base-files: extra-license-file [usr/share/common-licenses/LGPL-2]
|
||||
base-files: extra-license-file [usr/share/common-licenses/LGPL-2.1]
|
||||
base-files: extra-license-file [usr/share/common-licenses/LGPL-3]
|
||||
#
|
||||
# These links really should be relative.
|
||||
#
|
||||
base-files: relative-symlink usr/bin [bin]
|
||||
base-files: relative-symlink usr/lib [lib]
|
||||
base-files: relative-symlink usr/lib64 [lib64]
|
||||
base-files: relative-symlink usr/libx32 [libx32]
|
||||
base-files: relative-symlink usr/sbin [sbin]
|
||||
#
|
||||
# We need these for the relevant architectures.
|
||||
#
|
||||
base-files: non-multi-arch-lib-dir [usr/lib64/]
|
||||
base-files: non-multi-arch-lib-dir [usr/libx32/]
|
||||
#
|
||||
# The following directories have become symlinks.
|
||||
#
|
||||
base-files: file-in-unusual-dir [bin]
|
||||
base-files: file-in-unusual-dir [lib64]
|
||||
base-files: file-in-unusual-dir [lib]
|
||||
base-files: file-in-unusual-dir [libx32]
|
||||
base-files: file-in-unusual-dir [sbin]
|
1649
debian/changelog
vendored
Normal file
1649
debian/changelog
vendored
Normal file
File diff suppressed because it is too large
Load diff
8
debian/check-md5sum-etc
vendored
Normal file
8
debian/check-md5sum-etc
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
file=$1
|
||||
md5=$(md5sum share/${file} | cut -f 1 -d " ")
|
||||
if ! grep -q "$md5" share/${file}.md5sums; then
|
||||
echo Error: share/${file}.md5sums is incomplete.
|
||||
echo Need to add "$md5" with current version.
|
||||
exit 1
|
||||
fi
|
1
debian/clean
vendored
Normal file
1
debian/clean
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
debian/triggers
|
25
debian/control
vendored
Normal file
25
debian/control
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
Source: base-files
|
||||
Section: admin
|
||||
Priority: required
|
||||
Maintainer: Santiago Vila <sanvila@debian.org>
|
||||
Standards-Version: 4.7.2
|
||||
Build-Depends: debhelper-compat (= 13), debhelper (>= 13.10~)
|
||||
Vcs-Git: https://salsa.debian.org/sanvila/base-files.git
|
||||
Vcs-Browser: https://salsa.debian.org/sanvila/base-files
|
||||
Rules-Requires-Root: no
|
||||
|
||||
Package: base-files
|
||||
Provides: base, usr-is-merged
|
||||
Architecture: any
|
||||
Pre-Depends: awk
|
||||
Depends: ${misc:Depends}
|
||||
Essential: yes
|
||||
Priority: required
|
||||
Replaces: base, miscutils, dpkg (<= 1.15.0)
|
||||
Breaks: debian-security-support (<< 2019.04.25), initscripts (<< 2.88dsf-13.3), sendfile (<< 2.1b.20080616-5.2~)
|
||||
Multi-Arch: foreign
|
||||
Description: Debian base system miscellaneous files
|
||||
This package contains the basic filesystem hierarchy of a Debian system, and
|
||||
several important miscellaneous files, such as /etc/debian_version,
|
||||
/etc/host.conf, /etc/issue, /etc/motd, /etc/profile, and others,
|
||||
and the text of several common licenses in use on Debian systems.
|
37
debian/copyright
vendored
Normal file
37
debian/copyright
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Comment:
|
||||
This is the Debian prepackaged version of the Debian Base System
|
||||
Miscellaneous files. These files were written by Ian Murdock
|
||||
<imurdock@debian.org> and Bruce Perens <bruce@pixar.com>.
|
||||
.
|
||||
This package was first put together by Bruce Perens <Bruce@Pixar.com>,
|
||||
from his own sources.
|
||||
|
||||
Files: *
|
||||
Copyright: (C) 1995-2011 Software in the Public Interest
|
||||
License: GPL-2+
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL'.
|
||||
Comment:
|
||||
The Artistic License in /usr/share/common-licenses is the one coming
|
||||
from Perl and its SPDX name is "Artistic License 1.0 (Perl)".
|
||||
|
||||
Files: licenses/GFDL-*
|
||||
licenses/GPL-*
|
||||
licenses/LGPL-*
|
||||
Copyright: 1989-2008 Free Software Foundation, Inc.
|
||||
License: verbatim
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
Comment:
|
||||
The GNU licenses in /usr/share/common-licenses were taken from ftp.gnu.org.
|
4
debian/gbp.conf
vendored
Normal file
4
debian/gbp.conf
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
[DEFAULT]
|
||||
upstream-branch = master
|
||||
debian-branch = master
|
||||
debian-tag = %(version)s
|
133
debian/postinst
vendored
Normal file
133
debian/postinst
vendored
Normal file
|
@ -0,0 +1,133 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
ensure_file_owner_mode() {
|
||||
if [ ! -f "$DPKG_ROOT$1" ]; then
|
||||
: > "$DPKG_ROOT$1"
|
||||
fi
|
||||
chown "$2" "$DPKG_ROOT$1"
|
||||
chmod "$3" "$DPKG_ROOT$1"
|
||||
}
|
||||
|
||||
install_local_dir() {
|
||||
if [ ! -d "$DPKG_ROOT$1" ]; then
|
||||
mkdir -p "$DPKG_ROOT$1"
|
||||
fi
|
||||
if [ -f "$DPKG_ROOT/etc/staff-group-for-usr-local" ]; then
|
||||
chown root:staff "$DPKG_ROOT$1" 2>/dev/null || true
|
||||
chmod 2775 "$DPKG_ROOT$1" 2> /dev/null || true
|
||||
fi
|
||||
}
|
||||
|
||||
install_from_default() {
|
||||
if [ ! -f "$DPKG_ROOT$2" ]; then
|
||||
cp -p "$DPKG_ROOT/usr/share/base-files/$1" "$DPKG_ROOT$2"
|
||||
fi
|
||||
}
|
||||
|
||||
install_directory() {
|
||||
if [ ! -d "$DPKG_ROOT/$1" ]; then
|
||||
mkdir "$DPKG_ROOT/$1"
|
||||
chown "root:$3" "$DPKG_ROOT/$1"
|
||||
chmod "$2" "$DPKG_ROOT/$1"
|
||||
fi
|
||||
}
|
||||
|
||||
migrate_directory() {
|
||||
if [ ! -L "$DPKG_ROOT$1" ]; then
|
||||
rmdir "$DPKG_ROOT$1"
|
||||
ln -s "$2" "$DPKG_ROOT$1"
|
||||
fi
|
||||
}
|
||||
|
||||
update_to_current_default() {
|
||||
if [ -f "$2" ]; then
|
||||
md5=$(md5sum "$2" | cut -f 1 -d " ")
|
||||
if grep -q "$md5" "/usr/share/base-files/$1.md5sums"; then
|
||||
if ! cmp -s "/usr/share/base-files/$1" "$2"; then
|
||||
cp -p "/usr/share/base-files/$1" "$2"
|
||||
echo Updating $2 to current default.
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
if [ ! -e "$DPKG_ROOT/etc/dpkg/origins/default" ]; then
|
||||
if [ -e "$DPKG_ROOT/etc/dpkg/origins/#VENDORFILE#" ]; then
|
||||
ln -sf #VENDORFILE# "$DPKG_ROOT/etc/dpkg/origins/default"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$1" = "configure" ] && [ "$2" = "" ]; then
|
||||
install_from_default dot.profile /root/.profile
|
||||
install_from_default dot.bashrc /root/.bashrc
|
||||
install_from_default profile /etc/profile
|
||||
install_from_default motd /etc/motd
|
||||
install_directory mnt 755 root
|
||||
install_directory srv 755 root
|
||||
install_directory opt 755 root
|
||||
install_directory etc/opt 755 root
|
||||
install_directory var/opt 755 root
|
||||
install_directory media 755 root
|
||||
install_directory var/mail 2775 mail
|
||||
if [ ! -L "$DPKG_ROOT/var/spool/mail" ]; then
|
||||
ln -s ../mail "$DPKG_ROOT/var/spool/mail"
|
||||
fi
|
||||
install_directory run/lock 1777 root
|
||||
migrate_directory /var/run /run
|
||||
migrate_directory /var/lock /run/lock
|
||||
|
||||
install_local_dir /usr/local
|
||||
install_local_dir /usr/local/share
|
||||
install_local_dir /usr/local/share/man
|
||||
install_local_dir /usr/local/bin
|
||||
install_local_dir /usr/local/games
|
||||
install_local_dir /usr/local/lib
|
||||
install_local_dir /usr/local/libexec
|
||||
install_local_dir /usr/local/include
|
||||
install_local_dir /usr/local/sbin
|
||||
install_local_dir /usr/local/src
|
||||
install_local_dir /usr/local/etc
|
||||
ln -sf share/man "$DPKG_ROOT/usr/local/man"
|
||||
|
||||
ensure_file_owner_mode /var/log/wtmp root:utmp 664
|
||||
ensure_file_owner_mode /var/log/btmp root:utmp 660
|
||||
ensure_file_owner_mode /var/log/lastlog root:utmp 664
|
||||
fi
|
||||
|
||||
if [ -d "$DPKG_ROOT/usr/share/info" ] && [ ! -f "$DPKG_ROOT/usr/info/dir" ] && [ ! -f "$DPKG_ROOT/usr/share/info/dir" ]; then
|
||||
install_from_default info.dir /usr/share/info/dir
|
||||
chmod 644 $DPKG_ROOT/usr/share/info/dir
|
||||
fi
|
||||
|
||||
if [ "$1" = "configure" ] && [ "$2" != "" ]; then
|
||||
update_to_current_default profile /etc/profile
|
||||
update_to_current_default dot.profile /root/.profile
|
||||
if dpkg --compare-versions "$2" lt-nl "7.7"; then
|
||||
install_directory mnt 755 root
|
||||
fi
|
||||
fi
|
||||
|
||||
rtlddir="#USR_MERGE_RTLDLIB#"
|
||||
if [ "$1" = "configure" ] && [ -n "$rtlddir" ]; then
|
||||
# Remove temporary DEP17 M4 diversion added by glibc.
|
||||
dpkg-divert --quiet --package base-files --remove --no-rename --divert "/.$rtlddir.usr-is-merged" "/$rtlddir"
|
||||
fi
|
||||
|
||||
if [ "$1" = "configure" ] || [ "$1" = "triggered" ]; then
|
||||
for d in #USR_MERGE_MULTILIB#; do
|
||||
if [ -d "$DPKG_ROOT/usr/$d" ]; then
|
||||
if [ -L "$DPKG_ROOT/$d" ]; then
|
||||
:
|
||||
elif [ -d "$DPKG_ROOT/$d" ]; then
|
||||
echo "Warning: /$d is not a symlink, but should be." 1>&2
|
||||
else
|
||||
ln -s "usr/$d" "$DPKG_ROOT/$d"
|
||||
fi
|
||||
elif [ -L "$DPKG_ROOT/$d" ]; then
|
||||
rm "$DPKG_ROOT/$d"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
11
debian/postrm
vendored
Normal file
11
debian/postrm
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ "$1" = "remove" ]; then
|
||||
for d in #USR_MERGE_MULTILIB#; do
|
||||
# Remove DEP17 M4 protective diversions
|
||||
dpkg-divert --quiet --package base-files --remove --no-rename --divert "/.$d.usr-is-merged" "/$d"
|
||||
done
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
55
debian/preinst
vendored
Normal file
55
debian/preinst
vendored
Normal file
|
@ -0,0 +1,55 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
|
||||
msg=
|
||||
for d in bin lib lib32 lib64 libo32 libx32 sbin; do
|
||||
if [ -L "$DPKG_ROOT/$d" ]; then
|
||||
target=$(readlink "$DPKG_ROOT/$d")
|
||||
if [ "$target" != "usr/$d" ]; then
|
||||
if [ "$d" = lib64 ] && [ "$target" = "usr/lib/#DEB_HOST_MULTIARCH#" ]; then
|
||||
# Work around https://github.com/systemd/systemd/issues/33919
|
||||
echo "Fixing bad /$d symbolic link created by systemd-nspawn."
|
||||
if [ -d "$DPKG_ROOT/usr/$d" ]; then
|
||||
ln -sf "usr/$d" "$DPKG_ROOT/$d"
|
||||
else
|
||||
rm "$DPKG_ROOT/$d"
|
||||
fi
|
||||
else
|
||||
msg="/$d is a symbolic link and not pointing at usr/$d exactly"
|
||||
fi
|
||||
elif [ ! -d "$DPKG_ROOT/usr/$d" ]; then
|
||||
msg="/$d is a dangling symbolic link"
|
||||
fi
|
||||
msg2="This is an unexpected situation. Cannot proceed with the upgrade"
|
||||
elif [ -d "$DPKG_ROOT/$d" ]; then
|
||||
msg="/$d is a directory, but should be a symbolic link"
|
||||
msg2="Please install the usrmerge package to convert this system to merged-/usr"
|
||||
fi
|
||||
if [ -n "$msg" ]; then
|
||||
cat <<EOF
|
||||
|
||||
|
||||
******************************************************************************
|
||||
*
|
||||
* The base-files package cannot be installed because
|
||||
* $msg.
|
||||
*
|
||||
* $msg2.
|
||||
*
|
||||
* For more information please read https://wiki.debian.org/UsrMerge.
|
||||
*
|
||||
******************************************************************************
|
||||
|
||||
|
||||
EOF
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
for d in #USR_MERGE_MULTILIB#; do
|
||||
# Install DEP17 M4 protective diversions
|
||||
dpkg-divert --quiet --package base-files --add --no-rename --divert "/.$d.usr-is-merged" "/$d"
|
||||
done
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
83
debian/rules
vendored
Executable file
83
debian/rules
vendored
Executable file
|
@ -0,0 +1,83 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
include /usr/share/dpkg/architecture.mk
|
||||
|
||||
OSNAME = "GNU/`uname | sed -e 's/GNU\///'`"
|
||||
ifeq ($(DEB_HOST_GNU_SYSTEM),linux)
|
||||
OSNAME=GNU/Linux
|
||||
endif
|
||||
ifeq ($(DEB_HOST_GNU_SYSTEM),gnu)
|
||||
OSNAME=GNU/Hurd
|
||||
endif
|
||||
|
||||
VENDORFILE = debian
|
||||
DESTDIR = debian/base-files
|
||||
|
||||
ifneq (,$(filter $(DEB_HOST_ARCH),amd64 loong64 mips64el ppc64 ppc64el sparc64))
|
||||
USR_MERGE_RTLDLIB = lib64
|
||||
else ifneq (,$(filter $(DEB_HOST_ARCH),x32))
|
||||
USR_MERGE_RTLDLIB = libx32
|
||||
endif
|
||||
USR_MERGE = bin lib sbin $(USR_MERGE_RTLDLIB)
|
||||
USR_MERGE_MULTILIB = $(filter-out $(USR_MERGE),lib32 lib64 libo32 libx32)
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
execute_after_dh_clean:
|
||||
sh debian/timestamps
|
||||
|
||||
override_dh_auto_build:
|
||||
sh debian/check-md5sum-etc profile
|
||||
sh debian/check-md5sum-etc dot.profile
|
||||
set -e; { \
|
||||
echo "# Triggers for creating multilib aliasing symlinks on demand"; \
|
||||
for d in $(USR_MERGE_MULTILIB); do \
|
||||
echo "interest-noawait /usr/$$d"; \
|
||||
done; \
|
||||
} > debian/triggers
|
||||
|
||||
execute_after_dh_installdirs:
|
||||
dh_installdirs $(foreach d,$(USR_MERGE),usr/$(d))
|
||||
|
||||
override_dh_auto_install:
|
||||
install -p -m 644 etc/* $(DESTDIR)/etc
|
||||
install -p -m 755 motd/* $(DESTDIR)/etc/update-motd.d
|
||||
install -p -m 644 licenses/* $(DESTDIR)/usr/share/common-licenses
|
||||
install -p -m 644 origins/* $(DESTDIR)/etc/dpkg/origins
|
||||
install -p -m 644 share/* $(DESTDIR)/usr/share/base-files
|
||||
ifeq ($(DEB_HOST_GNU_SYSTEM),gnu)
|
||||
rmdir $(DESTDIR)/sys
|
||||
endif
|
||||
sed -e "s&#OSNAME#&$(OSNAME)&g" share/motd > $(DESTDIR)/usr/share/base-files/motd
|
||||
sed -e "s&#OSNAME#&$(OSNAME)&g" share/info.dir > $(DESTDIR)/usr/share/base-files/info.dir
|
||||
sed -e "s&#OSNAME#&$(OSNAME)&g" etc/issue > $(DESTDIR)/etc/issue
|
||||
sed -e "s&#OSNAME#&$(OSNAME)&g" etc/issue.net > $(DESTDIR)/etc/issue.net
|
||||
sed -e "s&#OSNAME#&$(OSNAME)&g" etc/os-release > $(DESTDIR)/etc/os-release
|
||||
mv $(DESTDIR)/etc/os-release $(DESTDIR)/usr/lib/os-release
|
||||
ln -s ../usr/lib/os-release $(DESTDIR)/etc/os-release
|
||||
|
||||
override_dh_installchangelogs:
|
||||
dh_installchangelogs --no-trim
|
||||
|
||||
override_dh_link:
|
||||
dh_link -X os-release
|
||||
# We want these links to be relative, so we cannot use dh_link.
|
||||
set -e; for d in $(USR_MERGE); do \
|
||||
ln -s usr/$$d debian/base-files/$$d; \
|
||||
done
|
||||
|
||||
override_dh_compress:
|
||||
dh_compress -X README
|
||||
|
||||
override_dh_fixperms:
|
||||
dh_fixperms
|
||||
cd debian/base-files && chmod 755 `find . -type d`
|
||||
cd debian/base-files && chmod 1777 `cat ../1777-dirs`
|
||||
cd debian/base-files && chmod 700 root
|
||||
|
||||
override_dh_installdeb:
|
||||
dh_installdeb \
|
||||
'-DVENDORFILE=$(VENDORFILE)' \
|
||||
'-DUSR_MERGE_MULTILIB=$(USR_MERGE_MULTILIB)' \
|
||||
'-DUSR_MERGE_RTLDLIB=$(USR_MERGE_RTLDLIB)'
|
3
debian/salsa-ci.yml
vendored
Normal file
3
debian/salsa-ci.yml
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
include:
|
||||
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
3.0 (native)
|
21
debian/timestamps
vendored
Normal file
21
debian/timestamps
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
BUILD_DATE=$(dpkg-parsechangelog -S Date)
|
||||
touch -d "${BUILD_DATE}" etc/*
|
||||
touch -d "${BUILD_DATE}" motd/*
|
||||
touch -d "${BUILD_DATE}" origins/*
|
||||
touch -d "${BUILD_DATE}" share/*
|
||||
touch -d "1996-12-16 02:58:50 UTC" licenses/Artistic
|
||||
touch -d "1999-08-26 12:06:20 UTC" licenses/BSD
|
||||
touch -d "2004-12-19 20:30:25 UTC" licenses/Apache-2.0
|
||||
touch -d "2017-04-03 11:00:00 UTC" licenses/MPL-1.1
|
||||
touch -d "2017-04-03 20:00:00 UTC" licenses/MPL-2.0
|
||||
touch -d "2017-04-25 22:26:15 UTC" licenses/CC0-1.0
|
||||
touch -d "2017-09-30 07:14:21 UTC" licenses/GPL-3
|
||||
touch -d "2017-09-30 07:14:21 UTC" licenses/LGPL-3
|
||||
touch -d "2022-02-10 06:14:38 UTC" licenses/GFDL-1.3
|
||||
touch -d "2024-09-18 13:56:22 UTC" licenses/GFDL-1.2
|
||||
touch -d "2024-09-18 14:33:26 UTC" licenses/GPL-1
|
||||
touch -d "2024-09-18 14:33:27 UTC" licenses/GPL-2
|
||||
touch -d "2024-09-18 14:33:28 UTC" licenses/LGPL-2
|
||||
touch -d "2024-09-18 14:33:29 UTC" licenses/LGPL-2.1
|
Loading…
Add table
Add a link
Reference in a new issue