Bug#1022126: New mainline kernel is out fixes for example 1022126 bug

2023-02-20 Thread vmxevilstar
Hello dear mantainers,

I have stopped sending kernel packages as per your request (you defined
it spamming).
For who might be interested I am making the 6.2.0 kernel amd64 packages
myself (the 6.2.0 kernel announcement is not yet
on https://tracker.debian.org/pkg/linux).
Since this version fixes bug 1022126  (and, I am sure others),
Since all the CVE announcements on the site I read are about past
kernels..
If you would like I can send the packages to debian mentor or wherever
is most convenient for you, for testing and review.
Sorry for my past mistakes (still have to fully comprehend where was I
failing, since I was following the manuals, including the source
etc, I'd like you to be more clear for what concerns where just
following your procedures was failing).


Thanks
Renato Gallo


Bug#1029263: realtek: stability problems with realtek gigabit ethernet on stable and rc kernels

2023-01-30 Thread vmxevilstar
Dear Maintainers,

I am using this crude workaround daily and it seems to work (as per
upstream advice)

cat /etc/systemd/system/realtek-bug.service 
[Unit]
Description=Realtek Bugfix
After=network.target

[Service]
Type=oneshot
ExecStart=/usr/bin/bash -c '/usr/bin/echo 0 >
/sys/class/net/enp2s0/device/link/l1_1_aspm'
ExecStart=/usr/bin/sleep 1
ExecStart=/usr/bin/bash -c '/usr/bin/echo 0 >
/sys/class/net/enp2s0/device/link/l1_aspm'

[Install]
WantedBy=network.target

obviously each user has to find out the /sys path to his/her realtek
network device.


On Fri, 2023-01-20 at 14:15 +0100, xevilstar wrote:
> Package: linux-image-6.2.0-rc4
> Version: 6.2.0-rc4-2
> Severity: severe
> File: realtek
> X-Debbugs-Cc: vmxevils...@gmail.com
> 
> Dear Mantainers,
> 
> I am having an issue with my ethernet card.
> It works when the system boots but after around a couple of hours it
> disconnects.
> I tried different ways to get it working without having to reboot but
> nothing else seemed to work.
> Even rebooting doesn't solve the problem since again, after a couple
> of hours, it stops working again.
> I have googled around and found that some people had this same
> problem on older kernels but no solution seemed to apply to this rc
> nor latest stable kernel versions.
> I am probably missing something here.
> The issue happened also with recent stable 6.1.7 and rc kernel
> versions.
> I am actually testing the latest 6.2-rc4 version.
> 
> Following are some data I think might be useful but if you feel I
> neglected to give enough informations and you need more please just
> ask me.
> 
> Here some informations about my system :
> uname -a
> Linux ghost 6.2.0-rc4 #2 SMP PREEMPT_DYNAMIC Tue Jan 17 13:35:46 CET
> 2023 x86_64 GNU/Linux
> 
> gcc --version
> gcc (Debian 12.2.0-14) 12.2.0
> Copyright (C) 2022 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There
> is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
> 
> 
> /usr/src# lspci|grep -i net
> 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125
> 2.5GbE Controller (rev 05)
> 
> description: Ethernet interface
> product: RTL8125 2.5GbE Controller
> vendor: Realtek Semiconductor Co., Ltd.
> physical id: 0
> bus info: pci@:02:00.0
> logical name: enp2s0
> version: ff
> serial: b0:25:aa:49:a5:3a
> size: 1Gbit/s
> capacity: 1Gbit/s
> width: 32 bits
> clock: 66MHz
> capabilities: bus_master vga_palette cap_list ethernet physical tp
> mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
> configuration: autonegotiation=on broadcast=yes driver=r8169
> driverversion=6.2.0-rc4 duplex=full firmware=rtl8125b-2_0.0.2
> 07/13/20 latency=255 link=yes maxlatency=255 mingnt=255 multicast=yes
> port=twisted pair speed=1Gbit/s
> 
> 
> 
> lsmod|grep r8169
> r8169 110592  0
> mdio_devres    16384  1 r8169
> libphy    200704  3 r8169,mdio_devres,realtek
> 
> the firmware version I am using is linux-firmware-20221214.tar.gz
> 
> 
> Here you can find what happens (dmesg -wT)
> [Fri Jan 20 11:04:32 2023] userif-3: sent link up event.
> 
> [Fri Jan 20 13:19:41 2023] r8169 :02:00.0 enp2s0:
> rtl_chipcmd_cond == 1 (loop: 100, delay: 100).
> [Fri Jan 20 13:19:41 2023] r8169 :02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:19:41 2023] r8169 :02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:19:41 2023] r8169 :02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:19:41 2023] r8169 :02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:19:41 2023] r8169 :02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:19:41 2023] r8169 :02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:19:41 2023] r8169 :02:00.0 enp2s0:
> rtl_mac_ocp_e00e_cond == 1 (loop: 10, delay: 1000).
> [Fri Jan 20 13:20:17 2023] r8169 :02:00.0 enp2s0:
> rtl_chipcmd_cond == 1 (loop: 100, delay: 100).
> [Fri Jan 20 13:20:17 2023] r8169 :02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:20:17 2023] r8169 :02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:20:17 2023] r8169 :02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:20:17 2023] r8169 :02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:20:17 2023] r8169 :02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:20:17 2023] r8169 :02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:20:18 2023] r8169 :02:00.0 enp2s0:
> rtl_mac_ocp_e00e_cond == 1 (loop: 10, delay: 1000).
> 
> I would love to provide a patch of any kind but I am afraid I don't
> have enough programming skills.
> 
> Thanks in advance for your time.
> 
> -- System Information:
> 

