From: Aristedes Maniatis on
I have a package which is not built from a port (it is commercial software). I've put an +IGNOREME file in the package folder. But portmaster will not ignore it:

#portmaster -a

[snip...]

===>>> Proceed? y/n [y]

===>>> Starting build for for ports that need updating <<<===

===>>> Launching child to update CGatePro-5.3.5

===>>> No ORIGIN in /var/db/pkg/CGatePro-5.3.5/+CONTENTS
===>>> Aborting update

===>>> Update for CGatePro-5.3.5 failed
===>>> Aborting update



Unless there is some clear documented reason, portmaster should ignore ports which are marked to be ignored. The documentation reads:

If you do a regular update of the port, or if the
-a option is being used you will be asked if you want to update
the port anyway.

I am not being asked, it just fails the entire port upgrade process, unless I use -ia and specifically exclude this package. I don't know enough about package files to know why ORIGIN is required, even for packages which aren't generated from the ports system.



Ari


--
-------------------------->
Aristedes Maniatis
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001 fax +61 2 9550 4001
GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Garrett Cooper on
On Fri, Apr 23, 2010 at 10:43 PM, Aristedes Maniatis <ari(a)ish.com.au> wrote:
> I have a package which is not built from a port (it is commercial software).
> I've put an +IGNOREME file in the package folder. But portmaster will not
> ignore it:

It's not ignoring it for -a (update).
Kind of funny though why this functionality exists if pkg_install
doesn't even check it. I've gotten a lot of noise similar to that
related to homegrown packages I've dealt with at work when running
pkg_add // pkg_create as it builds up package origins when it reads
the contents of the plists -- not sure why a ports-ism made it into
pkg_install though, but flz most likely knows why.

> #portmaster -a
>
> [snip...]
>
> ===>>> Proceed? y/n [y]
>
> ===>>> Starting build for for ports that need updating <<<===
>
> ===>>> Launching child to update CGatePro-5.3.5
>
> ===>>> No ORIGIN in /var/db/pkg/CGatePro-5.3.5/+CONTENTS
> ===>>> Aborting update
>
> ===>>> Update for CGatePro-5.3.5 failed
> ===>>> Aborting update
>
>
> Unless there is some clear documented reason, portmaster should ignore ports
> which are marked to be ignored. The documentation reads:
>
>        If you do a regular update of the port, or if the
>        -a option is being used you will be asked if you want to update
>        the port anyway.
>
> I am not being asked, it just fails the entire port upgrade process, unless
> I use -ia and specifically exclude this package. I don't know enough about
> package files to know why ORIGIN is required, even for packages which aren't
> generated from the ports system.

This I don't know (and is potentially a bug or a needed
enhancement with portmaster). dougb would be able to fill you in on
this.
Cheers,
-Garrett
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Doug Barton on
On 04/23/10 22:43, Aristedes Maniatis wrote:
> I have a package which is not built from a port (it is commercial
> software). I've put an +IGNOREME file in the package folder. But
> portmaster will not ignore it:
>
> #portmaster -a
>
> [snip...]
>
> ===>>> Proceed? y/n [y]
>
> ===>>> Starting build for for ports that need updating <<<===
>
> ===>>> Launching child to update CGatePro-5.3.5
>
> ===>>> No ORIGIN in /var/db/pkg/CGatePro-5.3.5/+CONTENTS
> ===>>> Aborting update
>
> ===>>> Update for CGatePro-5.3.5 failed
> ===>>> Aborting update
>
>
>
> Unless there is some clear documented reason, portmaster should ignore
> ports which are marked to be ignored.

You're right, and I see the bug. There are actually a few places where
the lack of ORIGIN leads to Bad Things happening where the +IGNOREME
file isn't checked, so I'm going to work on a more general solution for
this. Meanwhile you should be able to do 'portmaster -a -x CGatePro' and
have it work as expected.

> I don't know
> enough about package files to know why ORIGIN is required, even for
> packages which aren't generated from the ports system.

In the general case lack of ORIGIN indicates that the pkg directory for
that file is corrupt, which is a serious problem that requires user
attention. Also, most 3rd party packages contain an ORIGIN of some sort,
and portmaster does include code to handle "/usr/ports/foo/bar does not
exist, but the pkg directory has an +IGNOREME file" gracefully for this
exact reason. The case of "no ORIGIN at all but the pkg directory has an
+IGNOREME file" is sufficiently rare that the bug has so far been
unexposed. Congratulations! :)


Doug

--

... and that's just a little bit of history repeating.
-- Propellerheads

Improve the effectiveness of your Internet presence with
a domain name makeover! http://SupersetSolutions.com/

_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Doug Barton on
On 04/23/10 23:14, Garrett Cooper wrote:
>
> Kind of funny though why this functionality exists if pkg_install
> doesn't even check it.

The +IGNOREME file was a portupgrade invention that portmaster users
asked me to support. TMK the base ports tools have no knowledge of it.


hth,

Doug

--

... and that's just a little bit of history repeating.
-- Propellerheads

Improve the effectiveness of your Internet presence with
a domain name makeover! http://SupersetSolutions.com/

_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Aristedes Maniatis on
On 25/04/10 6:38 AM, Doug Barton wrote:
> On 04/23/10 22:43, Aristedes Maniatis wrote:
>> > I have a package which is not built from a port (it is commercial
>> > software). I've put an +IGNOREME file in the package folder. But
>> > portmaster will not ignore it:
>> >
>> > #portmaster -a
>> >
>> > [snip...]
>> >
>> > ===>>> Proceed? y/n [y]
>> >
>> > ===>>> Starting build for for ports that need updating<<<===
>> >
>> > ===>>> Launching child to update CGatePro-5.3.5
>> >
>> > ===>>> No ORIGIN in /var/db/pkg/CGatePro-5.3.5/+CONTENTS
>> > ===>>> Aborting update
>> >
>> > ===>>> Update for CGatePro-5.3.5 failed
>> > ===>>> Aborting update


I'd like to add one more point about this, which might be separate to the issue about +IGNOREME. portmaster -a compiles a list of all the ports it will upgrade or install and asks if you want to proceed. CGatePro is only examined AFTER that point. It does not appear in the list before the "Proceed? y/n" question.

In this case, since it is a package and not a port, why does portmaster look at it at all? There is no useful information available about whether it can be upgraded (I'm not running with -P). I don't really want to have to put IGNOREME in that package... I only did that to try and make portmaster ignore something it should already be ignoring.

Perhaps your improvements to ORIGIN handling will also deal with this.

Thank you for a great tool.

Regards
Ari


--
-------------------------->
Aristedes Maniatis
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001 fax +61 2 9550 4001
GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"