pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: (x11/antiright) Re: Heads-up: SUBST blocks are stricter now



Hello Makoto,

Makoto Fujiwara writes:
> I may be looking bad way, but for
> (x11/antiright) have lines in Makefile
>
>     29  SUBST_CLASSES+=         hpath
>     30  SUBST_STAGE.hpath=      pre-configure
>     31  SUBST_MESSAGE.hpath=    Fixing hardcoded paths.
>     32  SUBST_FILES.hpath=      configure
>     33  SUBST_SED.hpath=        -e 's|^\(INSTALL[        :]*=\).*|\1${INSTALL}|'
>     34  SUBST_SED.hpath+=       -e 's|/usr/pkg|${PREFIX}|'
>
> Which unfortunately edit the file, but the result is the
> same, for ${PREFIX} was /usr/pkg in this case,
> and
>   SUBST_NOOP_OK=no
>
> claims there is no change,
> (Am I wrong ?)

In these cases `SUBST_NOOP_OK.hpath= yes' is still needed because
PREFIX could be different than `/usr/pkg' and in that way the subst
class should do the right thing despite PREFIX.


Home | Main Index | Thread Index | Old Index