Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 2008 05:25:21 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        "Anatoly Borodin" <anatoly.borodin@gmail.com>
Cc:        Boris Samorodov <bsam@ipt.ru>, freebsd-ports@freebsd.org
Subject:   Re: PLIST=pkg-plist
Message-ID:  <20080331052521.79b4c0f9@deskjail>
In-Reply-To: <e1e1b0290803300458v4d59b45cj8508d7b53cc995cb@mail.gmail.com>
References:  <e1e1b0290803180909q64f46eadwe3b8ecdb17f1afb6@mail.gmail.com> <53437470@ipt.ru> <20080319081120.j50stppocgs84sos@webmail.leidinger.net> <e1e1b0290803190034w173ca72cj9aa42b42749fabf@mail.gmail.com> <20080319085754.qe1zmbtj0gs4gows@webmail.leidinger.net> <e1e1b0290803190304k1f8a6026hef8465771e8e6d5e@mail.gmail.com> <20080319121300.er09chbiwwck40c8@webmail.leidinger.net> <e1e1b0290803190742k605909aes8515c1264f526ae1@mail.gmail.com> <20080320073606.do0kditb7k00ksks@webmail.leidinger.net> <e1e1b0290803200634p6432f7ffx65165d2bde86b61e@mail.gmail.com> <e1e1b0290803300458v4d59b45cj8508d7b53cc995cb@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting "Anatoly Borodin" <anatoly.borodin@gmail.com> (Sun, 30 Mar 2008 14:58:31 +0300):

> Hi!
> 
> 
> The whole week passed, and no further results. What should I do?

Sorry, I was taking care about something else... I noticed something
below in the script (not tested)...

> On Thu, Mar 20, 2008 at 4:34 PM, Anatoly Borodin
> <anatoly.borodin@gmail.com> wrote:
> > Hi!
> >
> >
> >  On Thu, Mar 20, 2008 at 8:36 AM, Alexander Leidinger
> >  <Alexander@leidinger.net> wrote:
> >  >  Can you please try this without your settings in make.conf (empty
> >  >  make.conf, or at least the smallest possible make.conf you can use)?
> >
> >  I've found that make.conf is irrelevant, but some other thing matters
> >
> >  # cat /root/testl.sh
> >  #!/bin/sh
> >
> >  WRKDIRPREFIX=/usr/obj
> >  PORT=/usr/ports/emulators/linux_base-fc6
> >  CONTENTS=/var/db/pkg/linux_base-fc6*/+CONTENTS
> >  P=`pwd`;
> >  LOG=/root/testl.log
> >
> >  echo -n > ${LOG}
> >  rm -rf ${WRKDIRPREFIX}${PORT};
> >
> >  echo 'make clean' >> ${LOG}
> >  for i in 1 2 3 4 5;
> >  do
> >         cd ${PORT};
> >         make clean;

The make clean is wrong. It tries to clean in PORTSDIR, not in
WRKDIRPREFIX. You need to specify WRKDIRPREFIX at every make invocation.

> >         make -DFORCE_PKG_REGISTER WRKDIRPREFIX=${WRKDIRPREFIX} install;
> >         make clean;
> >         cd ${P};
> >         wc -l ${CONTENTS} >> ${LOG};
> >  done
> >
> >  echo 'rm -rf' >> $LOG
> >  for i in 1 2 3 4 5;
> >  do
> >         cd ${PORT};
> >         rm -rf ${WRKDIRPREFIX}${PORT};
> >         make -DFORCE_PKG_REGISTER WRKDIRPREFIX=${WRKDIRPREFIX} install;
> >         rm -rf ${WRKDIRPREFIX}${PORT};
> >         cd ${P};
> >         wc -l ${CONTENTS} >> ${LOG};
> >  done
> >
> >  clear;
> >  less ${LOG};
> >
> >  # sh /root/testl.sh; cat /root/testl.log
> >  make clean
> >    20067 /var/db/pkg/linux_base-fc6-6_5/+CONTENTS
> >
> >        6 /var/db/pkg/linux_base-fc6-6_5/+CONTENTS

Here you haven't cleaned the port, it is still available in
WRKDIRPREFIX.

Is seems there's a difference in the current directory when the port is
already installed.

I played a little bit around, it seems we can remove the PLIST= from
linux_base. If Boris is not faster than me in committing the fix, I
will do it for fc4, fc6 and f7 (f8 has no PLIST=) as my time permits...

Bye,
Alexander.

> >        6 /var/db/pkg/linux_base-fc6-6_5/+CONTENTS
> >        6 /var/db/pkg/linux_base-fc6-6_5/+CONTENTS
> >        6 /var/db/pkg/linux_base-fc6-6_5/+CONTENTS
> >  rm -rf
> >    20067 /var/db/pkg/linux_base-fc6-6_5/+CONTENTS
> >    20067 /var/db/pkg/linux_base-fc6-6_5/+CONTENTS
> >    20067 /var/db/pkg/linux_base-fc6-6_5/+CONTENTS
> >    20067 /var/db/pkg/linux_base-fc6-6_5/+CONTENTS
> >    20067 /var/db/pkg/linux_base-fc6-6_5/+CONTENTS
> 
> 
> 


-- 
I just had my entire INTESTINAL TRACT coated with TEFLON!
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080331052521.79b4c0f9>