perl (5.8.9 to 5.8.14) portupgrade error
Yutaka Itoh
y.itoh at a2network.jp
Mon May 13 09:56:33 UTC 2013
Dear Olli.
Thank you for your instruction.
Yes, I want to upgrade perl from 5.8 to 5.14 (or 5.16),
Now I am trying to reconstruct the package of my machine.
But I came across the error after this command.
> $> cd ports-mgmt/pkg && make package
root at ylog1:/usr/ports/ports-mgmt/pkg# make package
===> pkg-1.0.12 not supported on 7.x or early 8.0.
*** Error code 1
Stop in /usr/ports/ports-mgmt/pkg.
--------------------------------------------------
Here is the log and the process.
101 11:10 cd /etc/
106 11:10 echo "WITH_PKGNG=yes" >> /etc/make.conf
116 11:21 echo "DISTDIR?=/usr/ports/distfiles" >> /etc/make.conf
117 11:21 echo "PACKAGES?=/usr/ports/packages" >> /etc/make.conf
120 11:21 mkdir /usr/ports/oldpackages
123 11:22 cd /usr/ports/oldpackages && pkg_info | awk '{print $1}' | xargs -L1 -J % pkg_create -b %
124 11:35 pkg_delete -a
125 11:38 cd /usr && cp -Rp local local.save
128 11:39 cd /usr/ports/
130 11:39 cd ports-mgmt/pkg && make package
FYI
root at ylog1:/usr/ports# cd /usr/ports/oldpackages && pkg_info | awk '{print $1}' | xargs -L1 -J % pkg_create -b %
tar: lib/ruby/site_ruby/1.8/i386-freebsd8/bdb.so: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256
root at ylog1:/usr/ports/oldpackages# pkg_delete -a
pkg_delete: file '/usr/local/lib/ruby/site_ruby/1.8/i386-freebsd8/bdb.so' doesn't exist
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)
pkg_delete: unable to completely remove directory '/usr/local/etc/syslog-ng'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)
You may need to do by hand:
o unmount linprocfs if mounted
o delete /compat/linux/proc if present
o remove/comment linprocfs from /etc/fstab if present
Removing stale symlinks from /usr/bin...
Removing /usr/bin/perl
Removing /usr/bin/perl5
Done.
Cleaning up /etc/make.conf... Done.
Cleaning up /etc/manpath.config... Done.
The portaudit package has been deleted.
If you're *not* upgrading and won't be using
it any longer, you may want to remove the
portaudit database:
rm -Rf /var/db/portaudit
Waiting for your feedback.
Thanks, Yutaka.
On Fri, 10 May 2013 21:02:09 +0200
olli hauer <ohauer at gmx.de> wrote:
> Hi Yutaka Itohm
>
> I'm not sure if I got it right but it guess you want upgrade your perl to 5.14 or 5.16 (not 5.8.14).
>
> In your position I would do a complete rebuild without the upgrade tools.
>
> My preferred way (assuming you want also change to pkgNG) and building directly packages for the other systems you have (also possible without tinderbox/poudriere)
>
> Some pre-work (also good the future)
>
> # start using pkgNG
> $> echo "WITH_PKGNG=yes" >> /etc/make.conf
>
> # we will save distfiles / packages for other systems ..
> $> echo "DISTDIR?=$space/distfiles" >> /etc/make.conf
> $> echo "PACKAGES?=$space/packages" >> /etc/make.conf
>
> # save old package list for later compare
> $> pkg_info -qoa | sort > ~/PKGs_perl5.8
>
> # backup all old packages (maybe create a script to see process ...)
> $> mkdir $space/oldpackages
> $> cd $space/oldpackages && pkg_info | awk '{print $1}' | xargs -L1 -J % pkg_create -b %
>
>
> # now lets start with a clean system
> $> pkg_delete -a
>
> $> cd /usr && cp -Rp local local.save ( and manually cleanup the old local directory )
> $> cd ports-mgmt/pkg && make package
> $> cd lang/perl5.14 && make config && make package (will be saved in $space/packages/All)
>
> # now check your list (~/PKGs_perl5.8) start with major required ports, maybe not all will be required with perl5.14
> $> pkg info -qoa | sort > /tmp/installed_ports
>
> # get a list of missing ports
> $> diff -u ~/PKGs_perl5.8 /tmp/installed_ports
>
> Instead removing all ports and going with pkgNG you can cherry pick from the tasklist and do only a pkg_delete -x perl-5.8 and start from here.
> Some personal notes:
> - it is always a good idea to backup the packages with "pkg_create -b $packagename" or in pkgNg with "pkg create -a"
> - keep a list of ports before and after the upgrade to compare (pkg_info/pkg info) -qoa | sort > $file is my preferred way
> - if you have more then one system start with your own package building (even with sharing the ports created with "create package" or pkg( |_)create is a good start, I upgrade this way 20 nearly identical systems in 30 min)
>
> --
> Hope you found some good hints.
>
> Regards,
> olli
>
>
> On 2013-05-10 18:14, Yutaka Itoh wrote:
> > Dear sirs.
> >
> > My name is Yutaka Itoh working a2network in Dusseldorf, Germany.
> > I need to ask you about portupgrade error on FreeBSD 8.3.
> > When I tried to portupgrade perl, some error happened.
> > (from 5.8.9 to 5.8.14.)
> > Here is error message.
> > There was no config.log.
> >
> > Waiting for your reply.
> > Thanks, Yutaka.
> >
> > --------------------------------------------------
> > Which of these apply, if any? [freebsd]
> >
> > Some users have reported that Configure halts when testing for
> > the O_NONBLOCK symbol with a syntax error. This is apparently a
> > sh error. Rerunning Configure with ksh apparently fixes the
> > problem. Try
> > ksh Configure [your options]
> >
> > Operating system name? [freebsd]
> > Operating system version? [8.3-release-p3]
> > Installation prefix to use? (~name ok) [/usr/local]
> > AFS does not seem to be running...
> > What installation prefix should I use for installing files? (~name ok)
> > [/usr/local]
> > Build Perl for SOCKS? [n]
> > Use the PerlIO abstraction layer? [y]
> > Getting the current patchlevel...
> > Build a threading Perl? [n]
> > Build Perl for multiplicity? [n]
> > Use which C compiler? [cc]
> > /usr/lib/libpthread.so: undefined reference to `__pselect at FBSDprivate_1.0'
> > Uh-oh, the C compiler 'cc' doesn't seem to be working.
> > You seem to have a working gcc, though.
> > Would you like to use it? [y]
> > /usr/lib/libpthread.so: undefined reference to `__pselect at FBSDprivate_1.0'
> > You need to find a working C compiler.
> > Either (purchase and) install the C compiler supplied by your OS vendor,
> > or for a free C compiler try http://gcc.gnu.org/
> > I cannot continue any further, aborting.
> > ===> Script "Configure" failed unexpectedly.
> > Please report the problem to perl at FreeBSD.org [maintainer] and attach the
> > "/usr/ports/lang/perl5.14/work/perl-5.14.2/config.log" including the output
> > of the failure of your make command. Also, it might be a good idea to provide
> > an overview of all packages installed on your system (e.g. a /usr/sbin/pkg_info
> > -Ea).
> > *** Error code 1
> >
> > Stop in /usr/ports/lang/perl5.14.
> > *** Error code 1
> >
> > Stop in /usr/ports/lang/perl5.14.
> > ** Command failed [exit code 1]: /usr/local/libexec/pkgtools/script -qa /tmp/portupgrade20130510-90617-1tng80e-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=perl-5.8.9 UPGRADE_PORT_VER=5.8.9 make -DDISABLE_CONFLICTS
> > ** Fix the problem and try again.
> > ** Listing the failed packages (-:ignored / *:skipped / !:failed)
> > ! lang/perl5.14 (perl-5.8.9) (linker error)
> >
> >
> > Yutaka Itoh
> >
> > a2network GmbH & Co.KG
> > Kasernenstr.15
> > 40213 Duesseldorf
> > Germany
> >
> > Tel:+49 211 8282 894
> > Fax:+49 211 8282 895
> > Email:y.itoh at a2network.jp
> >
> > http://www.berrymobile.jp/
> >
> > Amtsgericht Duesseldorf HRA 18382
> > Geschaeftsfuehrer: Akihito Monta
> >
> > _______________________________________________
> > freebsd-perl at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-perl
> > To unsubscribe, send any mail to "freebsd-perl-unsubscribe at freebsd.org"
> >
More information about the freebsd-perl
mailing list