#49756 Ticket 49571 - perl subpackage and python installer by default
Closed 3 years ago by spichugi. Opened 5 years ago by mreynolds.
mreynolds/389-ds-base ticket49571  into  master

file modified
+180 -76
@@ -63,7 +63,7 @@ 

  Obsoletes:        %{name}-selinux

  Conflicts:        selinux-policy-base < 3.9.8

  # upgrade path from monolithic %{name} (including -libs & -devel) to %{name} + %{name}-snmp

- Obsoletes:        %{name} <= 1.3.5.4

+ Obsoletes:        %{name} <= 1.4.0.9

  Provides:         ldif2ldbm

  

  # Attach the buildrequires to the top level package:
@@ -140,8 +140,6 @@ 

  Requires:         libsemanage-python

  # the following are needed for some of our scripts

  Requires:         openldap-clients

- # use_openldap assumes perl-Mozilla-LDAP is built with openldap support

- Requires:         perl-Mozilla-LDAP

  # this is needed to setup SSL if you are not using the

  # administration server package

  Requires:         nss-tools
@@ -159,19 +157,8 @@ 

  # Needed by logconv.pl

  Requires:         perl-DB_File

  Requires:         perl-Archive-Tar

- # for the init script

- Requires(post):   systemd-units

- Requires(preun):  systemd-units

- Requires(postun): systemd-units

- # for setup-ds.pl

- Requires:         bind-utils

- # for setup-ds.pl to support ipv6

- %if %{use_Socket6}

- Requires:         perl-Socket6

- %else

- Requires:         perl-Socket

- %endif

- Requires:         perl-NetAddr-IP

+ # Picks up our systemd deps.

+ %{?systemd_requires}

  

  Source0:          http://www.port389.org/sources/%{name}-%{version}%{?prerel}.tar.bz2

  # 389-ds-git.sh should be used to generate the source tarball from git
@@ -229,6 +216,30 @@ 

  are used by the main package and the -devel package.  This allows the -devel

  package to be installed with just the -libs package and without the main package.

  

+ %package          legacy-tools

+ Summary:          Legacy utilities for 389 Directory Server (%{variant})

+ Group:            System Environment/Daemons

+ Obsoletes:        %{name} <= 1.4.0.9

+ Requires:         %{name} = %{version}-%{release}

+ %if %{use_perl}

+ # for setup-ds.pl to support ipv6

+ %if %{use_Socket6}

+ Requires:         perl-Socket6

+ %else

+ Requires:         perl-Socket

+ %endif

+ Requires:         perl-NetAddr-IP

+ # use_openldap assumes perl-Mozilla-LDAP is built with openldap support

+ Requires:         perl-Mozilla-LDAP

+ # for setup-ds.pl

+ Requires:         bind-utils

+ %endif

+ # End use perl

+ 

+ %description      legacy-tools

+ Legacy (and deprecated) utilities for 389 Directory Server. This includes

+ the old account management and task scripts. These are deprecated in favour of

+ the dscreate, dsctl, dsconf and dsidm tools.

  

  %package          devel

  Summary:          Development libraries for 389 Directory Server (%{variant})
@@ -450,8 +461,13 @@ 

  rm -rf $RPM_BUILD_ROOT

  

  %post

- output=/dev/null

- output2=/dev/null

+ if [ -n "$DEBUGPOSTTRANS" ] ; then

+     output=$DEBUGPOSTTRANS

+     output2=${DEBUGPOSTTRANS}.upgrade

+ else

+     output=/dev/null

+     output2=/dev/null

+ fi

  # reload to pick up any changes to systemd files

  /bin/systemctl daemon-reload >$output 2>&1 || :

  # reload to pick up any shared lib changes
@@ -459,10 +475,6 @@ 

  # find all instances

  instances="" # instances that require a restart after upgrade

  ninst=0 # number of instances found in total

- if [ -n "$DEBUGPOSTTRANS" ] ; then

-    output=$DEBUGPOSTTRANS

-    output2=${DEBUGPOSTTRANS}.upgrade

- fi

  

  # https://fedoraproject.org/wiki/Packaging:UsersAndGroups#Soft_static_allocation

  # Soft static allocation for UID and GID
@@ -484,8 +496,41 @@ 

  # Reload our sysctl before we restart (if we can)

  sysctl --system &> $output; true

  

+ %preun

