Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: Xdialog #23403

Closed
wants to merge 8 commits into from
Closed

New package: Xdialog #23403

wants to merge 8 commits into from

Conversation

Mia-Rain
Copy link
Contributor

@Mia-Rain Mia-Rain commented Jul 5, 2020

No description provided.

New Package: Xdialog - 'xorg' based 'dialog' replacement
New Package: Xdialog - 'xorg' based 'dialog' replacement
New Package: Xdialog - 'xorg' based 'dialog' replacement
New Package: Xdialog - 'xorg' based 'dialog' replacement
New Package: Xdialog - 'xorg' based 'dialog' replacement
New Package: Xdialog - 'xorg' based 'dialog' replacement
New Package: Xdialog - 'xorg' based 'dialog' replacement
@abenson
Copy link
Contributor

abenson commented Jul 6, 2020

Instead of grabbing arch's binary and extracting it, why not build it from source?

@q66
Copy link
Contributor

q66 commented Jul 6, 2020

we don't take repackaging of other people's binaries, especially when those binaries come from another distro that builds them from source

additionally, the archs field is wrong, and the commit structure is wrong, the maintainer field also has incorrect format (should be name <email>)

additionally, the license is GPL-2.0-or-later, not GPL-2.0-only

if you plan to fix that, don't close this PR and make a new one, instead fix it in this one, and squash all your commits together

@Mia-Rain
Copy link
Contributor Author

Mia-Rain commented Jul 6, 2020

I was grabbing arch's binary as it can't be built, the mainstream tarball's ./configure has broken syntax, and the archives for Xdialog no longer exists, so I'm only able to get a working version from a pre-compiled version
regardless I'll make the recommend changes

New Package: Xdialog - 'xorg' based 'dialog' replacement
@Mia-Rain
Copy link
Contributor Author

Mia-Rain commented Jul 6, 2020

I'll see if I can create a patch

@q66
Copy link
Contributor

q66 commented Jul 6, 2020

