Bug#1070047: python3-django-pipeline: installs files into aliased locations

2024-04-29 Thread Helmut Grohne
Control: tags -1 - patch

Hi Alexandre,

On Mon, Apr 29, 2024 at 12:35:02PM +0200, Alexandre Detiste wrote:
> If I revert the NAME change autodep8 breaks on Salsa

Dang. I was looking for what I could have broken and didn't see this.

> Is there an easy way to have one name for pybuild and another one for
> autodep8 ... ? I ll search.

I looked at man pybuild and https://wiki.debian.org/Python/Pybuild and
neither was particularly enlightening to me. Possibly setting
PYBUILD_NAME=pipeline and PYBUILD_DESTDIR=debian/python3-django-pipeline
works?

Helmut



Bug#1070047: python3-django-pipeline: installs files into aliased locations

2024-04-29 Thread Alexandre Detiste
Thanks a lot for noticing this.


If I revert the NAME change autodep8 breaks on Salsa

Is there an easy way to have one name for pybuild and another one for
autodep8 ... ? I ll search.

The hard way is to define a real test suite.

Greetings

Le lun. 29 avr. 2024, 12:27, Helmut Grohne  a écrit :

> Package: python3-django-pipeline
> Version: 3.0.0-1
> Severity: serious
> Justification: introduces new aliasing
> Tags: patch
> Control: affects -1 + python3-distutils
> User: helm...@debian.org
> Usertags: dep17p6
>
> The last upload of python3-django-pipeline moved all of its files from
> /usr/lib to /lib. Whils this works somewhat on a /usr-merged
> installations, it causes subtle bugs due to dpkg not being prepared with
> aliasing. In DEP17, we're resolving this by moving all files out of
> aliased locations and python3-django-pipelines has just introduced new.
> Hence, I'm filing this at RC severity. I think the move was accidental
> and can be fixed by dropping the faulty "mv" command in favour of
> setting PYBUILD_NAME to the package name rather than the module name.
> I'm attaching a patch for your convenience.
>
> Helmut
>


Bug#1070047: python3-django-pipeline: installs files into aliased locations

2024-04-29 Thread Helmut Grohne
Package: python3-django-pipeline
Version: 3.0.0-1
Severity: serious
Justification: introduces new aliasing
Tags: patch
Control: affects -1 + python3-distutils
User: helm...@debian.org
Usertags: dep17p6

The last upload of python3-django-pipeline moved all of its files from
/usr/lib to /lib. Whils this works somewhat on a /usr-merged
installations, it causes subtle bugs due to dpkg not being prepared with
aliasing. In DEP17, we're resolving this by moving all files out of
aliased locations and python3-django-pipelines has just introduced new.
Hence, I'm filing this at RC severity. I think the move was accidental
and can be fixed by dropping the faulty "mv" command in favour of
setting PYBUILD_NAME to the package name rather than the module name.
I'm attaching a patch for your convenience.

Helmut
diff --minimal -Nru django-pipeline-3.0.0/debian/changelog 
django-pipeline-3.0.0/debian/changelog
--- django-pipeline-3.0.0/debian/changelog  2024-04-28 19:35:05.0 
+0200
+++ django-pipeline-3.0.0/debian/changelog  2024-04-29 10:17:13.0 
+0200
@@ -1,3 +1,10 @@
+django-pipeline (3.0.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Do not install into /lib. (Closes: #-1)
+
+ -- Helmut Grohne   Mon, 29 Apr 2024 10:17:13 +0200
+
 django-pipeline (3.0.0-1) unstable; urgency=medium
 
   * Team Upload
diff --minimal -Nru django-pipeline-3.0.0/debian/rules 
django-pipeline-3.0.0/debian/rules
--- django-pipeline-3.0.0/debian/rules  2024-04-28 19:35:05.0 +0200
+++ django-pipeline-3.0.0/debian/rules  2024-04-29 10:17:13.0 +0200
@@ -4,7 +4,7 @@
 include /usr/share/dpkg/pkg-info.mk
 export SETUPTOOLS_SCM_PRETEND_VERSION=${DEB_VERSION_UPSTREAM}
 
-export PYBUILD_NAME=pipeline
+export PYBUILD_NAME=django-pipeline
 export PYBUILD_AFTER_BUILD_python3=PYTHONPATH=. sphinx-build -b html -d 
docs/.build/.doctrees -N docs docs/.build/html
 
 # Uncomment this to turn on verbose mode.
@@ -25,6 +25,5 @@
PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="PYTHONPATH=. python{version} 
/usr/bin/django-admin test --settings=tests.settings" dh_auto_test
 
 execute_after_dh_auto_install:
-   mv debian/python3-pipeline/* debian/python3-django-pipeline/
find -type f -name '*.pyc' -delete
find -type d -name __pycache__ -empty -delete