Re: portmaster with FLAVOR support available for testing

2017-12-15 Thread Rainer Hurling
Am 15.12.2017 um 22:09 schrieb Stefan Esser:
> Am 15.12.17 um 16:11 schrieb Rainer Hurling:
>> Am 15.12.2017 um 15:48 schrieb Walter Schwarzenfeld:
>>> Yes, if it don't work in the port the port is the problem.
>>>
>>> Rainer Hurling was filed a PR
>>>
>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223764
>>
>> Yes, Walter, your problem is another ports problem as mine, first
>> described in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219641,
>> comment #23, than doubled by PR #223764.
>>
>> In this thread, with portmaster, I asked why portmaster deinstalls
>> py27-qt5-core before it tries to install py36-qt5-core. This is not the
>> case with pure ports make mechanism.
> 
> Please try again with the version I just committed. It seems, that there
> was a path through the program that just removed the passed flavor and
> then proceeded to operate on the default flavor (py27 in this case).
> 
> Sorry for these problems with the port. There are so many possible cases
> and it is impossible for me to achieve sufficient coverage in my tests.
> 
> But I'll try to always quickly fix such problems, when they are brought
> to my attention.
> 
> This was a real problem in portmaster, but problems with ports that
> install files in places that don't differ for different flavors will
> continue to cause the error message reported as an assumed portmaster
> bug multiple times in the last few days.
> 
> Whenever the error message indicates that files are installed in the
> same place, the problem is in the port, not in portmaster.
> 
> Regards, STefan
> 

Hi STefan,

with r456417, portmaster 3.17.11_3, your first approach does not work:


#portmaster -m 'FLAVOR=py36' devel/py-qt5-core
===>>> Currently installed version: py27-qt5-core-5.7.1
===>>> Port directory: /usr/ports/devel/py-qt5-core
===>>> Gathering distinfo list for installed ports
===>>> Launching 'make checksum' for devel/py-qt5-core in background
===>>> Gathering dependency list for devel/py-qt5-core from ports
===>>> Launching child to install devel/py-sip@py27
===>>> py27-qt5-core-5.7.1 >> devel/py-sip@py27 (1/1)
===>>> Port directory: /usr/ports/devel/py-sip@py27
===>>> Launching 'make checksum' for devel/py-sip@py27 in background
===>>> Gathering dependency list for devel/py-sip@py27 from ports
===>>> Initial dependency check complete for devel/py-sip@py27
===>>> Continuing initial dependency check for devel/py-qt5-core
===>>> Initial dependency check complete for devel/py-qt5-core
===>>> py27-qt5-core-5.7.1 >> (1)
===>>> The following actions will be taken if you choose to proceed:
Re-install py27-qt5-core-5.7.1
Install devel/py-sip@py27
===>>> Proceed? y/n [y]


FLAVOR completely get lost in some way ...


The second approach, brought up by Mathieu Arnold, works fine:

#portmaster devel/py-qt5-core@py36


The installation does not work with this special port, because of the
conflict with /usr/local/bin/pyuic5, already installed by
devel/py-qt5-core@py27. But this is another story ...


Many thanks for the last patches to portmaster.
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: portmaster with FLAVOR support available for testing

2017-12-15 Thread Stefan Esser
Am 15.12.17 um 16:11 schrieb Rainer Hurling:
> Am 15.12.2017 um 15:48 schrieb Walter Schwarzenfeld:
>> Yes, if it don't work in the port the port is the problem.
>>
>> Rainer Hurling was filed a PR
>>
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223764
> 
> Yes, Walter, your problem is another ports problem as mine, first
> described in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219641,
> comment #23, than doubled by PR #223764.
> 
> In this thread, with portmaster, I asked why portmaster deinstalls
> py27-qt5-core before it tries to install py36-qt5-core. This is not the
> case with pure ports make mechanism.

Please try again with the version I just committed. It seems, that there
was a path through the program that just removed the passed flavor and
then proceeded to operate on the default flavor (py27 in this case).

Sorry for these problems with the port. There are so many possible cases
and it is impossible for me to achieve sufficient coverage in my tests.

But I'll try to always quickly fix such problems, when they are brought
to my attention.

This was a real problem in portmaster, but problems with ports that
install files in places that don't differ for different flavors will
continue to cause the error message reported as an assumed portmaster
bug multiple times in the last few days.

Whenever the error message indicates that files are installed in the
same place, the problem is in the port, not in portmaster.

Regards, STefan
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: portmaster with FLAVOR support available for testing

2017-12-15 Thread Rainer Hurling
Am 15.12.2017 um 16:20 schrieb Mathieu Arnold:
> Le 15/12/2017 à 12:00, Rainer Hurling a écrit :
>> Hi Stefan and others,
>>
>> I just tried to install devel/py-qt5-core for Python 3.6, beside to an
>> already installed py27-qt5-core-5.7.1, with the following command
>>
>>   portmaster -m 'FLAVOR=py36' devel/py-qt5-core
>>
>> and it ends up with 
> 
> I have no idea how portmaster works, but I hope it works the same as
> poudriere, so you should probably do this:
> 
> portmaster devel/py-qt5-core@py36
> 
> instead.
> 
> 

Hi Mathieu,

Thanks for your answer. My attempt was from a private conversation with
Stefan, who suggested to try to install py36 ports via

portmaster -m 'FLAVOR=py36' portname

and to report back. That failed, like described before.

Now I also tried your suggestion with 'portmaster
devel/py-qt5-core@py36', which stopped with the following failure:


[..snip..]
Compiling
/usr/ports/devel/py-qt5-core/work-py27/stage/usr/local/lib/python2.7/site-packages/PyQt5/uic/widget-plugins/qtwebenginewidgets.py
...
Compiling
/usr/ports/devel/py-qt5-core/work-py27/stage/usr/local/lib/python2.7/site-packages/PyQt5/uic/widget-plugins/qtwebkit.py
...
> Compressing man pages (compress-man)
===>>> Starting check for runtime dependencies
===>>> Gathering dependency list for devel/py-qt5-core@py36 from ports
===>>> Dependency check complete for devel/py-qt5-core@py36
===>  Installing for py27-qt5-core-5.7.1
===>  Checking if py27-qt5-core already installed
===>   py27-qt5-core-5.7.1 is already installed
  You may wish to ``make deinstall'' and install this port again
  by ``make reinstall'' to upgrade it properly.
  If you really wish to overwrite the old port of py27-qt5-core
  without deleting it first, set the variable "FORCE_PKG_REGISTER"
  in your environment or the "make install" command line.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/devel/py-qt5-core
*** Error code 1
Stop.
make: stopped in /usr/ports/devel/py-qt5-core
===>>> Installation of py36-qt5-core-5.7.1 (devel/py-qt5-core@py36) failed
===>>> Aborting update
===>>> Re-installation of py36-sip-4.19.2,1 complete
===>>> You can restart from the point of failure with this command line:
   portmaster  devel/py-qt5-core@py36
This command has been saved to /tmp/portmasterfail.txt


Obviously, it does not work as expected, @py36 has no effect.

I think, it would be nice, if portmaster behaves as much as possible
like ports make and pkg.

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: portmaster with FLAVOR support available for testing

2017-12-15 Thread Mathieu Arnold
Le 15/12/2017 à 12:00, Rainer Hurling a écrit :
> Hi Stefan and others,
>
> I just tried to install devel/py-qt5-core for Python 3.6, beside to an
> already installed py27-qt5-core-5.7.1, with the following command
>
>   portmaster -m 'FLAVOR=py36' devel/py-qt5-core
>
> and it ends up with 

I have no idea how portmaster works, but I hope it works the same as
poudriere, so you should probably do this:

portmaster devel/py-qt5-core@py36

instead.


-- 
Mathieu Arnold




signature.asc
Description: OpenPGP digital signature


Re: portmaster with FLAVOR support available for testing

2017-12-15 Thread Rainer Hurling
Am 15.12.2017 um 15:48 schrieb Walter Schwarzenfeld:
> Yes, if it don't work in the port the port is the problem.
> 
> Rainer Hurling was filed a PR
> 
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223764

Yes, Walter, your problem is another ports problem as mine, first
described in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219641,
comment #23, than doubled by PR #223764.

In this thread, with portmaster, I asked why portmaster deinstalls
py27-qt5-core before it tries to install py36-qt5-core. This is not the
case with pure ports make mechanism.

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: portmaster with FLAVOR support available for testing

2017-12-15 Thread Walter Schwarzenfeld

Yes, if it don't work in the port the port is the problem.

Rainer Hurling was filed a PR

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223764

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: portmaster with FLAVOR support available for testing

2017-12-15 Thread Stefan Esser
Am 15.12.17 um 13:36 schrieb Walter Schwarzenfeld:
> I try to install py27-qt5-core and py35-qt5-core in the port, get:
> 
> ===>   Registering installation for py35-qt5-core-5.7.1
> Installing py35-qt5-core-5.7.1...
> pkg-static: py35-qt5-core-5.7.1 conflicts with py27-qt5-core-5.7.1 (installs
> files into the same place).  Problematic file:
> /usr/local/share/py-sip/PyQt5/QtCore/QtCoremod.sip
> *** Error code 70
> 
> It is the question is it a problem of the port or portmaster ? (or both?)

