You are not logged in.

#1 2018-07-02 19:15:36

gothmog123
Member
Registered: 2012-10-31
Posts: 125

[REQUEST] dhcpcd-ui-git

dhcpcd-ui and dhcpcd-ui-patched that currently exist are both using extremely outdated releases (which are the latest:( )

I have 0 PKGBUILD skills...... could someone please write this?

I tried using something like this (trying to compile for qt5 only):

pkgname=dhcpcd-ui
pkgver=r363.b9967f3
pkgrel=1
pkgdesc="dhcpcd ui"
arch=('x86_64')
url="www.xy.com"
license=('GPL')
groups=()
depends=('qt5-base' 'dhcpcd' 'dhcpcd-dbus')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
source=('git+https://github.com/rsmarples/dhcpcd-ui.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"

	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	
	./configure --prefix=/usr --icondir=/usr/share/icons --with-qt --without-gtk
	make
}


package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR="${pkgdir}" install
}

but package() reports:

Error copying /home/andras/abs/dhcpcd-ui/src/dhcpcd-ui/src/dhcpcd-qt/dhcpcd-qt.8 to /usr/share/man/man8/dhcpcd-qt.8: Cannot create /usr/share/man/man8/dhcpcd-qt.8 for output
make[2]: [Makefile:733: install_man8] Error 3 (ignored)
mkdir: cannot create directory ‘/usr/etc’: Permission denied
make[2]: *** [Makefile:741: install_desktop] Error 1
make[2]: Leaving directory '/home/andras/abs/dhcpcd-ui/src/dhcpcd-ui/src/dhcpcd-qt'
make[1]: *** [../mk/subdir.mk:24: realinstall] Error 2
make[1]: Leaving directory '/home/andras/abs/dhcpcd-ui/src/dhcpcd-ui/src'
make: *** [mk/subdir.mk:24: realinstall] Error 2
==> ERROR: A failure occurred in package().
    Aborting...

LOL

Last edited by gothmog123 (2018-07-02 22:14:41)

Offline

#2 2018-07-02 22:24:44

loqs
Member
Registered: 2014-03-06
Posts: 18,828

Re: [REQUEST] dhcpcd-ui-git

	make INSTALL_ROOT="${pkgdir}" DESTDIR="${pkgdir}" install

Offline

#3 2018-07-02 22:47:19

progandy
Member
Registered: 2012-05-17
Posts: 5,306

Re: [REQUEST] dhcpcd-ui-git

You won't need dhcpcd-dbus anymore. As far as I can see, --icondir has to be replaced as well with ICONDIR and you need to set SYSCONFDIR.

./configure --prefix=/usr \
             --sysconfdir=/etc \
             --with-dhcpcd-online \
             --without-gtk \
             --with-qt \
             --with-icons
make ICONDIR=/usr/share/icons
make INSTALL_ROOT="${pkgdir}" DESTDIR="$pkgdir/" ICONDIR=/usr/share/icons install 

Edit: Oh, and set pkgname=dhcpcd-ui-git

Last edited by progandy (2018-07-02 22:56:08)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#4 2018-07-03 06:24:31

gothmog123
Member
Registered: 2012-10-31
Posts: 125

Re: [REQUEST] dhcpcd-ui-git

progandy wrote:

You won't need dhcpcd-dbus anymore. As far as I can see, --icondir has to be replaced as well with ICONDIR and you need to set SYSCONFDIR.

Edit: Oh, and set pkgname=dhcpcd-ui-git

Thank you, it compiles now, but crashes with segmentation fault when I launch dhcpcd-qt, sorry:(

pkgname=dhcpcd-ui-git
pkgver=r363.b9967f3
pkgrel=1
pkgdesc="dhcpcd ui"
arch=('x86_64')
url="www.xy.com"
license=('GPL')
groups=()
depends=('qt5-base' 'dhcpcd')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
source=('git+https://github.com/rsmarples/dhcpcd-ui.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"

	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	
	./configure --prefix=/usr \
             --sysconfdir=/etc \
             --with-dhcpcd-online \
             --without-gtk \
             --with-qt \
             --with-icons
	make ICONDIR=/usr/share/icons
}


package() {
	cd "$srcdir/${pkgname%-git}"
	make INSTALL_ROOT="${pkgdir}" DESTDIR="$pkgdir/" ICONDIR=/usr/share/icons install 
}

Last edited by gothmog123 (2018-07-03 07:32:48)

Offline

#5 2018-07-03 08:25:21

loqs
Member
Registered: 2014-03-06
Posts: 18,828

Re: [REQUEST] dhcpcd-ui-git

What is the info from the coredump?

Offline

#6 2018-07-03 08:30:45

arisinfenix
Member
From: Germany
Registered: 2018-06-20
Posts: 37

Re: [REQUEST] dhcpcd-ui-git

gothmog123 wrote:

Thank you, it compiles now, but crashes with segmentation fault when I launch dhcpcd-qt, sorry:(

You could add options=('debug') to also build a debug package and then use gdb to get more informations about the crash.
Btw: It does not segfault on my system, but:

$ LANG=C dhcpcd-qt 
Connecting ...
Status changed to down
dhcpcd_open: No such file or directory

...don't know what file it tries to open... wink

Regarding the PKGBUILD:
- you should remove the empty variables.
- librsvg is a makedepend
- hicolor-icon-theme is a dependency (namcap)

Tip: Use extra-x86_64-build from the devtools package.

Last edited by arisinfenix (2018-07-03 08:33:48)

Offline

#7 2018-07-03 09:09:14

progandy
Member
Registered: 2012-05-17
Posts: 5,306

Re: [REQUEST] dhcpcd-ui-git

Do you run dhcpcd in Master mode? dhcpcd-ui needs that I think.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#8 2018-07-03 09:09:59

gothmog123
Member
Registered: 2012-10-31
Posts: 125

Re: [REQUEST] dhcpcd-ui-git

loqs wrote:

What is the info from the coredump?

           PID: 3714 (dhcpcd-qt)
           UID: 1000 (andras)
           GID: 1000 (andras)
        Signal: 11 (SEGV)
     Timestamp: Tue 2018-07-03 08:21:43 CEST (2h 46min ago)
  Command Line: dhcpcd-qt
    Executable: /usr/bin/dhcpcd-qt
 Control Group: /user.slice/user-1000.slice/session-c1.scope
          Unit: session-c1.scope
         Slice: user-1000.slice
       Session: c1
     Owner UID: 1000 (andras)
       Boot ID: 02b4b131c1f044d5be213eb4f512b167
    Machine ID: 2a64878ba0d74f69881e81306b27870e
      Hostname: chromebook
       Storage: /var/lib/systemd/coredump/core.dhcpcd-qt.1000.02b4b131c1f044d5be213eb4f512b167.3714.1530598903000000.lz4
       Message: Process 3714 (dhcpcd-qt) of user 1000 dumped core.
                
                Stack trace of thread 3714:
                #0  0x00007feed87da1e6 __GI___strlen_sse2 (libc.so.6)
                #1  0x000056265f78b2da n/a (dhcpcd-qt)
                #2  0x000056265f78094c n/a (dhcpcd-qt)
                #3  0x00007feed876606b __libc_start_main (libc.so.6)
                #4  0x000056265f780a1a n/a (dhcpcd-qt)

Offline

Board footer

Powered by FluxBB