both the homepage and the source archive (http://xdialog.free.fr/Xdialog-2.3.1.tar.bz2) seem up to me

if configure is broken, just generate it again

@Mia-Rain
Copy link
Contributor Author

Mia-Rain commented Jul 6, 2020

While I may have figured it out, I was meaning the archive for old versions, which the homepage states is
(http://membres.lycos.fr/godefroy/archives/) but this link is dead

@q66
Copy link
Contributor

q66 commented Jul 6, 2020

that said, there is nothing wrong with the configure script, as this template works just fine

# Template file for 'Xdialog'
pkgname=Xdialog
version=2.3.1
revision=1
build_style=gnu-configure
configure_args="--with-gtk2"
hostmakedepends="pkg-config gettext"
makedepends="gtk+-devel"
short_desc="Xorg Replacement for dialog"
maintainer="ThatGeekyWeeb <thatgeekyweeb@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://Xdialog.free.fr"
distfiles="http://xdialog.free.fr/${pkgname}-${version}.tar.bz2"
checksum=1d446899697145fc36623d8afdd274066177da9383a6b619c18e8eb1b2ba589a

but also, since it needs gtk2, this will not be accepted, use zenity

@q66 q66 closed this Jul 6, 2020
@Mia-Rain
Copy link
Contributor Author

Mia-Rain commented Jul 6, 2020

it is possilbe to build with ./configure --prefix=/usr --without-gtk2 --with-gtk=no
as I was making a template to do...

@q66
Copy link
Contributor

q66 commented Jul 6, 2020

There is no such thing, as far as i can tell it requires some version of gtk no matter what (1 or 2)

I'd advise against introducing dead software into the repo either way

@Mia-Rain
Copy link
Contributor Author

Mia-Rain commented Jul 6, 2020

None the less, I believe this template works

# Template file for 'Xdialog'
pkgname=Xdialog
version=2.3.1
revision=8
archs="x86_64 i686"
makedepends="gtk+ gtk+-devel libelf gtk+3-devel gtk+3"
depends="xorg gnome-themes-extra"
short_desc="Xorg Replacement for dialog"
maintainer="ThatGeekyWeeb <thatgeekyweeb@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://Xdialog.free.fr"
distfiles="http://xdialog.free.fr/Xdialog-${version}.tar.bz2"
checksum="1d446899697145fc36623d8afdd274066177da9383a6b619c18e8eb1b2ba589a"
nostrip="true"
do_build() {
	./configure --prefix="${DESTDIR}" --without-gtk2 --with-gtk=no
	make
}
do_install() {
	make install_root=${DESTDIR} install
}

im currently testing it

@Mia-Rain
Copy link
Contributor Author

Mia-Rain commented Jul 6, 2020

This template works, up until make, im fixing that now

# Template file for 'Xdialog'
pkgname=Xdialog
version=2.3.1
revision=8
archs="x86_64 i686"
makedepends="gtk+ gtk+-devel libelf gtk+3-devel gtk+3 pkg-config"
depends="xorg gnome-themes-extra"
short_desc="Xorg Replacement for dialog"
maintainer="ThatGeekyWeeb <thatgeekyweeb@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://Xdialog.free.fr"
distfiles="http://xdialog.free.fr/Xdialog-${version}.tar.bz2"
checksum="1d446899697145fc36623d8afdd274066177da9383a6b619c18e8eb1b2ba589a"
nostrip="true"
do_build() {
	./configure --prefix="${DESTDIR}" --without-gtk2 --with-gtk=no
	make
}
do_install() {
	make install_root=${DESTDIR} install
}

@q66
Copy link
Contributor

q66 commented Jul 6, 2020

that'll just build it for gtk2, since there is no such thing as --without-gtk2 or --with-gtk=no and will get silently ignored

it will behave exactly the same as my template, except yours is broken

why do you think you know better? there is no non-gtk support in xdialog, there never was, there never will be, just read the output from configure

either way, this stays closed

@Mia-Rain
Copy link
Contributor Author

Mia-Rain commented Jul 6, 2020

Alright understood

all i know is that without --without-gtk2 and --with-gtk=no
it errors out with

checking for gtk-config... no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error: Cannot find GTK: Is gtk-config in path?

where as
./configure --prefix=/usr --without-gtk2 --with-gtk=no does not error out and builds fine
as this is clearly staying closed, I'll delete my master branch

@q66
Copy link
Contributor

q66 commented Jul 6, 2020

that's because the configure script likely interprets --with-gtk2 and --without-gtk2 (AC_ARG_WITH(something, ...) makes the script recognize either --with-something or --without-something or --with-something=yes/no/...) as the same thing since it lacks a false branch

compile_for="gtk1"
AC_ARG_WITH(gtk2,
  [  --with-gtk2             Compiles for GTK2],[
  compile_for="gtk2"
  CPPFLAGS="$CPPFLAGS -DUSE_GTK2"
  AC_MSG_RESULT(Compiling for GTK2)
  ])
if test "$compile_for" = "gtk2" ; then
  AM_PATH_GTK_2_0(2.2.0, ,
            AC_MSG_ERROR(Cannot find GTK2.))
else
  AM_PATH_GTK(1.2.0, ,
            AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?))
fi

more clearly visible in the generated configure script

compile_for="gtk1"

# Check whether --with-gtk2 or --without-gtk2 was given.
if test "${with_gtk2+set}" = set; then
  withval="$with_gtk2"

  compile_for="gtk2"
  CPPFLAGS="$CPPFLAGS -DUSE_GTK2"
  echo "$as_me:$LINENO: result: Compiling for GTK2" >&5
echo "${ECHO_T}Compiling for GTK2" >&6

fi;
if test "$compile_for" = "gtk2" ; then
  # Check whether --enable-gtktest or --disable-gtktest was given.
if test "${enable_gtktest+set}" = set; then
  enableval="$enable_gtktest"

else
  enable_gtktest=yes
fi;

@Mia-Rain Mia-Rain deleted the master branch July 6, 2020 05:06
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants