pkg aparently not respecting subversion make.conf settings

Simon Wright simon.wright at gmx.net
Wed Jun 11 20:13:25 UTC 2014


On 11/06/2014 00:19, olli hauer wrote:
> On 2014-06-11 00:02, Simon Wright wrote:
>> On 10/06/2014 22:35, olli hauer wrote:
> ...
>>>>>>
>>>>>> poudriere bulk -j freebsd:9:x86:64 -C
>>>>>> ports-mgmt/portdowngrade
>>>>>>
>>>>>> portdowngrade is removed from the repo and then the
>>>>>> rebuild begins:
>>>>>>
>>>>> :
> ..
>
>
>>> Not easy to tell since we do not have the list of ports you
>>> feed into pd
>>>
>>> Perhaps you find the answer in the buildlogs
>>>
>>> $ grep devel/subversion
>>> /usr/local/poudriere/data/logs/bulk/$YourBuild/latest/logs/*.log
>>>
>>>
>>>
If you have identified a port that depends on devel/subversion
>>> and not devel/subversion17 check the Makefile of this port
>>> has a switch for WITH_SUBVERSION_VER
>>
>> I've checked these log files and the only thing that references
>> subversion is the subversion 1.8.9 port itself.
>>
>> I tried just deleting the 1.8.9 package file and re-running
>> poudriere and 1.8.9 is still rebuilt.
>>
>> As per your earlier mail Olli, I also tried this in case
>> something in the pkg database was playing up:
>>
>> pkg delete devel/subversion17 pkg install devel/subversion pkg
>> set -o devel/subversion:devel/subversion17 pkg delete
>> devel/subversion pkg install devel/subversion17
>>
>> No change, 1.8.9 is still pulled in on the poudriere build of
>> portdowngrade build.
>>
>> ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes
>> WRKDIRPREFIX=/wrkdirs PACKAGES=/packages DISTDIR=/distfiles
>> #### /usr/local/etc/poudriere.d/make.conf ####
>> WITH_GECKO=libxul NOI4B=1 OPTIONS_UNSET+=X11 WITH_PKGNG=yes
>> WITH_CUPS=YES CUPS_OVERWRITE_BASE=YES WITHOUT_LPR=YES
>> WITH_BDB_VER=5 WITH_SSP_PORTS=yes WITH_VIM_OPTIONS=yes
>> JAVA_PREFERRED_PORTS=JAVA_PORT_NATIVE_OPENJDK_JDK_1_7
>> WITH_SUBVERSION_VER=17 WITHOUT_PKGTOOLS=1
>> VALID_CATEGORIES+=local DISABLE_MAKE_JOBS=poudriere ---End
>> make.conf---
>>
>> <snipped>
>>
>> =======================<phase: run-depends ===>
>> portdowngrade-1.5 depends on executable: svn - not found ===>
>> Verifying install for svn in /usr/ports/devel/subversion ===>
>> Installing existing package /packages/All/subversion-1.8.9.txz
>> Installing subversion-1.8.9...Installing
>> apr-1.5.1.1.5.3...Installing db5-5.3.28... done Installing
>> expat-2.1.0... done Installing gdbm-1.11...Installing
>> gettext-0.18.3.1_1...Installing libiconv-1.14_3... done
>>
>>
>> I tried 'pkg info -rx subversion' to see whether an old port
>> was responsible:
>>
>> [simon at vmserver04 ~]$ pkg info -rx subversion
>> subversion17-1.7.17:
>>
>> If I build from ports with portupgrade the build works as
>> expected and portdowngrade uses the installed subversion17.
>>
>> It seems a little odd . . . .
>
> No, not so strange as you think.
>
> $ grep svn portdowngrade/Makefile RUN_DEPENDS=
> svn:${PORTSDIR}/devel/subversion
>
> Do the following $ cd ports-mgmt/portdowngrade $ fetch
> http://people.freebsd.org/~ohauer/diffs/portdowngrade_svn.diff $
> patch < portdowngrade_svn.diff
>
> Now this port uses the correct subversion port.
>
> If it works for you, be so kind and open a PR so it will be added
> to the official port.

Tested, works. Extract of my Poudriere log:

=======================<phase: run-depends
===>   portdowngrade-1.5 depends on executable: svn - not found
===>    Verifying install for svn in /usr/ports/devel/subversion17
===>   Installing existing package /packages/All/subversion17-1.7.17.txz
Installing subversion17-1.7.17...Installing
apr-1.5.1.1.5.3...Installing db5-5.3.28... done
Installing expat-2.1.0... done

PR submitted:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190946

Many thanks Olli!

Simon.


More information about the freebsd-ports mailing list