Bug#1028538: linux-source: linux-6.1.5# dpkg-buildpackage -j`nproc` -us -uc fails at docs for deprecated sphinx module

2023-01-12 Thread vmxevilstar

Re: [sphinx-doc/sphinx] ModuleNotFoundError: No module named
'sphinx.util.pycompat' (Issue #11125)

The module was deprecated at 4.0 and removed at 6.0,
see https://github.com/sphinx-doc/sphinx/pull/7316/files for
deprecation. See
also https://www.sphinx-doc.org/en/master/search.html?q=pycompat. The
import attempt does not come from Sphinx code.


Bug#1028538: linux-source: linux-6.1.5# dpkg-buildpackage -j`nproc` -us -uc fails at docs

2023-01-12 Thread vmxevilstar
pip install -U Sphinx
Requirement already satisfied: Sphinx in
/usr/local/lib/python3.11/dist-packages (6.1.3)
Requirement already satisfied: Pygments>=2.13 in /usr/lib/python3/dist-
packages (from Sphinx) (2.14.0)
Requirement already satisfied: packaging>=21.0 in
/usr/lib/python3/dist-packages (from Sphinx) (22.0)
Requirement already satisfied: sphinxcontrib-applehelp in
/usr/lib/python3/dist-packages (from Sphinx) (1.0.2.dev0)
Requirement already satisfied: requests>=2.25.0 in
/usr/lib/python3/dist-packages (from Sphinx) (2.28.1)
Requirement already satisfied: docutils<0.20,>=0.18 in
/usr/lib/python3/dist-packages (from Sphinx) (0.19)
Requirement already satisfied: snowballstemmer>=2.0 in
/usr/lib/python3/dist-packages (from Sphinx) (2.2.0)
Requirement already satisfied: alabaster<0.8,>=0.7 in
/usr/lib/python3/dist-packages (from Sphinx) (0.7.12)
Requirement already satisfied: babel>=2.9 in /usr/lib/python3/dist-
packages (from Sphinx) (2.10.3)
Requirement already satisfied: sphinxcontrib-htmlhelp>=2.0.0 in
/usr/local/lib/python3.11/dist-packages (from Sphinx) (2.0.0)
Requirement already satisfied: imagesize>=1.3 in /usr/lib/python3/dist-
packages (from Sphinx) (1.4.1)
Requirement already satisfied: sphinxcontrib-serializinghtml>=1.1.5 in
/usr/lib/python3/dist-packages (from Sphinx) (1.1.5)
Requirement already satisfied: sphinxcontrib-devhelp in
/usr/lib/python3/dist-packages (from Sphinx) (1.0.2)
Requirement already satisfied: sphinxcontrib-qthelp in
/usr/lib/python3/dist-packages (from Sphinx) (1.0.3)
Requirement already satisfied: Jinja2>=3.0 in /usr/lib/python3/dist-
packages (from Sphinx) (3.0.3)
Requirement already satisfied: sphinxcontrib-jsmath in
/usr/lib/python3/dist-packages (from Sphinx) (1.0.1.dev0)



Bug#1028538: linux-source: linux-6.1.5# dpkg-buildpackage -j`nproc` -us -uc fails at docs

2023-01-12 Thread vmxevilstar
tried  pip3 install -U sphinx
Requirement already satisfied: sphinx in
/usr/local/lib/python3.11/dist-packages (1.4.1)
Collecting sphinx
Downloading sphinx-6.1.3-py3-none-any.whl (3.0 MB)
 3.0/3.0 MB 9.6 MB/s eta
0:00:00
Requirement already satisfied: Jinja2>=3.0 in /usr/lib/python3/dist-
packages (from sphinx) (3.0.3)
Requirement already satisfied: alabaster<0.8,>=0.7 in
/usr/lib/python3/dist-packages (from sphinx) (0.7.12)
Requirement already satisfied: packaging>=21.0 in
/usr/lib/python3/dist-packages (from sphinx) (22.0)
Requirement already satisfied: sphinxcontrib-jsmath in
/usr/lib/python3/dist-packages (from sphinx) (1.0.1.dev0)
Requirement already satisfied: requests>=2.25.0 in
/usr/lib/python3/dist-packages (from sphinx) (2.28.1)
Requirement already satisfied: sphinxcontrib-serializinghtml>=1.1.5 in
/usr/lib/python3/dist-packages (from sphinx) (1.1.5)
Requirement already satisfied: imagesize>=1.3 in /usr/lib/python3/dist-
packages (from sphinx) (1.4.1)
Requirement already satisfied: sphinxcontrib-qthelp in
/usr/lib/python3/dist-packages (from sphinx) (1.0.3)
Requirement already satisfied: sphinxcontrib-devhelp in
/usr/lib/python3/dist-packages (from sphinx) (1.0.2)
Requirement already satisfied: snowballstemmer>=2.0 in
/usr/lib/python3/dist-packages (from sphinx) (2.2.0)
Collecting sphinxcontrib-htmlhelp>=2.0.0
Downloading sphinxcontrib_htmlhelp-2.0.0-py2.py3-none-any.whl (100 kB)
 100.5/100.5 kB 9.4 MB/s eta
0:00:00
Requirement already satisfied: Pygments>=2.13 in /usr/lib/python3/dist-
packages (from sphinx) (2.14.0)
Requirement already satisfied: docutils<0.20,>=0.18 in
/usr/lib/python3/dist-packages (from sphinx) (0.19)
Requirement already satisfied: babel>=2.9 in /usr/lib/python3/dist-
packages (from sphinx) (2.10.3)
Requirement already satisfied: sphinxcontrib-applehelp in
/usr/lib/python3/dist-packages (from sphinx) (1.0.2.dev0)
Installing collected packages: sphinxcontrib-htmlhelp, sphinx
Attempting uninstall: sphinxcontrib-htmlhelp
Found existing installation: sphinxcontrib-htmlhelp 1.0.4.dev0
Not uninstalling sphinxcontrib-htmlhelp at /usr/lib/python3/dist-
packages, outside environment /usr
Can't uninstall 'sphinxcontrib-htmlhelp'. No files were found to
uninstall.
Attempting uninstall: sphinx
Found existing installation: Sphinx 1.4.1
Uninstalling Sphinx-1.4.1:
Successfully uninstalled Sphinx-1.4.1
Successfully installed sphinx-6.1.3 sphinxcontrib-htmlhelp-2.0.0
WARNING: Running pip as the 'root' user can result in broken
permissions and conflicting behaviour with the system package manager.
It is recommended to use a virtual environment instead:
https://pip.pypa.io/warnings/venv


now I get

root@ghost:/usr/src/kernel/linux-6.1.5/debian/build/build-doc# sphinx-
build --version
sphinx-build 6.1.3



but still 

linux-6.1.5# dpkg-buildpackage -j`nproc` -us -uc
dpkg-buildpackage: info: source package linux
dpkg-buildpackage: info: source version 6.1.5-1
dpkg-buildpackage: info: source distribution UNRELEASED
dpkg-buildpackage: info: source changed by Renato Gallo

dpkg-buildpackage: info: host architecture amd64
dpkg-source --before-build .
dpkg-source: info: using options from linux-6.1.5/debian/source/local-
options: --abort-on-upstream-changes
debian/rules clean
md5sum --check debian/control.md5sum --status || \
/usr/bin/make -f debian/rules debian/control-real
dh_testdir
rm -rf debian/build debian/stamps debian/lib/python/debian_linux/*.pyc
debian/lib/python/debian_linux/__pycache__ $(find debian -maxdepth 1 -
type d -name 'linux-*') debian/*-modules-*-di* debian/kernel-image-*-
di* debian/*-tmp debian/*.substvars
dh_clean
dpkg-source -b .
dpkg-source: info: using options from linux-6.1.5/debian/source/local-
options: --abort-on-upstream-changes
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: warning: upstream signing key but no upstream tarball
signature
dpkg-source: info: building linux using existing
./linux_6.1.5.orig.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: building linux in linux_6.1.5-1.debian.tar.xz
dpkg-source: info: building linux in linux_6.1.5-1.dsc
debian/rules binary
mkdir -p debian/build
printf >debian/build/version-info 'Source: %s\nVersion: %s\n' linux
6.1.5-1
md5sum --check debian/control.md5sum --status || \
/usr/bin/make -f debian/rules debian/control-real
dh_testdir
/usr/bin/make -f debian/rules.gen build-indep
make[1]: Entering directory '/usr/src/kernel/linux-6.1.5'
/usr/bin/make -f debian/rules.real build_headers-common ABINAME='6.1.0-
0' ALL_KERNEL_ARCHES='alpha arm arm64 ia64 m68k mips parisc powerpc
riscv s390 sh sparc x86' DESTDIR='/usr/src/kernel/linux-
6.1.5/debian/linux-headers-6.1.0-0-common' DH_OPTIONS='-plinux-headers-
6.1.0-0-common' FEATURESET='none' LOCALVERSION='' PACKAGE_NAME='linux-
headers-6.1.0-0-common' SOURCEVERSION='6.1.5-1' SOURCE_BASENAME='linux'
SOURCE_SUFFIX='' UPSTREAMVERSION='6.1' 

Bug#1028538: linux-source: linux-6.1.5# dpkg-buildpackage -j`nproc` -us -uc fails at docs

2023-01-12 Thread vmxevilstar
sphinx-build --version
Traceback (most recent call last):
File "/usr/local/bin/sphinx-build", line 8, in 
sys.exit(main())
^^
File "/usr/local/lib/python3.11/dist-packages/sphinx/__init__.py", line
51, in main
sys.exit(build_main(argv))

File "/usr/local/lib/python3.11/dist-packages/sphinx/__init__.py", line
61, in build_main
from sphinx import cmdline
File "/usr/local/lib/python3.11/dist-packages/sphinx/cmdline.py", line
23, in 
from sphinx.application import Sphinx
File "/usr/local/lib/python3.11/dist-packages/sphinx/application.py",
line 35, in 
from sphinx.domains import ObjType, BUILTIN_DOMAINS
File "/usr/local/lib/python3.11/dist-
packages/sphinx/domains/__init__.py", line 279, in 
from sphinx.domains.cpp import CPPDomain # noqa

File "/usr/local/lib/python3.11/dist-packages/sphinx/domains/cpp.py",
line 263, in 
_whitespace_re = re.compile(r'\s+(?u)')
^^
File "/usr/lib/python3.11/re/__init__.py", line 227, in compile
return _compile(pattern, flags)

File "/usr/lib/python3.11/re/__init__.py", line 294, in _compile
p = _compiler.compile(pattern, flags)
^
File "/usr/lib/python3.11/re/_compiler.py", line 743, in compile
p = _parser.parse(p, flags)
^^^
File "/usr/lib/python3.11/re/_parser.py", line 980, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
^^
File "/usr/lib/python3.11/re/_parser.py", line 455, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
^^
File "/usr/lib/python3.11/re/_parser.py", line 841, in _parse
raise source.error('global flags not at the start '
re.error: global flags not at the start of the expression at position 3



Bug#1028538: linux-source: linux-6.1.5# dpkg-buildpackage -j`nproc` -us -uc fails at docs

2023-01-12 Thread vmxevilstar
scripts/sphinx-pre-install  seems to fail here

sub get_sphinx_version($)
{
my $cmd = shift;
my $ver;

open IN, "$cmd --version 2>&1 |";
while () {
if (m/^\s*sphinx-build\s+([\d\.]+)((\+\/[\da-f]+)|(b\d+))?$/) {
$ver=$1;
last;
}
# Sphinx 1.2.x uses a different format
if (m/^\s*Sphinx.*\s+([\d\.]+)$/) {
$ver=$1;
last;
}
}
close IN;
return $ver;
}

sub check_sphinx()
{
my $default_version;

open IN, $conf or die "Can't open $conf";
while () {
if (m/^\s*needs_sphinx\s*=\s*[\'\"]([\d\.]+)[\'\"]/) {
$min_version=$1;
last;
}
}
close IN;

die "Can't get needs_sphinx version from $conf" if (!$min_version);

open IN, $requirement_file or die "Can't open $requirement_file";
while () {
if (m/^\s*Sphinx\s*==\s*([\d\.]+)$/) {
$default_version=$1;
last;
}
}
close IN;

die "Can't get default sphinx version from $requirement_file" if
(!$default_version);

$virtenv_dir = $virtenv_prefix . $default_version;

my $sphinx = get_sphinx_fname();
if ($sphinx eq "") {
$need_sphinx = 1;
return;
}

$cur_version = get_sphinx_version($sphinx);
die ("$sphinx returned an error") if (!$cur_version);




On Thu, 2023-01-12 at 15:06 +0100, xevilstar wrote:
> Package: linux-source
> Version: 6.1.5-1
> Severity: important
> X-Debbugs-Cc: vmxevils...@gmail.com
> 
> Dear Maintainer,
> 
> kernel version 6.1.5
> I have downloaded the new stable kernel version and I wanted to
> contribute trying at my best 
> to upload it to mentors
> I have cloned the git version of the debian/ files and put it inside
> the kernel source directory
> from inside the kernel source directory
> I have added the new version in debian/changelog then 
> I have run the debian/bin/genorig.py
> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
>  then
> I have run debian/rules orig
> no errors, but then 
> 
> dpkg-buildpackage -j`nproc` -us -uc
> dpkg-buildpackage: info: source package linux
> dpkg-buildpackage: info: source version 6.1.5-1
> dpkg-buildpackage: info: source distribution UNRELEASED
> dpkg-buildpackage: info: source changed by Renato Gallo
> 
> dpkg-buildpackage: info: host architecture amd64
>  dpkg-source --before-build .
> dpkg-source: info: using options from linux-
> 6.1.5/debian/source/local-options: --abort-on-upstream-changes
>  debian/rules clean
> md5sum --check debian/control.md5sum --status || \
> /usr/bin/make -f debian/rules debian/control-real
> dh_testdir
> rm -rf debian/build debian/stamps
> debian/lib/python/debian_linux/*.pyc
> debian/lib/python/debian_linux/__pycache__ $(find debian -maxdepth 1
> -type d -name 'linux-*') debian/*-modules-*-di* debian/kernel-image-
> *-di* debian/*-tmp debian/*.substvars
> dh_clean
>  dpkg-source -b .
> dpkg-source: info: using options from linux-
> 6.1.5/debian/source/local-options: --abort-on-upstream-changes
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: warning: upstream signing key but no upstream tarball
> signature
> dpkg-source: info: building linux using existing
> ./linux_6.1.5.orig.tar.xz
> dpkg-source: info: using patch list from debian/patches/series
> dpkg-source: info: building linux in linux_6.1.5-1.debian.tar.xz
> dpkg-source: info: building linux in linux_6.1.5-1.dsc
>  debian/rules binary
> mkdir -p debian/build
> printf >debian/build/version-info 'Source: %s\nVersion: %s\n' linux
> 6.1.5-1
> md5sum --check debian/control.md5sum --status || \
> /usr/bin/make -f debian/rules debian/control-real
> dh_testdir
> /usr/bin/make -f debian/rules.gen build-indep
> make[1]: Entering directory '/usr/src/kernel/linux-6.1.5'
> /usr/bin/make -f debian/rules.real build_headers-common
> ABINAME='6.1.0-0' ALL_KERNEL_ARCHES='alpha arm arm64 ia64 m68k mips
> parisc powerpc riscv s390 sh sparc x86'
> DESTDIR='/usr/src/kernel/linux-6.1.5/debian/linux-headers-6.1.0-0-
> common' DH_OPTIONS='-plinux-headers-6.1.0-0-common' FEATURESET='none'
> LOCALVERSION='' PACKAGE_NAME='linux-headers-6.1.0-0-common'
> SOURCEVERSION='6.1.5-1' SOURCE_BASENAME='linux' SOURCE_SUFFIX=''
> UPSTREAMVERSION='6.1' VERSION='6.1'
> make[2]: Entering directory '/usr/src/kernel/linux-6.1.5'
> make[2]: Nothing to be done for 'build_headers-common'.
> make[2]: Leaving directory '/usr/src/kernel/linux-6.1.5'
> /usr/bin/make -f debian/rules.real build_doc ABINAME='6.1.0-0'
> DESTDIR='/usr/src/kernel/linux-6.1.5/debian/linux-doc-6.1'
> DH_OPTIONS='-plinux-doc-6.1' PACKAGE_NAME='linux-doc-6.1'
> SOURCEVERSION='6.1.5-1' SOURCE_BASENAME='linux' SOURCE_SUFFIX=''
> UPSTREAMVERSION='6.1' VERSION='6.1'
> make[2]: Entering directory '/usr/src/kernel/linux-6.1.5'
> test -d .pc
> set +e; QUILT_PC=.pc quilt unapplied --quiltrc - >/dev/null && echo
> 'Patch series not fully applied'; test $? -eq 1
> File series fully applied, ends at patch 6.1.5.patch
> mkdir -p 'debian/build'
> rm -rf 'debian/build/build-doc'
> mkdir -p 'debian/build/build-doc'
> cp -al COPYING CREDITS Documentation Kbuild Kconfig LICENSES
> MAINTAINERS Makefile README arch block certs crypto drivers fs
> include init 

Bug#1027810: linux-source: I'd love to have a step by step manual on how to create the debian/ files on a brand new kernel

2023-01-03 Thread vmxevilstar
Hello,

./debian/bin/genorig.py -V 6.2-rc2
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

downloads the correct kernel version but then all the rest of
README.source instructions try to build the older version ... why ? 

On Tue, 2023-01-03 at 17:04 +0100, xevilstar wrote:
> Package: linux-source
> Version: 6.1.2-1~exp1
> Severity: wishlist
> X-Debbugs-Cc: vmxevils...@gmail.com
> 
> Dear Maintainer,
> 
> 
> I am trying to upload a new kernel source
> I tried the debfiles of an old version but I cannot find where it has
> the version number hardcoded
> 
> ./debian/bin/genorig.py
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> Using source name linux, version 6.1.2, dfsg 0
> Cloning into bare repository 'debian/genorigxct60re5/git'...
> warning: Could not find remote branch v6.1.2 to clone.
> fatal: Remote branch v6.1.2 not found in upstream origin
> Traceback (most recent call last):
>   File "/usr/src/linux-6.2-rc2/./debian/bin/genorig.py", line 169, in
> 
>     Main(args[0], options.override_version)()
>   File "/usr/src/linux-6.2-rc2/./debian/bin/genorig.py", line 48, in
> __call__
>     subprocess.run(
>   File "/usr/lib/python3.11/subprocess.py", line 571, in run
>     raise CalledProcessError(retcode, process.args,
> subprocess.CalledProcessError: Command '['git', 'clone', '--bare', '-
> -depth=1', '-b', 'v6.1.2',
> 'https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git',
> 'debian/genorigxct60re5/git']' returned non-zero exit status 128.
> 
> I wish I can generate the orig of the kernel I have downloaded from
> kernel.org
> 
> 
> 
> -- System Information:
> Debian Release: bookworm/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (500, 'testing'), (1,
> 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 6.2.0-rc2 (SMP w/16 CPU threads; PREEMPT)
> Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN,
> TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
> Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
> 
> Versions of packages linux-source depends on:
> ii  linux-source-6.1  6.1.2-1~exp1
> 
> linux-source recommends no packages.
> 
> linux-source suggests no packages.
> 
> -- no debconf information