Hi Walter,

this appears to be a restriction of the port. It puts files into
${PYTHON_SITELIBDIR}, which depends on the Python version, but also
into ${PREFIX}/share/py-sip/PyQt5/QtCore/ independently of the Python
version.

If you want to test, whether portmaster plays a role, you can just
build and install the port directly.

You'll see, that the same message is printed and that portmaster is
not part of the problem ;-)

Gruß aus Köln, STefan
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: portmaster with FLAVOR support available for testing

2017-12-15 Thread Walter Schwarzenfeld

I try to install py27-qt5-core and py35-qt5-core in the port, get:

===>   Registering installation for py35-qt5-core-5.7.1
Installing py35-qt5-core-5.7.1...
pkg-static: py35-qt5-core-5.7.1 conflicts with py27-qt5-core-5.7.1 
(installs files into the same place).  Problematic file: 
/usr/local/share/py-sip/PyQt5/QtCore/QtCoremod.sip

*** Error code 70

It is the question is it a problem of the port or portmaster ? (or both?)


___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: portmaster with FLAVOR support available for testing

2017-12-15 Thread Rainer Hurling

Hi Stefan and others,

I just tried to install devel/py-qt5-core for Python 3.6, beside to an 
already installed py27-qt5-core-5.7.1, with the following command


  portmaster -m 'FLAVOR=py36' devel/py-qt5-core

and it ends up with


[..snip..]
===>>> Creating a backup package for old version py27-qt5-core-5.7.1
Creating package for py27-qt5-core-5.7.1
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 
packages in the universe):

Installed packages to be REMOVED:
py27-qt5-core-5.7.1
Number of packages to be removed: 1
The operation will free 5 MiB.
[1/1] Deinstalling py27-qt5-core-5.7.1...
[1/1] Deleting files for py27-qt5-core-5.7.1: 100%
===>  Installing for py36-qt5-core-5.7.1
===>  Checking if py36-qt5-core already installed
===>   Registering installation for py36-qt5-core-5.7.1 as automatic
Installing py36-qt5-core-5.7.1...
===>>> Upgrade of py27-qt5-core-5.7.1 to py36-qt5-core-5.7.1 complete


So it seems, that portmaster first removed the version for Python 2.7 
and after that installs the version for Python 3.6.


Note, that devel/py-qt5-core is a problematic port because of its 
conflict of /usr/local/bin/pyuic5, as described in [1].


Any ideas, what is going on here with portmaster? Thanks for any help.

Best regards,
Rainer

