Bug 2339019 - Review Request: php-splitbrain-lesserphp - PHP library for compiling LESS stylesheets
Summary: Review Request: php-splitbrain-lesserphp - PHP library for compiling LESS sty...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Remi Collet
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/%{vendor}/%{project}/
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-20 16:21 UTC by Artur Frenszek-Iwicki
Modified: 2025-05-15 21:36 UTC (History)
2 users (show)

Fixed In Version: php-splitbrain-lesserphp-0.10.2-2.fc42
Clone Of:
Environment:
Last Closed: 2025-05-15 21:36:48 UTC
Type: ---
Embargoed:
fedora: fedora-review+


Attachments (Terms of Use)
review.txt (9.20 KB, text/plain)
2025-01-27 10:40 UTC, Remi Collet
no flags Details
phpci.log (12.32 KB, text/plain)
2025-01-27 10:40 UTC, Remi Collet
no flags Details

Description Artur Frenszek-Iwicki 2025-01-20 16:21:28 UTC
spec: https://suve.fedorapeople.org/review/php-splitbrain-lesserphp-0.10.2-1/php-splitbrain-lesserphp.spec
srpm: https://suve.fedorapeople.org/review/php-splitbrain-lesserphp-0.10.2-1/php-splitbrain-lesserphp-0.10.2-1.fc41.src.rpm
koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=128210303

Description:
LesserPHP is a compiler for LESS written in PHP. It is based on lessphp by
leafo. The original has been abandoned in 2014. The fork by MarcusSchwarz
has been mostly abandoned in 2021. This is an opinionated fork with the goal
to modernize the code base enough to be somewhat easier to maintain without
completely rewriting it.

FAS username: suve

Comment 1 Fedora Review Service 2025-01-20 16:25:55 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8552590
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2339019-php-splitbrain-lesserphp/fedora-rawhide-x86_64/08552590-php-splitbrain-lesserphp/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 2 Remi Collet 2025-01-27 10:39:13 UTC
[!]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/share/php/splitbrain

[!]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
    php-splitbrain-lesserphp.noarch: W: obsolete-not-provided php-lessphp

Don't obsolete it or provide it if it is fully compatible
but in this case, you also have to package the old autoloader (a link to the new one ?)

[!]: Requires correct, justified where necessary.

    Requires: php-cli >= 7.4.0

Please use php(language) >= 7.4.0, see https://docs.fedoraproject.org/en-US/packaging-guidelines/PHP/#requires-provides-min-php

    Requires: php-date
    Requires: php-pcre

Both can be removed, see https://docs.fedoraproject.org/en-US/packaging-guidelines/PHP/#requires-provides-extensions


About composer.json stuff

1/ you have both a sed command and a patch, why ?

2/ better fix

is to move "tests" in "autoload-dev", which can be submitted to upstream:
    "autoload": {
        "psr-4": {
            "LesserPHP\\": "src"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "LesserPHP\\tests\\": "tests"
        }
    },


3/ alternative

use "phpab --template fedora  --output src/autoload.php  src"

Comment 3 Remi Collet 2025-01-27 10:40:10 UTC
Created attachment 2073993 [details]
review.txt

Comment 4 Remi Collet 2025-01-27 10:40:31 UTC
Created attachment 2073994 [details]
phpci.log

Comment 5 Artur Frenszek-Iwicki 2025-01-30 12:41:56 UTC
> php-splitbrain-lesserphp.noarch: W: obsolete-not-provided php-lessphp
>
> Don't obsolete it or provide it if it is fully compatible
> but in this case, you also have to package the old autoloader (a link to the new one ?)
Hmm. I want this package to obsolete php-marcusschwarz-lesserphp, which is unmaintained upstream.
The package in question also has "Obsoletes: php-lessphp", even though it's not fully compatible.
Should I make this obsolete only php-marcusschwarz-lesserphp and remove the php-lessphp bit?

Comment 6 Remi Collet 2025-01-30 14:33:22 UTC
php-lessphp is retired since F32, so no value in obsoleting it

php-marcusschwarz-lesserphp is in the repo

If php-splitbrain-lesserphp is fully compatible you can obsolete/provide it

but in this case it needs to be a true replacement:

 - so same provides php-composer(....) which is commonly used
 - same autoloader path (or symlink to new path)


Else (not compatible), simply ignore the replacement
and retire the old one when no  more used

Comment 7 Artur Frenszek-Iwicki 2025-01-30 16:07:55 UTC
Using dnf repoquery shows that the only package depending on php-marcusschwarz-lesserphp is dokuwiki,
which will be dropping the dependency once I finally update it to a newer version.
As such, I've removed the Obsoletes completely.

> Note: Directories without known owners: /usr/share/php/splitbrain
Fixed.

>     Requires: php-cli >= 7.4.0
> Please use php(language) >= 7.4.0, see https://docs.fedoraproject.org/en-US/packaging-guidelines/PHP/#requires-provides-min-php
>     Requires: php-date
>     Requires: php-pcre
> Both can be removed, see https://docs.fedoraproject.org/en-US/packaging-guidelines/PHP/#requires-provides-extensions
Done.

> About composer.json stuff
> 1/ you have both a sed command and a patch, why ?
I guess I tried sed first, then went for the patch and forgot to remove the sed call.
> 2/ better fix
Thanks!

spec: https://suve.fedorapeople.org/review/php-splitbrain-lesserphp-0.10.2-2/php-splitbrain-lesserphp.spec
srpm: https://suve.fedorapeople.org/review/php-splitbrain-lesserphp-0.10.2-2/php-splitbrain-lesserphp-0.10.2-2.fc41.src.rpm
koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=128656084

Comment 8 Fedora Review Service 2025-01-30 18:06:38 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8587805
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2339019-php-splitbrain-lesserphp/fedora-rawhide-x86_64/08587805-php-splitbrain-lesserphp/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 9 Remi Collet 2025-01-31 08:10:55 UTC
[x]: Package must own all directories that it creates.
[x]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[x]: Requires correct, justified where necessary.

Package approved

Comment 10 Fedora Admin user for bugzilla script actions 2025-01-31 12:39:46 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/php-splitbrain-lesserphp

Comment 11 Artur Frenszek-Iwicki 2025-05-15 21:36:48 UTC
https://bodhi.fedoraproject.org/updates/FEDORA-2025-e927711480


Note You need to log in before you can comment on or make changes to this bug.