Re: portmaster options
On Fri, 12 Oct 2012 04:35:43 + (UTC), jb wrote: Hi, what is the diff between --index and --index-only According to man portmaster there are some options that control the behaviour regarding the use of INDEX: --no-index-fetch skip fetching the INDEX file --index use INDEX-[7-9] exclusively to check if a port is up to date --index-first use the INDEX for status, but double-check with the port --index-only do not try to use /usr/ports. For updating ports when no /usr/ports directory is present the -PP|--packages-only option is required. See the ENVIRONMENT section below for additional requirements. This means --index-only is to be used when using portmaster for binary installs without an installed ports collection. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmaster options
Polytropon freebsd at edvax.de writes: On Fri, 12 Oct 2012 04:35:43 + (UTC), jb wrote: Hi, what is the diff between --index and --index-only ... --index use INDEX-[7-9] exclusively to check if a port is up to date ... --index-only do not try to use /usr/ports. For updating ports when no /usr/ports directory is present the -PP|--packages-only option is required. See the ENVIRONMENT section below for additional requirements. This means --index-only is to be used when using portmaster for binary installs without an installed ports collection. Well, yes, BUT they seem to be redundant (that's why I asked). # portmaster -L --index-only | egrep '(ew|ort) version|total install' === New version available: smartmontools-5.43_1 === 618 total installed ports === 1 has a new version available # portmaster -L --index | egrep '(ew|ort) version|total install' === New version available: smartmontools-5.43_1 === 618 total installed ports === 1 has a new version available # ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmaster options
jb jb.1234abcd at gmail.com writes: ... --index-only do not try to use /usr/ports. For updating ports when no /usr/ports directory is present the -PP|--packages-only option is required. See the ENVIRONMENT section below for additional requirements. ... And -PP|--packages-only option implies index only entry behavior, so there is redundancy here as well. Does anybody know where this --index-only option really matter ? jb ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmaster options
On 10/12/2012 01:57 PM, jb wrote: jb jb.1234abcd at gmail.com writes: ... --index-only do not try to use /usr/ports. For updating ports when no /usr/ports directory is present the -PP|--packages-only option is required. See the ENVIRONMENT section below for additional requirements. ... And -PP|--packages-only option implies index only entry behavior, so there is redundancy here as well. Does anybody know where this --index-only option really matter ? jb Well /usr/local/sbin/portmaster is a _big_ shell script You could read through it to find the answer to your question This e-mail message, including any attachment(s), is intended solely for the addressee or addressees. Any views or opinions presented herein are solely those of the author and do not necessarily represent those of OSE. If you are not the intended recipient of this communication please return this e-mail message and the attachment(s) to the sender and delete and destroy all copies. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmaster options
On Fri, 12 Oct 2012 11:34:17 + (UTC), jb wrote: Polytropon freebsd at edvax.de writes: On Fri, 12 Oct 2012 04:35:43 + (UTC), jb wrote: Hi, what is the diff between --index and --index-only ... --index use INDEX-[7-9] exclusively to check if a port is up to date ... --index-only do not try to use /usr/ports. For updating ports when no /usr/ports directory is present the -PP|--packages-only option is required. See the ENVIRONMENT section below for additional requirements. This means --index-only is to be used when using portmaster for binary installs without an installed ports collection. Well, yes, BUT they seem to be redundant (that's why I asked). # portmaster -L --index-only | egrep '(ew|ort) version|total install' === New version available: smartmontools-5.43_1 === 618 total installed ports === 1 has a new version available # portmaster -L --index | egrep '(ew|ort) version|total install' === New version available: smartmontools-5.43_1 === 618 total installed ports === 1 has a new version available # Did you test this with or _without_ an actually installed ports collection? If you don't have one installed, --index probably won't work. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmaster options
Polytropon freebsd at edvax.de writes: ... Well, yes, BUT they seem to be redundant (that's why I asked). # portmaster -L --index-only | egrep '(ew|ort) version|total install' === New version available: smartmontools-5.43_1 === 618 total installed ports === 1 has a new version available # portmaster -L --index | egrep '(ew|ort) version|total install' === New version available: smartmontools-5.43_1 === 618 total installed ports === 1 has a new version available # Did you test this with or _without_ an actually installed ports collection? If you don't have one installed, --index probably won't work. # mv /usr/ports /usr/ports-saved # portmaster -L --index-only | egrep '(ew|ort) version|total install' /tmp/d-85964-index/INDEX-9.bz2100% of 1619 kB 185 kBps === New version available: smartmontools-5.43_1 === 618 total installed ports === 1 has a new version available # portmaster -L --index | egrep '(ew|ort) version|total install' /tmp/d-87852-index/INDEX-9.bz2100% of 1619 kB 125 kBps 00m00s Terminated # Well, the second entry outcome (with --index option) looks like a bug to me. jb ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmaster options
On Fri, 12 Oct 2012 04:35:43 + (UTC) jb wrote: Hi, what is the diff between --index and --index-only From a *very* quick look, it appears that --index-only means don't use the the port-directory at all, so that the index file is downloaded into /tmp, and some checks and optimizations are skipped or done less efficiently. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmaster options
RW rwmaillists at googlemail.com writes: On Fri, 12 Oct 2012 04:35:43 + (UTC) jb wrote: Hi, what is the diff between --index and --index-only From a *very* quick look, it appears that --index-only means don't use the the port-directory at all, so that the index file is downloaded into /tmp, and some checks and optimizations are skipped or done less efficiently. ... # ls -al /usr/ports/ ... -rw-r--r-- 1 root wheel 26881412 Oct 12 07:47 INDEX-7 -rw-r--r-- 1 root wheel 26765446 Oct 12 07:47 INDEX-8 -rw-r--r-- 1 root wheel 26715339 Oct 12 13:28 INDEX-9 -rw-r--r-- 1 root wheel 1658547 Oct 12 12:01 INDEX-9.bz2 ... # # find /tmp -name *INDEX* # portmaster -L --index-only | egrep '(ew|ort) version|total install' === New version available: smartmontools-5.43_1 === 618 total installed ports === 1 has a new version available # find /tmp -name *INDEX* Nope :-) jb ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmaster options
On Fri, 12 Oct 2012 13:42:10 + (UTC), jb wrote: RW rwmaillists at googlemail.com writes: On Fri, 12 Oct 2012 04:35:43 + (UTC) jb wrote: Hi, what is the diff between --index and --index-only From a *very* quick look, it appears that --index-only means don't use the the port-directory at all, so that the index file is downloaded into /tmp, and some checks and optimizations are skipped or done less efficiently. ... # ls -al /usr/ports/ ... -rw-r--r-- 1 root wheel 26881412 Oct 12 07:47 INDEX-7 -rw-r--r-- 1 root wheel 26765446 Oct 12 07:47 INDEX-8 -rw-r--r-- 1 root wheel 26715339 Oct 12 13:28 INDEX-9 -rw-r--r-- 1 root wheel 1658547 Oct 12 12:01 INDEX-9.bz2 ... # # find /tmp -name *INDEX* # portmaster -L --index-only | egrep '(ew|ort) version|total install' === New version available: smartmontools-5.43_1 === 618 total installed ports === 1 has a new version available # find /tmp -name *INDEX* Nope :-) But this? # portmaster -L --index | egrep '(ew|ort) version|total install' /tmp/d-87852-index/INDEX-9.bz2100% of 1619 kB 125 kBps 00m00s Terminated This is with --index and _no_ ports collection in the default location (example quoted from your message)... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmaster options
Polytropon freebsd at edvax.de writes: ... But this? # portmaster -L --index | egrep '(ew|ort) version|total install' /tmp/d-87852-index/INDEX-9.bz2100% of 1619 kB 125 kBps 00m00s Terminated This is with --index and _no_ ports collection in the default location (example quoted from your message)... The above (aborted ?) entry did not create any /tmp die files - this will be obvious below. I repeated the procedure once again, with extra tests. [root@localhost ~]# mv /usr/ports /usr/ports-saved [root@localhost ~]# ls -al /tmp/d d-49774-index/ dbus-VVS2cduIFg dbus-cgVqiePRiB dbus-pt6vB9UUJ6 dbus-4inUXwgfJ4 dbus-Y2iXdHF5tz dbus-fsMikdzeLa dbus-u5N9XsFQwT dbus-DoADJZr2PE dbus-ZGcPBBe763 dbus-o2yUi7puUT dbus-vT3uAQQB6U dbus-FEJgZRlX7B dbus-ZmBHPDrpWD dbus-oVPu6XWzrw dbus-zrcvtjVO62 dbus-KPYiGOw8UL dbus-c36HAD5e3q dbus-paXxX0f1fy [root@localhost ~]# ls -al /tmp/d-49774-index/ total 8 drwx-- 2 jbwheel 512 Oct 7 00:19 . drwxrwxrwt 23 root wheel 2048 Oct 12 15:35 .. [root@localhost ~]# find /tmp -name *INDEX* [root@localhost ~]# portmaster -L --index-only | egrep '(ew|ort) version|total install' /tmp/d-93752-index/INDEX-9.bz2100% of 1619 kB 185 kBps === New version available: smartmontools-5.43_1 === 618 total installed ports === 1 has a new version available # ls -al /tmp/d d-49774-index/ dbus-FEJgZRlX7B dbus-Y2iXdHF5tz dbus-c36HAD5e3q dbus-o2yUi7puUT dbus-pt6vB9UUJ6 dbus-zrcvtjVO62 dbus-4inUXwgfJ4 dbus-KPYiGOw8UL dbus-ZGcPBBe763 dbus-cgVqiePRiB dbus-oVPu6XWzrw dbus-u5N9XsFQwT dbus-DoADJZr2PE dbus-VVS2cduIFg dbus-ZmBHPDrpWD dbus-fsMikdzeLa dbus-paXxX0f1fy dbus-vT3uAQQB6U # ls -al /tmp/d-49774-index/ total 8 drwx-- 2 jbwheel 512 Oct 7 00:19 . drwxrwxrwt 23 root wheel 2048 Oct 12 16:00 .. [root@localhost ~]# find /tmp -name *INDEX* /tmp/INDEX-9 /tmp/INDEX-9.bz2 [root@localhost ~]# ls -al /tmp/*INDEX* -rw-r--r-- 1 root wheel 26715339 Oct 12 16:00 /tmp/INDEX-9 -rw-r--r-- 1 root wheel 1658547 Oct 12 12:01 /tmp/INDEX-9.bz2 [root@localhost ~]# portmaster -L --index | egrep '(ew|ort) version|total install' Terminated [root@localhost ~]# ls -al /tmp/d d-49774-index/ dbus-VVS2cduIFg dbus-cgVqiePRiB dbus-pt6vB9UUJ6 dbus-4inUXwgfJ4 dbus-Y2iXdHF5tz dbus-fsMikdzeLa dbus-u5N9XsFQwT dbus-DoADJZr2PE dbus-ZGcPBBe763 dbus-o2yUi7puUT dbus-vT3uAQQB6U dbus-FEJgZRlX7B dbus-ZmBHPDrpWD dbus-oVPu6XWzrw dbus-zrcvtjVO62 dbus-KPYiGOw8UL dbus-c36HAD5e3q dbus-paXxX0f1fy [root@localhost ~]# ls -al /tmp/d-49774-index/ total 8 drwx-- 2 jbwheel 512 Oct 7 00:19 . drwxrwxrwt 23 root wheel 2048 Oct 12 16:00 .. [root@localhost ~]# find /tmp -name *INDEX* /tmp/INDEX-9 /tmp/INDEX-9.bz2 [root@localhost ~]# ls -al /tmp/*INDEX* -rw-r--r-- 1 root wheel 26715339 Oct 12 16:00 /tmp/INDEX-9 -rw-r--r-- 1 root wheel 1658547 Oct 12 12:01 /tmp/INDEX-9.bz2 [root@localhost ~]# rm /tmp/INDEX* [root@localhost ~]# find /tmp -name *INDEX* [root@localhost ~]# # portmaster -L --index | egrep '(ew|ort) version|total install' Terminated [root@localhost ~]# [root@localhost ~]# find /tmp -name *INDEX* [root@localhost ~]# jb ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmaster options
jb jb.1234abcd at gmail.com writes: ... I have doubts about these options use, so I filed a PR#: http://www.freebsd.org/cgi/query-pr.cgi?pr=172651 jb ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
portmaster options
Hi, what is the diff between --index and --index-only jb ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org