migrationtools don't work except from their installation directory

Bug #196749 reported by DaveAbrahams
8
Affects Status Importance Assigned to Milestone
migrationtools (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: migrationtools

This is gutsy; latest version of migrationtools

root@hydra:/usr/include# /usr/share/migrationtools/migrate_passwd.pl /etc/ldap/passwd.root /etc/openldap/root.ldif
Can't locate migrate_common.ph in @INC (did you run h2ph?) (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/migrationtools/migrate_passwd.pl line 41.

If I cd to /usr/share/migrationtools and invoke

  mmigrate_passwd.pl /etc/ldap/passwd.root /etc/openldap/root.ldif

everything works.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package migrationtools - 47-3ubuntu2

---------------
migrationtools (47-3ubuntu2) hardy; urgency=low

  * Install migrate_common.ph into the right spot. (LP: #196749)
  * Update maintainer.

 -- Chuck Short <email address hidden> Fri, 29 Feb 2008 11:29:30 -0500

Changed in migrationtools:
status: New → Fix Released
Revision history for this message
theq (quirin-maier) wrote :

seen on hardy:
- link /etc/migrationtools/migrate_common.ph points to non-existing /usr/share/migrationtools/migrate_common.ph
- /usr/share/migrationtools/migrate_common.ph has been misleadingly moved to /usr/share/perl5/migrate_common.ph in package migrationtools 47-3ubuntu2 -> see package changelog
- migrationtools perl scripts take configuration from migrate_common.ph in ../perl5 directory, but they should take it from original /usr/share/migrationtools/ directory

Changed in migrationtools:
status: Fix Released → New
Revision history for this message
Cybodog (damon-damtek) wrote :

root@dam-main:/etc/migrationtools# ls -la
total 16
drwxr-xr-x 2 root root 4096 2008-06-06 12:02 .
drwxr-xr-x 178 root root 12288 2008-06-06 11:57 ..
lrwxrwxrwx 1 root root 43 2008-06-06 12:02 migrate_common.ph -> /usr/share/migrationtools/migrate_common.ph <<-broken link

ls of /usr/share/migrationtools

root@dam-main:/etc/migrationtools# ls /usr/share/migrationtools/
migrate_aliases.pl migrate_all_nisplus_online.sh migrate_group.pl migrate_passwd.pl
migrate_all_netinfo_offline.sh migrate_all_offline.sh migrate_hosts.pl migrate_profile.pl
migrate_all_netinfo_online.sh migrate_all_online.sh migrate_netgroup_byhost.pl migrate_protocols.pl
migrate_all_nis_offline.sh migrate_automount.pl migrate_netgroup_byuser.pl migrate_rpc.pl
migrate_all_nis_online.sh migrate_base.pl migrate_netgroup.pl migrate_services.pl
migrate_all_nisplus_offline.sh migrate_fstab.pl migrate_networks.pl migrate_slapd_conf.pl

excerpt from Debian README in /usr/share/doc/migrationtools

"Edit /etc/migrationtools/migrate_common.ph, move to /usr/share/migrationtools
and run one of the scripts there (the scripts require you to be in the same
folder)."

The migrate_commen.ph is indeed in /usr/share/perl5 dir, yet no docs I found say it is in there. Migrationtools 47-3ubuntu2, also running Hardy.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package migrationtools - 47-6ubuntu1

---------------
migrationtools (47-6ubuntu1) intrepid; urgency=low

  * Merge from debian unstable, remaining changes:
    - Install migrate_common.ph into the right sport. (LP: #196749)
    - Update maintainer according to spec.

migrationtools (47-6) unstable; urgency=medium

  * Dummy rerelease, using proper tarball (lost in switch to Git).
  * Keep urgency=medium from release 47.4.

migrationtools (47-5) unstable; urgency=medium

  * Add note about access to shadow passwords to README.Debian. This
    closes: bug#375007, thanks to James Westby.
  * Keep urgency=medium...

migrationtools (47-4) unstable; urgency=medium

  * Packaging moved to collab-maint Git at Alioth. Add VCS-* hints to
    debian/control.
  * Only apply access rights to files (not the symlink). Closes:
    bug#464294, thanks to Lucas Nussbaum.
  * Move Homepage to own field (from pseudo-field in long description)
    in debian/control.
  * Update local cdbs snippets:
    + Update copyright-check.mk to parse licensecheck output using perl:
      + No longer randomly drops newlines
      + More compact hint file (and ordered more like wiki-proposed new
        copyright syntax).
      + No longer ignore files without copyright.
      + Relax to only warn about its discoveries. This is a potential
        FTBFS (see bug#487065).
    + Drop wget options broken with recent versions of wget in
      update-tarball.mk.
    + Cosmetic updates to README.cdbs-tweaks.
    + Cleanup duplicate build-dependencies in debian/rules.
  * Update debian/copyright-hints.
  * Bump debhelper compatibility level to 6.
  * Semi-auto-update debian/control to update build-dependencies:
    DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean
  * Set urgency=medium due to multiple FTBFS bugfixes.

 -- Chuck Short <email address hidden> Mon, 30 Jun 2008 02:01:05 +0100

Changed in migrationtools:
status: New → Fix Released
Revision history for this message
Matt Burkhardt (matthewboh) wrote :

Just did an apt-get install migrationtools for 8.04 server LTS and the link in /etc/migrationtools/migrate_common.ph points to /usr/share/migrationtools/migrate_common.ph which doesn't exist. I had to read through this to find the file in /usr/share/perl5/migrate_common.ph

Had to copy that file over to the /usr/share/migrationtools folder and edit

Could you package this so that copying of files between folders is not needed?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.