[aur-general] GUI
Probably not allowed to do so, but I figured I would ask. In a PKGBUILD can we do something like: echo "Do you want to enable GTK support?" read gtk if [[ "gtk" == "yes" ]]; then ./configure --with-gtk and so on. Thanks
2010/10/5 Nathan O <ndowens.aur@gmail.com>
Probably not allowed to do so, but I figured I would ask. In a PKGBUILD can we do something like:
echo "Do you want to enable GTK support?" read gtk
if [[ "gtk" == "yes" ]]; then ./configure --with-gtk
and so on.
Thanks
Are'nt you generally better of with gentoo if you want this behaviour ? if not would it be nicer to ask the questions, "do you want gtk gui ? (y/n): _"
On Tue, 2010-10-05 at 01:12 -0500, Nathan O wrote:
Probably not allowed to do so, but I figured I would ask. In a PKGBUILD can we do something like:
echo "Do you want to enable GTK support?" read gtk
if [[ "gtk" == "yes" ]]; then ./configure --with-gtk
and so on.
Thanks
I thought that PKGBUILDs were not supposed to have any "interactive" component? Gordon MM0YEQ
On Tue, Oct 5, 2010 at 1:30 AM, Gordon JC Pearce <gordonjcp@gjcp.net> wrote:
On Tue, 2010-10-05 at 01:12 -0500, Nathan O wrote:
Probably not allowed to do so, but I figured I would ask. In a PKGBUILD can we do something like:
echo "Do you want to enable GTK support?" read gtk
if [[ "gtk" == "yes" ]]; then ./configure --with-gtk
and so on.
Thanks
I thought that PKGBUILDs were not supposed to have any "interactive" component?
Gordon MM0YEQ
I kind of figured that it might not be allowed, but I figured I would ask. Could there be a possibility of having something similar to USE flags for AUR?
On Tue, 5 Oct 2010 01:33:17 -0500 Nathan O <ndowens.aur@gmail.com> wrote:
Could there be a possibility of having something similar to USE flags for AUR?
We have something similar: copy the pkgbuild, change configure option. done. I also don't like the proposed interactiveness and checking the environment. Dieter
On 05/10/10 16:12, Nathan O wrote:
Probably not allowed to do so, but I figured I would ask. In a PKGBUILD can we do something like:
echo "Do you want to enable GTK support?" read gtk
if [[ "gtk" == "yes" ]]; then ./configure --with-gtk
and so on.
PKGBUILDs are not supposed to be interactive. Leave a comment in the PKGBUILD telling users to add/remove that flag to their needs. Allan
On 05.10.2010 10:12, Nathan O wrote:
Probably not allowed to do so, but I figured I would ask. In a PKGBUILD can we do something like:
echo "Do you want to enable GTK support?" read gtk
if [[ "gtk" == "yes" ]]; then ./configure --with-gtk
and so on.
Thanks I suggest pacman calling to check if gtk2 package installed. If it is - ./configure --with-gtk.
On Tue, Oct 5, 2010 at 1:45 AM, Sergej Pupykin <ml@sergej.pp.ru> wrote:
On 05.10.2010 10:12, Nathan O wrote:
Probably not allowed to do so, but I figured I would ask. In a PKGBUILD can we do something like:
echo "Do you want to enable GTK support?" read gtk
if [[ "gtk" == "yes" ]]; then ./configure --with-gtk
and so on.
Thanks
I suggest pacman calling to check if gtk2 package installed. If it is - ./configure --with-gtk.
So I could maybe do something like: if [[ -f /usr/bin/gtk-config ]]; then ./configure --with-gtk ?
don't think i'd even do that, but just to nitpick, it'd be better written as: [[ -f /usr/bin/gtk-config ]] && COPTS="--with-gtk" then add $COPTS to your compile line. On Tue, Oct 5, 2010 at 1:47 AM, Nathan O <ndowens.aur@gmail.com> wrote:
On Tue, Oct 5, 2010 at 1:45 AM, Sergej Pupykin <ml@sergej.pp.ru> wrote:
On 05.10.2010 10:12, Nathan O wrote:
Probably not allowed to do so, but I figured I would ask. In a PKGBUILD can we do something like:
echo "Do you want to enable GTK support?" read gtk
if [[ "gtk" == "yes" ]]; then ./configure --with-gtk
and so on.
Thanks
I suggest pacman calling to check if gtk2 package installed. If it is - ./configure --with-gtk.
So I could maybe do something like: if [[ -f /usr/bin/gtk-config ]]; then ./configure --with-gtk
?
On 05/10/10 07:50, Daniel J Griffiths (Ghost1227) wrote:
don't think i'd even do that, but just to nitpick, it'd be better written as:
[[ -f /usr/bin/gtk-config ]] && COPTS="--with-gtk"
then add $COPTS to your compile line.
I think you should also make sure that gtk then becomes a dependency of the resulting package to prevent accidental removal of gtk. You also need to consider that doing this means that users would see different behaviour from what they believe is the same package. It could be confusing, and possibly complicate support and dealing with bugs. Personally I think it's a horrible idea to inspect the environment and make use of stuff that happens to be there. I don't like it when it's done in Makefiles and I think it's an even worse idea to do it in PKGBUILDs. That's just my opinion though. /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe
On Tue, Oct 5, 2010 at 2:01 AM, Magnus Therning <magnus@therning.org> wrote:
On 05/10/10 07:50, Daniel J Griffiths (Ghost1227) wrote:
don't think i'd even do that, but just to nitpick, it'd be better written as:
[[ -f /usr/bin/gtk-config ]] && COPTS="--with-gtk"
then add $COPTS to your compile line.
I think you should also make sure that gtk then becomes a dependency of the resulting package to prevent accidental removal of gtk.
You also need to consider that doing this means that users would see different behaviour from what they believe is the same package. It could be confusing, and possibly complicate support and dealing with bugs.
Personally I think it's a horrible idea to inspect the environment and make use of stuff that happens to be there. I don't like it when it's done in Makefiles and I think it's an even worse idea to do it in PKGBUILDs. That's just my opinion though.
/M
-- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe
Ok thanks for your input, I probably won't do it, though I wondered for future reference.
Am Tue, 5 Oct 2010 01:12:06 -0500 schrieb Nathan O <ndowens.aur@gmail.com>:
Probably not allowed to do so, but I figured I would ask. In a PKGBUILD can we do something like:
echo "Do you want to enable GTK support?" read gtk
if [[ "gtk" == "yes" ]]; then ./configure --with-gtk
and so on.
Thanks
Build two packages or a split package as soon as AUR has support for them: package-cli package-gtk See e.g. avidemux-cli, avidemux-gtk and avidemux-qt or cdrdao and gcdmaster. Interactive PKGBUILDs or PKGBUILDs with "dynamic" dependencies are not recommended. Heiko
On Tue, 2010-10-05 at 10:00 +0200, Heiko Baums wrote:
Am Tue, 5 Oct 2010 01:12:06 -0500 schrieb Nathan O <ndowens.aur@gmail.com>:
Probably not allowed to do so, but I figured I would ask. In a PKGBUILD can we do something like:
echo "Do you want to enable GTK support?" read gtk
if [[ "gtk" == "yes" ]]; then ./configure --with-gtk
and so on.
Thanks
Build two packages or a split package as soon as AUR has support for them: package-cli package-gtk
See e.g. avidemux-cli, avidemux-gtk and avidemux-qt or cdrdao and gcdmaster.
Interactive PKGBUILDs or PKGBUILDs with "dynamic" dependencies are not recommended.
Heiko
Best suggestion so far =)
Magnus Therning wrote:
I think you should also make sure that gtk then becomes a dependency of the resulting package to prevent accidental removal of gtk.
Ng Oon-Ee wrote:
On Tue, 2010-10-05 at 10:00 +0200, Heiko Baums wrote:
Build two packages or a split package as soon as AUR has support for them: package-cli package-gtk
See e.g. avidemux-cli, avidemux-gtk and avidemux-qt or cdrdao and gcdmaster.
Interactive PKGBUILDs or PKGBUILDs with "dynamic" dependencies are not recommended.
Heiko
Best suggestion so far =)
I agree with the quoted comments. The PKGBUILD is not meant to be interactive and modifying dependencies based on such interaction would be a nasty kludge. Two different packages (or a single split package once AUR finally supports it) is the way to go. Unless, of course, you plan to include an animated paperclip that asks questions such as "I see that you have GTK installed. Would you like to enable a graphical user interface?" and "I see that your master boot record contains valid data. Would you like to overwrite it with data that will make your system unbootable?".
On Tue, 5 Oct 2010 19:34:53 +0200 Xyne <xyne@archlinux.ca> wrote:
Unless, of course, you plan to include an animated paperclip that asks questions such as "I see that you have GTK installed. Would you like to enable a graphical user interface?" and "I see that your master boot record contains valid data. Would you like to overwrite it with data that will make your system unbootable?".
Now somebody with graphical skills just has to make an image of "Archey, your little arch assistant" Dieter
http://ompldr.org/vNXFoNg On Tue, Oct 5, 2010 at 3:23 PM, Dieter Plaetinck <dieter@plaetinck.be>wrote:
On Tue, 5 Oct 2010 19:34:53 +0200 Xyne <xyne@archlinux.ca> wrote:
Unless, of course, you plan to include an animated paperclip that asks questions such as "I see that you have GTK installed. Would you like to enable a graphical user interface?" and "I see that your master boot record contains valid data. Would you like to overwrite it with data that will make your system unbootable?".
Now somebody with graphical skills just has to make an image of "Archey, your little arch assistant"
Dieter
Am Tue, 5 Oct 2010 15:52:27 -0500 schrieb "Daniel J Griffiths (Ghost1227)" <ghost1227@archlinux.us>:
On Tue, Oct 5, 2010 at 3:23 PM, Dieter Plaetinck <dieter@plaetinck.be>wrote:
On Tue, 5 Oct 2010 19:34:53 +0200 Xyne <xyne@archlinux.ca> wrote:
Unless, of course, you plan to include an animated paperclip that asks questions such as "I see that you have GTK installed. Would you like to enable a graphical user interface?" and "I see that your master boot record contains valid data. Would you like to overwrite it with data that will make your system unbootable?".
Now somebody with graphical skills just has to make an image of "Archey, your little arch assistant"
Dieter
In a world without walls and fences, who needs Windows and Gates? Heiko
On Tue, Oct 5, 2010 at 21:52, Daniel J Griffiths (Ghost1227) <ghost1227@archlinux.us> wrote:
Fricking brilliant! I wouldn't want a paper-clip-like Archey, but I would love to see my notifications presented by Archey instead of them just popping up like they currently do. /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe
Daniel J Griffiths (Ghost1227) wrote:
Ha, nice! New dialogue idea: "Oops, it looks like you're about to top-post..." :P
On Tue, Oct 5, 2010 at 3:23 PM, Dieter Plaetinck <dieter@plaetinck.be>wrote:
On Tue, 5 Oct 2010 19:34:53 +0200 Xyne <xyne@archlinux.ca> wrote:
Unless, of course, you plan to include an animated paperclip that asks questions such as "I see that you have GTK installed. Would you like to enable a graphical user interface?" and "I see that your master boot record contains valid data. Would you like to overwrite it with data that will make your system unbootable?".
Now somebody with graphical skills just has to make an image of "Archey, your little arch assistant"
Dieter
On Wed, Oct 6, 2010 at 7:40 AM, Xyne <xyne@archlinux.ca> wrote:
Daniel J Griffiths (Ghost1227) wrote:
Ha, nice!
New dialogue idea:
"Oops, it looks like you're about to top-post..." :P
On Tue, Oct 5, 2010 at 3:23 PM, Dieter Plaetinck <dieter@plaetinck.be wrote:
On Tue, 5 Oct 2010 19:34:53 +0200 Xyne <xyne@archlinux.ca> wrote:
Unless, of course, you plan to include an animated paperclip that
asks
questions such as "I see that you have GTK installed. Would you like to enable a graphical user interface?" and "I see that your master boot record contains valid data. Would you like to overwrite it with data that will make your system unbootable?".
Now somebody with graphical skills just has to make an image of "Archey, your little arch assistant"
Dieter
https://bbs.archlinux.org/viewtopic.php?pid=836674#p836674 *facepalms*
On Wednesday 06 October 2010 at 13:40 Xyne wrote:
Daniel J Griffiths (Ghost1227) wrote:
Ha, nice!
this thread is awesome.
New dialogue idea:
"Oops, it looks like you're about to top-post..." :P
Oops, it looks like you've only done 75 minutes of research on this problem and are already posting to the mailing list. Would you like to: a) Go through GMane one more time b) Revive old threads on the bbs c) Post anyway and risk wrath :-D
participants (13)
-
Allan McRae
-
Daniel J Griffiths (Ghost1227)
-
Dieter Plaetinck
-
Gordon JC Pearce
-
Heiko Baums
-
Ike Devolder
-
Magnus Therning
-
member kittykatt
-
Nathan O
-
Ng Oon-Ee
-
Peter Lewis
-
Sergej Pupykin
-
Xyne