https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/2PD5RNJRKPN2DVTNGJSBHR5RUSVZSDZI/
In F28 automatic shebang munging macro generates the following warnings/errors:
/export/ds/rpmbuild/BUILDROOT/389-ds-base-1.4.0.9-20180512git5d700cc45.fc28.x86_64/usr/lib64/dirsrv/python/failedbinds.py /export/ds/rpmbuild/BUILDROOT/389-ds-base-1.4.0.9-20180512git5d700cc45.fc28.x86_64/usr/lib64/dirsrv/python/logregex.py DEPRECATION WARNING: python2 invoked with /usr/bin/python. Use /usr/bin/python3 or /usr/bin/python2 /usr/bin/python will be removed or switched to Python 3 in the future. If you cannot make the switch now, please follow instructions at https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Quick_Opt-Out DEPRECATION WARNING: python2 invoked with /usr/bin/python. Use /usr/bin/python3 or /usr/bin/python2 /usr/bin/python will be removed or switched to Python 3 in the future. If you cannot make the switch now, please follow instructions at https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Quick_Opt-Out + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs '' '' mangling shebang in /usr/sbin/bak2db.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/ns-inactivate.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/verify-db.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/migrate-ds.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/fixup-memberof.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/ns-accountstatus.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/fixup-linkedattrs.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/setup-ds.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/ns-activate.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/schema-reload.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/remove-ds.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/ns-newpwpolicy.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/db2index.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/db2bak.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/ldif2db.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/usn-tombstone-cleanup.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/cleanallruv.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/db2ldif.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/sbin/syntax-validate.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/bin/cl-dump.pl from /usr/bin/env perl to #!/usr/bin/perl *** WARNING: mangling shebang in /usr/bin/ds-replcheck from #!/usr/bin/python to #!/usr/bin/python2. This will become an ERROR, fix it manually! mangling shebang in /usr/bin/repl-monitor.pl from /usr/bin/env perl to #!/usr/bin/perl *** WARNING: mangling shebang in /usr/bin/ds-logpipe.py from #!/usr/bin/env python to #!/usr/bin/python2. This will become an ERROR, fix it manually! mangling shebang in /usr/bin/logconv.pl from /usr/bin/env perl to #!/usr/bin/perl mangling shebang in /usr/bin/dbgen.pl from /usr/bin/env perl to #!/usr/bin/perl
1.4.x
Scripts using 1. #!/usr/bin/env INTERPRETER should be changed to #!/usr/bin/INTERPRETER 2. #!/usr/bin/python should be changed to #!/usr/bin/python3 (and updated to be py3 compatible)
#!/usr/bin/env INTERPRETER
#!/usr/bin/INTERPRETER
#!/usr/bin/python
#!/usr/bin/python3
Python scripts
./ldap/admin/src/scripts/logregex.py ./ldap/admin/src/scripts/failedbinds.py
are without shebang, they should be changed to explicitly have one.
Deprecation warnings listed above are coming from /usr/lib/rpm/brp-python-bytecompile and should be ignored (script calls /usr/bin/python triggering the warning).
/usr/lib/rpm/brp-python-bytecompile
/usr/bin/python
Metadata Update from @vashirov: - Custom field component adjusted to None - Custom field origin adjusted to None - Custom field reviewstatus adjusted to None - Custom field type adjusted to None - Custom field version adjusted to None
Metadata Update from @mreynolds: - Issue set to the milestone: 1.4.0
Metadata Update from @vashirov: - Issue priority set to: normal - Issue set to the milestone: 1.4.3 (was: 1.4.0)
Metadata Update from @mreynolds: - Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1859278
Issue linked to Bugzilla: Bug 1859278
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here: - https://github.com/389ds/389-ds-base/issues/2736
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.