+ if [ $1 -eq 0 ]; then # Final removal

+     # remove instance specific service files/links

+     rm -rf %{_sysconfdir}/systemd/system/%{groupname}.wants/* > /dev/null 2>&1 || :

+ fi

+ 

+ %postun

+ /sbin/ldconfig

+ if [ $1 = 0 ]; then # Final removal

+     rm -rf /var/run/%{pkgname}

+ fi

+ 

+ %post snmp

+ %systemd_post %{pkgname}-snmp.service

+ 

+ %preun snmp

+ %systemd_preun %{pkgname}-snmp.service %{groupname}

+ 

+ %postun snmp

+ %systemd_postun_with_restart %{pkgname}-snmp.service

+ 

+ %post legacy-tools

+ 

+ 

  %if %{use_perl}

  # START UPGRADE SCRIPT

+ 

+ if [ -n "$DEBUGPOSTTRANS" ] ; then

+     output=$DEBUGPOSTTRANS

+     output2=${DEBUGPOSTTRANS}.upgrade

+ else

+     output=/dev/null

+     output2=/dev/null

+ fi

+ 

  echo looking for instances in %{_sysconfdir}/%{pkgname} > $output 2>&1 || :

  instbase="%{_sysconfdir}/%{pkgname}"

  for dir in $instbase/slapd-* ; do
@@ -534,27 +579,6 @@ 

  

  exit 0

  

- %preun

- if [ $1 -eq 0 ]; then # Final removal

-     # remove instance specific service files/links

-     rm -rf %{_sysconfdir}/systemd/system/%{groupname}.wants/* > /dev/null 2>&1 || :

- fi

- 

- %postun

- /sbin/ldconfig

- if [ $1 = 0 ]; then # Final removal

-     rm -rf /var/run/%{pkgname}

- fi

- 

- %post snmp

- %systemd_post %{pkgname}-snmp.service

- 

- %preun snmp

- %systemd_preun %{pkgname}-snmp.service %{groupname}

- 

- %postun snmp

- %systemd_postun_with_restart %{pkgname}-snmp.service

- 

  %files

  %defattr(-,root,root,-)

  %if %{bundle_jemalloc}
@@ -573,11 +597,30 @@ 

  %config(noreplace)%{_sysconfdir}/sysconfig/%{pkgname}

  %config(noreplace)%{_sysconfdir}/sysconfig/%{pkgname}.systemd

  %{_datadir}/%{pkgname}

+ %exclude %{_datadir}/%{pkgname}/script-templates

+ %exclude %{_datadir}/%{pkgname}/updates

+ %exclude %{_datadir}/%{pkgname}/properties/*.res

  %{_datadir}/gdb/auto-load/*

  %{_unitdir}

- %{_bindir}/*

+ %{_bindir}/dbscan

+ %{_mandir}/man1/dbscan.1.gz

+ %{_bindir}/ds-replcheck

+ %{_mandir}/man1/ds-replcheck.1.gz

+ %{_bindir}/ds-logpipe.py

+ %{_mandir}/man1/ds-logpipe.py.1.gz

+ %{_bindir}/ldclt

+ %{_mandir}/man1/ldclt.1.gz

+ %{_sbindir}/ldif2ldap

+ %{_mandir}/man8/ldif2ldap.8.gz

+ %{_bindir}/logconv.pl

+ %{_mandir}/man1/logconv.pl.1.gz

+ %{_bindir}/pwdhash

+ %{_mandir}/man1/pwdhash.1.gz

+ %{_bindir}/readnsstate

+ %{_mandir}/man1/readnsstate.1.gz

  # We have to seperate this from being a glob to ensure the caps are applied.

  %caps(CAP_NET_BIND_SERVICE=pe) %{_sbindir}/ns-slapd

+ %{_mandir}/man8/ns-slapd.8.gz

  %if 0%{?rhel} > 7 || 0%{?fedora}

  %{_sbindir}/dsconf

  %{_sbindir}/dscreate
@@ -587,48 +630,30 @@ 

  %{_libexecdir}/%{pkgname}/ds_selinux_enabled

  %{_libexecdir}/%{pkgname}/ds_selinux_port_query

  %{_libexecdir}/%{pkgname}/ds_systemd_ask_password_acl

- %if %{use_perl}

- %{_sbindir}/monitor

  %{_sbindir}/bak2db

- %{_sbindir}/bak2db.pl

- %{_sbindir}/cleanallruv.pl

+ %{_mandir}/man8/bak2db.8.gz

  %{_sbindir}/db2bak

- %{_sbindir}/db2bak.pl

+ %{_mandir}/man8/db2bak.8.gz

  %{_sbindir}/db2index

- %{_sbindir}/db2index.pl

+ %{_mandir}/man8/db2index.8.gz

  %{_sbindir}/db2ldif

- %{_sbindir}/db2ldif.pl

- %{_sbindir}/dbmon.sh

+ %{_mandir}/man8/db2ldif.8.gz

  %{_sbindir}/dbverify

- %{_sbindir}/dn2rdn

- %{_sbindir}/fixup-linkedattrs.pl

- %{_sbindir}/fixup-memberof.pl

+ %{_mandir}/man8/dbverify.8.gz

  %{_sbindir}/ldif2db

- %{_sbindir}/ldif2db.pl

- %{_sbindir}/ldif2ldap

- %{_sbindir}/migrate-ds.pl

- %{_sbindir}/ns-accountstatus.pl

- %{_sbindir}/ns-activate.pl

- %{_sbindir}/ns-inactivate.pl

- %{_sbindir}/ns-newpwpolicy.pl

- %{_sbindir}/remove-ds.pl

+ %{_mandir}/man8/ldif2db.8.gz

  %{_sbindir}/restart-dirsrv

- %{_sbindir}/restoreconfig

- %{_sbindir}/saveconfig

- %{_sbindir}/schema-reload.pl

- %{_sbindir}/setup-ds.pl

+ %{_mandir}/man8/restart-dirsrv.8.gz

  %{_sbindir}/start-dirsrv

+ %{_mandir}/man8/start-dirsrv.8.gz

  %{_sbindir}/status-dirsrv

+ %{_mandir}/man8/status-dirsrv.8.gz

  %{_sbindir}/stop-dirsrv

- %{_sbindir}/suffix2instance

- %{_sbindir}/syntax-validate.pl

+ %{_mandir}/man8/stop-dirsrv.8.gz

  %{_sbindir}/upgradedb

- %{_sbindir}/upgradednformat

- %{_sbindir}/usn-tombstone-cleanup.pl

- %{_sbindir}/verify-db.pl

+ %{_mandir}/man8/upgradedb.8.gz

  %{_sbindir}/vlvindex

- %{_libdir}/%{pkgname}/perl

- %endif

+ %{_mandir}/man8/vlvindex.8.gz

  %{_libdir}/%{pkgname}/python

  %dir %{_libdir}/%{pkgname}/plugins

  %{_libdir}/%{pkgname}/plugins/*.so
@@ -638,8 +663,6 @@ 

  %dir %{_localstatedir}/lib/%{pkgname}

  %dir %{_localstatedir}/log/%{pkgname}

  %ghost %dir %{_localstatedir}/lock/%{pkgname}

- %{_mandir}/man1/*

- %{_mandir}/man8/*

  %exclude %{_sbindir}/ldap-agent*

  %exclude %{_mandir}/man1/ldap-agent.1.gz

  %exclude %{_unitdir}/%{pkgname}-snmp.service
@@ -685,6 +708,87 @@ 

  %{_libdir}/%{pkgname}/librsds.so

  %endif

  

+ %files legacy-tools

+ %defattr(-,root,root,-)

+ %doc LICENSE LICENSE.GPLv3+ LICENSE.openssl README.devel

+ %{_bindir}/infadd

+ %{_mandir}/man1/infadd.1.gz

+ %{_bindir}/ldif

+ %{_mandir}/man1/ldif.1.gz

+ %{_bindir}/migratecred

+ %{_mandir}/man1/migratecred.1.gz

+ %{_bindir}/mmldif

+ %{_mandir}/man1/mmldif.1.gz

+ %{_bindir}/rsearch

+ %{_mandir}/man1/rsearch.1.gz

+ %{_sbindir}/monitor

+ %{_mandir}/man8/monitor.8.gz

+ %{_sbindir}/dbmon.sh

+ %{_mandir}/man8/dbmon.sh.8.gz

+ %{_sbindir}/dn2rdn

+ %{_mandir}/man8/dn2rdn.8.gz

+ %{_sbindir}/restoreconfig

+ %{_mandir}/man8/restoreconfig.8.gz

+ %{_sbindir}/saveconfig

+ %{_mandir}/man8/saveconfig.8.gz

+ %{_sbindir}/stop-dirsrv

+ %{_sbindir}/suffix2instance

+ %{_mandir}/man8/suffix2instance.8.gz

+ %{_sbindir}/upgradednformat

+ %{_mandir}/man8/upgradednformat.8.gz

+ %if %{use_perl}

+ %{_datadir}/%{pkgname}/properties/*.res

+ %{_datadir}/%{pkgname}/script-templates

+ %{_datadir}/%{pkgname}/updates

+ %{_mandir}/man1/dbgen.pl.1.gz

+ %{_bindir}/repl-monitor

+ %{_mandir}/man1/repl-monitor.1.gz

+ %{_bindir}/repl-monitor.pl

+ %{_bindir}/cl-dump

+ %{_mandir}/man1/cl-dump.1.gz

+ %{_bindir}/cl-dump.pl

+ %{_bindir}/dbgen.pl

+ %{_mandir}/man8/bak2db.pl.8.gz

+ %{_sbindir}/bak2db.pl

+ %{_sbindir}/cleanallruv.pl

+ %{_mandir}/man8/cleanallruv.pl.8.gz

+ %{_sbindir}/db2bak.pl

+ %{_mandir}/man8/db2bak.pl.8.gz

+ %{_sbindir}/db2index.pl

+ %{_mandir}/man8/db2index.pl.8.gz

+ %{_sbindir}/db2ldif.pl

+ %{_mandir}/man8/db2ldif.pl.8.gz

+ %{_sbindir}/fixup-linkedattrs.pl

+ %{_mandir}/man8/fixup-linkedattrs.pl.8.gz

+ %{_sbindir}/fixup-memberof.pl

+ %{_mandir}/man8/fixup-memberof.pl.8.gz

+ %{_sbindir}/ldif2db.pl

+ %{_mandir}/man8/ldif2db.pl.8.gz

+ %{_sbindir}/migrate-ds.pl

+ %{_mandir}/man8/migrate-ds.pl.8.gz

+ %{_sbindir}/ns-accountstatus.pl

+ %{_mandir}/man8/ns-accountstatus.pl.8.gz

+ %{_sbindir}/ns-activate.pl

+ %{_mandir}/man8/ns-activate.pl.8.gz

+ %{_sbindir}/ns-inactivate.pl

+ %{_mandir}/man8/ns-inactivate.pl.8.gz

+ %{_sbindir}/ns-newpwpolicy.pl

+ %{_mandir}/man8/ns-newpwpolicy.pl.8.gz

+ %{_sbindir}/remove-ds.pl

+ %{_mandir}/man8/remove-ds.pl.8.gz

+ %{_sbindir}/schema-reload.pl

+ %{_mandir}/man8/schema-reload.pl.8.gz

+ %{_sbindir}/setup-ds.pl

+ %{_mandir}/man8/setup-ds.pl.8.gz

+ %{_sbindir}/syntax-validate.pl

+ %{_mandir}/man8/syntax-validate.pl.8.gz

+ %{_sbindir}/usn-tombstone-cleanup.pl

+ %{_mandir}/man8/usn-tombstone-cleanup.pl.8.gz

+ %{_sbindir}/verify-db.pl

+ %{_mandir}/man8/verify-db.pl.8.gz

+ %{_libdir}/%{pkgname}/perl

+ %endif

+ 

  %files snmp

  %defattr(-,root,root,-)

  %doc LICENSE LICENSE.GPLv3+ LICENSE.openssl README.devel

Bug Description: With 1.4.0 fast coming, we need to split
the legacy perl out to a subpackage, and coerce our tests to
python installer by default.

Fix Description: Add a legacy tools subpackage

https://pagure.io/389-ds-base/issue/49571

Author: wibrown

We should add Obsoletes: and Conflicts: here to have a correct upgrade path. Also there should be a space before =

cl-dump and repl-monitor are shell wrappers around perl scripts, they should go to legacy-tools too.

We should add the contents of script-templates and updates here, otherwise rpm will detect that they require perl(DSUtil) and this will cause circular dependency.

%{_datadir}/%{pkgname}/script-templates
%{_datadir}/%{pkgname}/updates

and in main package section we should exclude them:

%exclude %{_datadir}/%{pkgname}/script-templates
%exclude %{_datadir}/%{pkgname}/updates

And I think we need to add compat subpackage: https://fedoraproject.org/wiki/Upgrade_paths_%E2%80%94_renaming_or_splitting_packages#.28n:m.29_Many_to_many_replacement

Right now with the changes to this PR I'm able to upgrade from an older version, but legacy-tools is not picked up:

Dependencies resolved.
===============================================================================================================================================================
 Package                                  Arch                    Version                                               Repository                        Size
===============================================================================================================================================================
Upgrading:
 389-ds-base                              x86_64                  1.4.0.9-20180606git0cb9783ed.fc28                     @commandline                     1.8 M
 389-ds-base-devel                        x86_64                  1.4.0.9-20180606git0cb9783ed.fc28                     @commandline                     205 k
     replacing  svrcore-devel.x86_64 4.1.3-4.fc28
 389-ds-base-libs                         x86_64                  1.4.0.9-20180606git0cb9783ed.fc28                     @commandline                     770 k
     replacing  svrcore.x86_64 4.1.3-4.fc28
 389-ds-base-snmp                         x86_64                  1.4.0.9-20180606git0cb9783ed.fc28                     @commandline                      96 k
 krb5-devel                               x86_64                  1.16.1-3.fc28                                         updates                          543 k
 krb5-libs                                x86_64                  1.16.1-3.fc28                                         updates                          840 k
 libkadm5                                 x86_64                  1.16.1-3.fc28                                         updates                          181 k
Installing dependencies:
 iproute                                  x86_64                  4.16.0-1.fc28                                         updates-testing                  558 k
 krb5-workstation                         x86_64                  1.16.1-3.fc28                                         updates                          923 k
 libmnl                                   x86_64                  1.0.4-6.fc28                                          fedora                            29 k
 libss                                    x86_64                  1.43.8-2.fc28                                         fedora                            51 k
 linux-atm-libs                           x86_64                  2.5.1-20.fc28                                         fedora                            41 k
 python2-IPy                              noarch                  0.81-21.fc28                                          fedora                            42 k
 python2-audit                            x86_64                  2.8.3-3.fc28                                          updates-testing                   83 k
 python2-enum34                           noarch                  1.1.6-4.fc28                                          fedora                            57 k
 python2-libselinux                       x86_64                  2.7-13.fc28                                           updates-testing                  253 k
 python2-libsemanage                      x86_64                  2.7-12.fc28                                           updates-testing                  121 k
 python2-policycoreutils                  noarch                  2.7-18.fc28                                           updates-testing                  419 k
 python2-setools                          x86_64                  4.1.1-6.fc28                                          fedora                           583 k
 python3-attrs                            noarch                  17.4.0-2.fc28                                         fedora                            51 k
 python3-dateutil                         noarch                  1:2.6.1-3.fc28                                        fedora                           250 k
 python3-lib389                           noarch                  1.4.0.9-20180606git0cb9783ed.fc28                     @commandline                     590 k
 python3-pluggy                           noarch                  0.6.0-2.fc28                                          fedora                            31 k
 python3-py                               noarch                  1.5.3-1.fc28                                          updates-testing                  471 k
 python3-pytest                           noarch                  3.4.2-2.fc28                                          updates-testing                  1.3 M
Installing weak dependencies:
 iproute-tc                               x86_64                  4.16.0-1.fc28                                         updates-testing                  397 k

Transaction Summary
===============================================================================================================================================================
Install  19 Packages
Upgrade   7 Packages

Total size: 11 M
Total download size: 7.1 M
Is this ok [y/N]: 

Actually, we can make it work without compat:

==============================================================================================================================================================================================
 Package                                           Arch                            Version                                                     Repository                                Size
==============================================================================================================================================================================================
Upgrading:
 389-ds-base                                       x86_64                          1.4.0.9-20180606git0cb9783ed.fc28                           @commandline                             1.8 M
 389-ds-base-devel                                 x86_64                          1.4.0.9-20180606git0cb9783ed.fc28                           @commandline                             205 k
     replacing  svrcore-devel.x86_64 4.1.3-4.fc28
 389-ds-base-libs                                  x86_64                          1.4.0.9-20180606git0cb9783ed.fc28                           @commandline                             770 k
     replacing  svrcore.x86_64 4.1.3-4.fc28
 389-ds-base-snmp                                  x86_64                          1.4.0.9-20180606git0cb9783ed.fc28                           @commandline                              96 k
 krb5-devel                                        x86_64                          1.16.1-3.fc28                                               updates                                  543 k
 krb5-libs                                         x86_64                          1.16.1-3.fc28                                               updates                                  840 k
 libkadm5                                          x86_64                          1.16.1-3.fc28                                               updates                                  181 k
Installing dependencies:
 389-ds-base-legacy-tools                          x86_64                          1.4.0.9-20180606git0cb9783ed.fc28                           @commandline                             299 k
     replacing  389-ds-base.x86_64 1.4.0.6-2.fc28
 iproute                                           x86_64                          4.16.0-1.fc28                                               updates-testing                          558 k
 krb5-workstation                                  x86_64                          1.16.1-3.fc28                                               updates                                  923 k
 libmnl                                            x86_64                          1.0.4-6.fc28                                                fedora                                    29 k
 libss                                             x86_64                          1.43.8-2.fc28                                               fedora                                    51 k
 linux-atm-libs                                    x86_64                          2.5.1-20.fc28                                               fedora                                    41 k
 python2-IPy                                       noarch                          0.81-21.fc28                                                fedora                                    42 k
 python2-audit                                     x86_64                          2.8.3-3.fc28                                                updates-testing                           83 k
 python2-enum34                                    noarch                          1.1.6-4.fc28                                                fedora                                    57 k
 python2-libselinux                                x86_64                          2.7-13.fc28                                                 updates-testing                          253 k
 python2-libsemanage                               x86_64                          2.7-12.fc28                                                 updates-testing                          121 k
 python2-policycoreutils                           noarch                          2.7-18.fc28                                                 updates-testing                          419 k
 python2-setools                                   x86_64                          4.1.1-6.fc28                                                fedora                                   583 k
 python3-attrs                                     noarch                          17.4.0-2.fc28                                               fedora                                    51 k
 python3-dateutil                                  noarch                          1:2.6.1-3.fc28                                              fedora                                   250 k
 python3-lib389                                    noarch                          1.4.0.9-20180606git0cb9783ed.fc28                           @commandline                             590 k
 python3-pluggy                                    noarch                          0.6.0-2.fc28                                                fedora                                    31 k
 python3-py                                        noarch                          1.5.3-1.fc28                                                updates-testing                          471 k
 python3-pytest                                    noarch                          3.4.2-2.fc28                                                updates-testing                          1.3 M
Installing weak dependencies:
 iproute-tc                                        x86_64                          4.16.0-1.fc28                                               updates-testing                          397 k

Transaction Summary
==============================================================================================================================================================================================
Install  20 Packages
Upgrade   7 Packages

Total size: 11 M
Total download size: 7.1 M
Is this ok [y/N]: 

I had to bump version to upgrade the latest fedora package:

==============================================================================================================================================================================================
 Package                                           Arch                            Version                                                     Repository                                Size
==============================================================================================================================================================================================
Upgrading:
 389-ds-base                                       x86_64                          1.4.0.10-20180606git0cb9783ed.fc28                          @commandline                             1.8 M
 389-ds-base-devel                                 x86_64                          1.4.0.10-20180606git0cb9783ed.fc28                          @commandline                             205 k
 389-ds-base-libs                                  x86_64                          1.4.0.10-20180606git0cb9783ed.fc28                          @commandline                             770 k
 389-ds-base-snmp                                  x86_64                          1.4.0.10-20180606git0cb9783ed.fc28                          @commandline                              96 k
 krb5-devel                                        x86_64                          1.16.1-3.fc28                                               updates                                  543 k
 krb5-libs                                         x86_64                          1.16.1-3.fc28                                               updates                                  840 k
 libkadm5                                          x86_64                          1.16.1-3.fc28                                               updates                                  181 k
Installing dependencies:
 389-ds-base-legacy-tools                          x86_64                          1.4.0.10-20180606git0cb9783ed.fc28                          @commandline                             299 k
     replacing  389-ds-base.x86_64 1.4.0.9-2.fc28
 iproute                                           x86_64                          4.16.0-1.fc28                                               updates-testing                          558 k
 krb5-workstation                                  x86_64                          1.16.1-3.fc28                                               updates                                  923 k
 libmnl                                            x86_64                          1.0.4-6.fc28                                                fedora                                    29 k
 libss                                             x86_64                          1.43.8-2.fc28                                               fedora                                    51 k
 linux-atm-libs                                    x86_64                          2.5.1-20.fc28                                               fedora                                    41 k
 python2-IPy                                       noarch                          0.81-21.fc28                                                fedora                                    42 k
 python2-audit                                     x86_64                          2.8.3-3.fc28                                                updates-testing                           83 k
 python2-enum34                                    noarch                          1.1.6-4.fc28                                                fedora                                    57 k
 python2-libselinux                                x86_64                          2.7-13.fc28                                                 updates-testing                          253 k
 python2-libsemanage                               x86_64                          2.7-12.fc28                                                 updates-testing                          121 k
 python2-policycoreutils                           noarch                          2.7-18.fc28                                                 updates-testing                          419 k
 python2-setools                                   x86_64                          4.1.1-6.fc28                                                fedora                                   583 k
 python3-attrs                                     noarch                          17.4.0-2.fc28                                               fedora                                    51 k
 python3-dateutil                                  noarch                          1:2.6.1-3.fc28                                              fedora                                   250 k
 python3-lib389                                    noarch                          1.4.0.10-20180606git0cb9783ed.fc28                          @commandline                             590 k
 python3-pluggy                                    noarch                          0.6.0-2.fc28                                                fedora                                    31 k
 python3-py                                        noarch                          1.5.3-1.fc28                                                updates-testing                          471 k
 python3-pytest                                    noarch                          3.4.2-2.fc28                                                updates-testing                          1.3 M
Installing weak dependencies:
 iproute-tc                                        x86_64                          4.16.0-1.fc28                                               updates-testing                          397 k

Transaction Summary
==============================================================================================================================================================================================
Install  20 Packages
Upgrade   7 Packages

Total size: 11 M
Total download size: 7.1 M
Is this ok [y/N]:

And on a new install it doesn't pull legacy-tools and snmp subpackages:

==============================================================================================================================================================
 Package                                  Arch                    Version                                              Repository                        Size
==============================================================================================================================================================
Installing:
 389-ds-base                              x86_64                  1.4.0.10-20180606git0cb9783ed.fc28                   new_ds                           1.8 M
Upgrading:
 389-ds-base-devel                        x86_64                  1.4.0.10-20180606git0cb9783ed.fc28                   new_ds                           205 k
 389-ds-base-libs                         x86_64                  1.4.0.10-20180606git0cb9783ed.fc28                   new_ds                           770 k
 krb5-devel                               x86_64                  1.16.1-3.fc28                                        updates                          543 k
 krb5-libs                                x86_64                  1.16.1-3.fc28                                        updates                          840 k
 libkadm5                                 x86_64                  1.16.1-3.fc28                                        updates                          181 k
Installing dependencies:
 checkpolicy                              x86_64                  2.8-1.fc28                                           updates                          336 k
 cyrus-sasl-gssapi                        x86_64                  2.1.27-0.2rc7.fc28                                   updates                           46 k
 cyrus-sasl-md5                           x86_64                  2.1.27-0.2rc7.fc28                                   updates                           61 k
 cyrus-sasl-plain                         x86_64                  2.1.27-0.2rc7.fc28                                   updates                           43 k
 iproute                                  x86_64                  4.16.0-1.fc28                                        updates-testing                  558 k
 krb5-workstation                         x86_64                  1.16.1-3.fc28                                        updates                          923 k
 libcgroup                                x86_64                  0.41-17.fc28                                         updates                           68 k
 libmnl                                   x86_64                  1.0.4-6.fc28                                         fedora                            29 k
 libselinux-utils                         x86_64                  2.7-13.fc28                                          updates-testing                  165 k
 libss                                    x86_64                  1.43.8-2.fc28                                        fedora                            51 k
 linux-atm-libs                           x86_64                  2.5.1-20.fc28                                        fedora                            41 k
 openldap-clients                         x86_64                  2.4.46-1.fc28                                        updates-testing                  200 k
 openssl-perl                             x86_64                  1:1.1.0h-3.fc28                                      updates-testing                   73 k
 perl-Algorithm-Diff                      noarch                  1.1903-9.fc28                                        fedora                            51 k
 perl-Archive-Tar                         noarch                  2.26-6.fc28                                          updates-testing                   78 k
 perl-Compress-Raw-Bzip2                  x86_64                  2.081-1.fc28                                         updates-testing                   39 k
 perl-Compress-Raw-Zlib                   x86_64                  2.081-1.fc28                                         updates-testing                   67 k
 perl-DB_File                             x86_64                  1.841-1.fc28                                         updates-testing                   81 k
 perl-IO-Compress                         noarch                  2.081-1.fc28                                         updates-testing                  257 k
 perl-IO-Zlib                             noarch                  1:1.10-412.fc28                                      updates-testing                   78 k
 perl-Text-Diff                           noarch                  1.45-2.fc28                                          fedora                            44 k
 policycoreutils                          x86_64                  2.7-18.fc28                                          updates-testing                  732 k
 python2-IPy                              noarch                  0.81-21.fc28                                         fedora                            42 k
 python2-audit                            x86_64                  2.8.3-3.fc28                                         updates-testing                   83 k
 python2-enum34                           noarch                  1.1.6-4.fc28                                         fedora                            57 k
 python2-libselinux                       x86_64                  2.7-13.fc28                                          updates-testing                  253 k
 python2-libsemanage                      x86_64                  2.7-12.fc28                                          updates-testing                  121 k
 python2-policycoreutils                  noarch                  2.7-18.fc28                                          updates-testing                  419 k
 python2-setools                          x86_64                  4.1.1-6.fc28                                         fedora                           583 k
 python3-attrs                            noarch                  17.4.0-2.fc28                                        fedora                            51 k
 python3-dateutil                         noarch                  1:2.6.1-3.fc28                                       fedora                           250 k
 python3-ldap                             x86_64                  3.1.0-1.fc28                                         updates                          223 k
 python3-lib389                           noarch                  1.4.0.10-20180606git0cb9783ed.fc28                   new_ds                           590 k
 python3-pluggy                           noarch                  0.6.0-2.fc28                                         fedora                            31 k
 python3-py                               noarch                  1.5.3-1.fc28                                         updates-testing                  471 k
 python3-pyasn1                           noarch                  0.3.7-2.fc28                                         fedora                           125 k
 python3-pyasn1-modules                   noarch                  0.3.7-2.fc28                                         fedora                           108 k
 python3-pytest                           noarch                  3.4.2-2.fc28                                         updates-testing                  1.3 M
Installing weak dependencies:
 iproute-tc                               x86_64                  4.16.0-1.fc28                                        updates-testing                  397 k

Transaction Summary
==============================================================================================================================================================
Install  40 Packages
Upgrade   5 Packages

Total size: 13 M
Total download size: 9.9 M
Is this ok [y/N]: 

rebased onto 5d8c588821ba3ad02b883759976ef3895dcf66d2

5 years ago

I rebased your work in this PR (fyi)...

Great, thanks! I'm running more tests, found few things.

During upgrade I see the following output:

  Running scriptlet: 389-ds-base-legacy-tools-1.4.0.10-20180606git0cb9783ed.fc28.x86_64                                                                   3/7 
/var/tmp/rpm-tmp.NbrVGn: line 4: $output: ambiguous redirect

We define output only in scriptlet for 389-ds-base, but not in legacy-tools package.

And resource files should be in legacy-tools package, since they are used by the corresponding perl scripts.

/usr/share/dirsrv/properties/migrate-ds.res
/usr/share/dirsrv/properties/setup-ds.res

And we need to bump version, so that Obsoletes mechanism works on top of Fedora builds.

And we need to bump version, so that Obsoletes mechanism works on top of Fedora builds.

Well we can't (shouldn't) bump version in VERSION.sh until we actually do an upstream release. It messes up the commit log order and tags, etc. I plan to do a build once this PR is merged - then I will bump it to 1.4.0.10 at the same time.

Ah, I see. Thank you for the explanation.

rebased onto c7f24196cc5436c9d83de9f32124e5dd6bd5a9b1

5 years ago

rebased onto e9ec946f048fcf47c283b0e92074c05cc0e4ebdd

5 years ago

rebased onto 9186bce

5 years ago

Pull-Request has been merged by mreynolds

5 years ago

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 pull request has been cloned to Github as issue and is available here:
- https://github.com/389ds/389-ds-base/issues/2815

If you want to continue to work on the PR, please navigate to the github issue,
download the patch from the attachments and file a new pull request.

Thank you for understanding. We apologize for all inconvenience.

Pull-Request has been closed by spichugi

3 years ago
Metadata