[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219641, comment #23


Am 13.12.2017 um 22:39 schrieb Stefan Esser:

I have created a new version of portmaster with FLAVOR support.

Before committing the changes to the ports repository, I'd like to receive
some feedback from users.

My tests have only covered port upgrades, not any of the other features
offered by portmaster. In fact, I'd like to remove several of the other
features, which may have been of use before PKG_NG (e.g. functions that
use the INDEX file, and in fact also the -P/-PP/--packages-* features).


*** Please let me know, if you want to receive the new version by personal
*** mail (I do not want to spam the mail-list by posting a 100KB+ file).


The following is example output from an portmaster upgrade run that I just
performed. It includes upgrades of flavored and non-flavored ports and the
re-installation of ports that have been converted to flavors Without wersion
update:

# portmaster -dgw -a

[...]

===>>> Launching child to update py27-werkzeug-0.12.2 to py27-werkzeug-0.13

===>>> All >> py27-werkzeug-0.12.2 (5/5)

===>>> Currently installed version: py27-werkzeug-0.12.2
===>>> Port directory: /usr/svn/ports/head/www/py-werkzeug

===>>> Launching 'make checksum' for www/py-werkzeug in background
===>>> Gathering dependency list for www/py-werkzeug from ports
===>>> Launching child to install security/py-openssl@py27

===>>> All >> py27-werkzeug-0.12.2 >> security/py-openssl@py27 (6/6)

===>>> Currently installed version: py27-openssl-17.3.0
===>>> Port directory: /usr/svn/ports/head/security/py-openssl@py27

===>>> Launching 'make checksum' for security/py-openssl@py27 in background
===>>> Gathering dependency list for security/py-openssl@py27 from ports
===>>> Launching child to install devel/py-six@py27

[...]

===>>> The following actions were performed:
Upgrade of avidemux-2.6.11_6 to avidemux-2.6.11_7
Upgrade of libva-intel-driver-1.8.3_1 to libva-intel-driver-2.0.0
Upgrade of nghttp2-1.28.0 to nghttp2-1.28.0_1
Upgrade of py27-psutil-5.4.1 to py27-psutil-5.4.2
Re-installation of py27-six-1.11.0
Re-installation of py27-cffi-1.7.0
Re-installation of py27-asn1crypto-0.22.0
Re-installation of py27-enum34-1.1.6
Re-installation of py27-idna-2.5
Re-installation of py27-ipaddress-1.0.18
Re-installation of py27-cryptography-2.0.3
Re-installation of py27-openssl-17.3.0
Upgrade of py27-werkzeug-0.12.2 to py27-werkzeug-0.13
Upgrade of sbcl-1.4.1,1 to sbcl-1.4.2,1
Upgrade of scons-2.5.1_1 to scons-3.0.1
Upgrade of xfce4-notifyd-0.4.0 to xfce4-notifyd-0.4.1

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: portmaster with FLAVOR support available for testing

2017-12-14 Thread Walter Schwarzenfeld

Sorry, my fault:

I have to do

portmaster devel/py27-setuptools

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: portmaster with FLAVOR support available for testing

2017-12-14 Thread Walter Schwarzenfeld

Btw, I think it has nothing to do with FLAVOR, I found this (bug?)

sudo portmaster py27-setuptools

===>>> Working on:
    py27-setuptools-36.5.0
    py27-setuptools_scm-1.15.5

I only try to build py27-setuptools and portmaster wants to build 
py27-setuptools_scm too.


(The old portmaster version and the new)

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: portmaster with FLAVOR support available for testing

2017-12-13 Thread Pavel Timofeev
2017-12-14 0:51 GMT+03:00 Jonathan Chen :
> On 14 December 2017 at 10:39, Stefan Esser  wrote:
>> I have created a new version of portmaster with FLAVOR support.
>>
>> Before committing the changes to the ports repository, I'd like to receive
>> some feedback from users.
>>
>> My tests have only covered port upgrades, not any of the other features
>> offered by portmaster. In fact, I'd like to remove several of the other
>> features, which may have been of use before PKG_NG (e.g. functions that
>> use the INDEX file, and in fact also the -P/-PP/--packages-* features).
>>
>>
>> *** Please let me know, if you want to receive the new version by personal
>> *** mail (I do not want to spam the mail-list by posting a 100KB+ file).
>
> Perhaps you could create a new branch on
> https://github.com/freebsd/portmaster with your FLAVOR support so that
> anyone who is interested can clone a copy and play around with it?
>
> Cheers.
> --
> Jonathan Chen 

mine +1 for that.
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: portmaster with FLAVOR support available for testing

2017-12-13 Thread Kevin Oberman
On Wed, Dec 13, 2017 at 1:39 PM, Stefan Esser  wrote:

> I have created a new version of portmaster with FLAVOR support.
>
> Before committing the changes to the ports repository, I'd like to receive
> some feedback from users.
>
> My tests have only covered port upgrades, not any of the other features
> offered by portmaster. In fact, I'd like to remove several of the other
> features, which may have been of use before PKG_NG (e.g. functions that
> use the INDEX file, and in fact also the -P/-PP/--packages-* features).
>

 I agree that removal of the broken -P and -PP options is a good thing, but
deleting the INDEX will break the valuable --clean-distfiles option. AFAIK,
that is the reason that they are there.

If you replace the index with data from the pkgdb, then it's OK. I'll have
to look at the schema to see it that is available. I somehow don't think it
is, but I have not looked at it for a while.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkober...@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: portmaster with FLAVOR support available for testing

2017-12-13 Thread Jonathan Chen
On 14 December 2017 at 10:39, Stefan Esser  wrote:
> I have created a new version of portmaster with FLAVOR support.
>
> Before committing the changes to the ports repository, I'd like to receive
> some feedback from users.
>
> My tests have only covered port upgrades, not any of the other features
> offered by portmaster. In fact, I'd like to remove several of the other
> features, which may have been of use before PKG_NG (e.g. functions that
> use the INDEX file, and in fact also the -P/-PP/--packages-* features).
>
>
> *** Please let me know, if you want to receive the new version by personal
> *** mail (I do not want to spam the mail-list by posting a 100KB+ file).

Perhaps you could create a new branch on
https://github.com/freebsd/portmaster with your FLAVOR support so that
anyone who is interested can clone a copy and play around with it?

Cheers.
-- 
Jonathan Chen 
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"