You are not logged in.

#1 2007-03-02 15:02:42

skymt
Member
Registered: 2006-11-27
Posts: 443

[solved] QT3 and QT4 profiles

I'm sure most experienced Archers have run into the way QT versions are handled in Arch. Basically, build environment variables for QT3 are set in /etc/profile.d/qt.sh, while those for QT4 are set in /etc/profile.d/qt4.sh. The qt-config tool is used to switch between these two profiles.

Now my question: what's the right way to handle the situation in pkgbuilds? Most that I've seen just give it a go, and fail if the wrong QT profile is enabled. A few use the qt-config utility to switch to the version the pkgbuild uses, then switch back at the end. I've found that sourcing the actual profile script in the build function will make it build correctly no matter which profile is actually enabled.

Which way is correct?



EDIT: I've decided on sourcing, based on the recommendation of srabd in the keepassx comment thread in the AUR.

Last edited by skymt (2007-03-05 15:39:40)

Offline

Board footer

Powered by FluxBB