You are not logged in.

#1 2022-07-22 21:40:22

JaydenDev
Member
Registered: 2022-07-11
Posts: 122

I need help maintaining 'cdesktopenv' AUR package, it doesn't compile.

So, here's the error when I try to build:

PROTO -D_REENTRANT -DXUSE_MTSAFE_API   -DRFC_MIME -DLINE_COUNT -DV2 -DOW_I18N   -DREL="515"     -DRELMAJOR="5" -DRELMINOR="15"    -fPIC agent.c
agent.c: In function '_DtCm_init_agent':
agent.c:150:43: error: 'AGENTVERS' undeclared (first use in this function); did you mean 'AGENTVERS_2'?
  150 |         (void)pmap_unset(_DtCm_transient, AGENTVERS);
      |                                           ^~~~~~~~~
      |                                           AGENTVERS_2
agent.c:150:43: note: each undeclared identifier is reported only once for each function it appears in
agent.c:157:53: error: 'update_callback' undeclared (first use in this function); did you mean 'CSA_callback'?
  157 |         if (registerrpc(_DtCm_transient, AGENTVERS, update_callback,
      |                                                     ^~~~~~~~~~~~~~~
      |                                                     CSA_callback
agent.c:158:26: error: '_DtCm_update_callback_1' undeclared (first use in this function); did you mean 'cmcb_update_callback_2'?
  158 |             (char *(*)())_DtCm_update_callback_1, (xdrproc_t)_DtCm_xdr_Table_Res_4,
      |                          ^~~~~~~~~~~~~~~~~~~~~~~
      |                          cmcb_update_callback_2
agent.c:159:24: error: '_DtCm_xdr_Update_Status' undeclared (first use in this function); did you mean '_DtCm_xdr_Appt_Status_4'?
  159 |             (xdrproc_t)_DtCm_xdr_Update_Status) == -1) {
      |                        ^~~~~~~~~~~~~~~~~~~~~~~
      |                        _DtCm_xdr_Appt_Status_4
agent.c: In function '_DtCm_destroy_agent':
agent.c:192:44: error: 'AGENTVERS' undeclared (first use in this function); did you mean 'AGENTVERS_2'?
  192 |         (void) pmap_unset(_DtCm_transient, AGENTVERS);
      |                                            ^~~~~~~~~
      |                                            AGENTVERS_2
agent.c: At top level:
agent.c:297:1: error: unknown type name 'Update_Status'
  297 | Update_Status *
      | ^~~~~~~~~~~~~
agent.c: In function '_DtCm_update_callback_1':
agent.c:300:16: error: unknown type name 'Update_Status'
  300 |         static Update_Status status = update_succeeded;
      |                ^~~~~~~~~~~~~
agent.c:300:39: error: 'update_succeeded' undeclared (first use in this function)
  300 |         static Update_Status status = update_succeeded;
      |                                       ^~~~~~~~~~~~~~~~
agent.c:312:29: error: 'AGENTVERS' undeclared (first use in this function); did you mean 'AGENTVERS_2'?
  312 |                 cbi->vers = AGENTVERS;
      |                             ^~~~~~~~~
      |                             AGENTVERS_2
agent.c: In function '_DtCm_handle_callback':
agent.c:472:34: error: 'AGENTVERS' undeclared (first use in this function); did you mean 'AGENTVERS_2'?
  472 |                 if (ptr->vers == AGENTVERS)
      |                                  ^~~~~~~~~
      |                                  AGENTVERS_2
make[3]: *** [Makefile:798: agent.o] Error 1
make[3]: Leaving directory '/home/asdf/.cache/yay/cdesktopenv/src/cde-2.4.0/lib/csa'
make[2]: *** [Makefile:746: all] Error 2
make[2]: Leaving directory '/home/asdf/.cache/yay/cdesktopenv/src/cde-2.4.0/lib'
make[1]: *** [xmakefile:743: all] Error 2
make[1]: Leaving directory '/home/asdf/.cache/yay/cdesktopenv/src/cde-2.4.0'
make: *** [Makefile:63: World] Error 2

Once I get these issues out of the way I'll be able to happily use the latest version of CDE straight from the AUR. This could just be a bug with the software's source code, and it could not.

Last edited by JaydenDev (2022-07-22 21:40:55)


System Specs:
Intel Core i5-2400 Nvidia GTX 1050ti Logitech G402 Hyperion Fury (Mouse) BestBuy Essentials USB Keyboard
Software Specifications:
Desktop Environment: KDE Plasma Window Manager: KWin Operating System: Arch Linux (btw)

Offline

#2 2022-07-23 19:14:38

loqs
Member
Registered: 2014-03-06
Posts: 15,092

Re: I need help maintaining 'cdesktopenv' AUR package, it doesn't compile.

Try adding rpcsvc-proto to makedepends,   libtirpc to makedepends and optdepends and imake to makedepends to stop it being built locally.
Also add systemd to makedepends for the scattergun use of chown bin.
Also add an epoch to the PKGBUILD as you decreased the pkgver.

make -j1 World CCOPTIONS=' -fcommon' AR='ar cq'

Override some variables as I could not find where they should be set.  This reduced the number of build failures from triple digits to single digits for me (The build system has make continue on failure).

Offline

#3 2022-07-23 20:48:24

JaydenDev
Member
Registered: 2022-07-11
Posts: 122

Re: I need help maintaining 'cdesktopenv' AUR package, it doesn't compile.

loqs wrote:

Try adding rpcsvc-proto to makedepends,   libtirpc to makedepends and optdepends and imake to makedepends to stop it being built locally.
Also add systemd to makedepends for the scattergun use of chown bin.
Also add an epoch to the PKGBUILD as you decreased the pkgver.

make -j1 World CCOPTIONS=' -fcommon' AR='ar cq'

Override some variables as I could not find where they should be set.  This reduced the number of build failures from triple digits to single digits for me (The build system has make continue on failure).

Applying those fixes leaves me with a new error

make[4]: Leaving directory '/home/jmwills/Projects/cdesktopenv/src/cde-2.4.0/programs/dtksh/examples'
cd ksh93; ./bin/package flat make CCFLAGS='-DPROFILEPATH=\"/etc/dt/config/profile\"     -DSUIDPROFILEPATH=\"/etc/dt/config/suid_profile\"       -DSUIDEXECPATH=\"/usr/dt/bin/suid_exec\"       -DCDE_INSTALLATION_TOP=\"/usr/dt\" -DBUILD_DTKSH -g -D_std_malloc'
package: cq: not found -- must be on PATH to make
make[3]: *** [Makefile:782: pmain.o] Error 1
make[3]: Leaving directory '/home/jmwills/Projects/cdesktopenv/src/cde-2.4.0/programs/dtksh'
make[2]: *** [Makefile:746: all] Error 2
make[2]: Leaving directory '/home/jmwills/Projects/cdesktopenv/src/cde-2.4.0/programs'
make[1]: *** [xmakefile:743: all] Error 2
make[1]: Leaving directory '/home/jmwills/Projects/cdesktopenv/src/cde-2.4.0'
make: *** [Makefile:63: World] Error 2

System Specs:
Intel Core i5-2400 Nvidia GTX 1050ti Logitech G402 Hyperion Fury (Mouse) BestBuy Essentials USB Keyboard
Software Specifications:
Desktop Environment: KDE Plasma Window Manager: KWin Operating System: Arch Linux (btw)

Offline

#4 2022-07-23 20:54:14

loqs
Member
Registered: 2014-03-06
Posts: 15,092

Re: I need help maintaining 'cdesktopenv' AUR package, it doesn't compile.

What is the current PKGBUILD?

Offline

#5 2022-07-23 20:59:45

JaydenDev
Member
Registered: 2022-07-11
Posts: 122

Re: I need help maintaining 'cdesktopenv' AUR package, it doesn't compile.

loqs wrote:

What is the current PKGBUILD?

# Maintainer: JaydenDev <jdev0894@gmail.com>
# Previous Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Submitter: Ecmel Ercan <ecmel dot ercan at gmail dot com>
# Contributor: Vain <aurmaint1 on host: uninformativ dot de>
# Contributor: BlindPenguin <ferdinand holzner at gmail dot com>
# Thanks goes to yjftsjthsd for https://aur.archlinux.org/packages/cdesktopenv-git/ PKGBUILD.
# Big thanks to ekollof for the updated PKGBUILD! https://git.hackerheaven.org/ekollof/cdesktopenv
pkgname=cdesktopenv
pkgver=2.4.0
pkgrel=3
pkgdesc="CDE - Common Desktop Environment"
url="http://sourceforge.net/projects/cdesktopenv/"
arch=('i686' 'x86_64') # Some parts of CDE are not stable on x86_64 yet.
license=('LGPL2.1')
options=(!strip !zipman)
install="cdesktopenv.install"
depends=(openmotif xbitmaps rpcbind mksh ncurses libxss libxinerama)
makedepends=(tcl ncompress bison rpcsvc-proto libtirpc imake)
optdepends=('xorg-fonts-100dpi: additional fonts'
            'cups: for printing support'
            'xinetd: for rpc services'
            'libtirpc: recommendation by loqs')
backup=('etc/dt/config/xfonts/C/fonts.alias')
source=("http://downloads.sourceforge.net/$pkgname/cde-$pkgver.tar.gz"
        'cdesktopenv.install'
        'dtlogin.service'
        'fonts.alias'
        'fonts.dir'
        'cde.desktop'
        'startxsession.sh')

md5sums=('e66daaf5157bf575ac19166942b7f901'
         '66ff27b4c6b7c5fda4e2db69f829e4aa'
         '18f9ef4643ff7ed6637907f5cbdabecf'
         '5cc80c2851ea90b94e94b0c5d92d81fb'
         '897316929176464ebc9ad085f31e7284'
         '7d11b9d2bc1234278f14151025744916'
         '2e5557241915e4c2761ba136dbcba469')

build() {
  cd "$srcdir/cde-$pkgver/"

  cat >> config/cf/site.def <<EOF
#define KornShell /bin/mksh
#define CppCmd cpp
#define YaccCmd bison -y
#define HasTIRPCLib YES
#define HasZlib YES
#define DtLocalesToBuild
EOF

  (
     export LANG=C
     export LC_ALL=C
     export IMAKECPP=cpp
     export IMAKEDEFINEs='-DDtLocalesToBuild="en_US.UTF-8"'
     make -j1 World CCOPTIONS=' -fcommon' AR='ar cq' 
  )  

  sed -e "s:mkProd -D :&$pkgdir:" -i admin/IntegTools/dbTools/installCDE
}

package() {
  cd "$srcdir/cde-$pkgver/admin/IntegTools/dbTools/"

  (
    export LANG=C
    export LC_ALL=C
    export INSTALL_LOCATION="$pkgdir/usr/dt"
    export LOGFILES_LOCATION="$pkgdir/var/dt"
    export CONFIGURE_LOCATION="$pkgdir/etc/dt"
    ./installCDE -s "$srcdir/cde-$pkgver" -destdir "$pkgdir"
  )

  cd "$pkgdir/var/dt/"
  chmod 755 .
  chown bin .
  chgrp bin .
  mkdir -p appconfig/appmanager
  mkdir -p tmp
  chmod -R 755 *
  chown -R bin *
  chgrp -R bin *

  cd "$pkgdir/etc/dt/"
  chmod 755 .
  mkdir -p appconfig/appmanager/C
  mkdir -p appconfig/help/C
  mkdir -p appconfig/icons/C
  mkdir -p appconfig/types/C
  mkdir -p config/Xsession.d
  mkdir -p config/xfonts/C
  chmod -R 755 *

  #Adding Calendar (see wiki -> https://sourceforge.net/p/cdesktopenv/wiki/LinuxBuild/#installing)
  mkdir -p $pkgdir/var/spool/calendar

  chmod a+x $srcdir/startxsession.sh
  install -m644 "$srcdir"/fonts.{alias,dir} "$pkgdir/etc/dt/config/xfonts/C/"
  
  install -Dm644 "$srcdir/cde.desktop" \
                 "$pkgdir/usr/share/xsessions/cde.desktop"
  install -Dm644 "$srcdir/dtlogin.service" \
                 "$pkgdir/usr/lib/systemd/system/dtlogin.service" 
  install -Dm755 "$srcdir/cde-$pkgver/contrib/rc/linux/dtlogin" \
                 "$pkgdir/etc/rc.d/dtlogin"

  install -dm755 "$pkgdir/usr/spool"
  install -Dm644 "$srcdir/cde-$pkgver/contrib/xinetd/cmsd" \
                 "$pkgdir/etc/xinetd.d/cmsd"
  install -Dm644 "$srcdir/cde-$pkgver/contrib/xinetd/ttdbserver" \
                 "$pkgdir/etc/xinetd.d/ttdbserver"
  install -Dm755 "$srcdir/startxsession.sh" \
                 "$pkgdir/usr/bin/startxsession.sh"
}

System Specs:
Intel Core i5-2400 Nvidia GTX 1050ti Logitech G402 Hyperion Fury (Mouse) BestBuy Essentials USB Keyboard
Software Specifications:
Desktop Environment: KDE Plasma Window Manager: KWin Operating System: Arch Linux (btw)

Offline

#6 2022-07-23 21:30:47

seth
Member
Registered: 2012-09-03
Posts: 30,850

Re: I need help maintaining 'cdesktopenv' AUR package, it doesn't compile.

package: cq: not found -- must be on PATH to make

loqs wrote:

make -j1 World CCOPTIONS=' -fcommon' AR='ar cq'

You probably botched the quotation?

Offline

#7 2022-07-23 21:34:21

loqs
Member
Registered: 2014-03-06
Posts: 15,092

Re: I need help maintaining 'cdesktopenv' AUR package, it doesn't compile.

AR='ar cq' can be dropped for 2.4.0,  next failure was missing libutempter,  then it failed with

+ cc -D_AST_ksh_release '-DSHOPT_2DMATCH=1' '-DSHOPT_AUDIT=1' '-DSHOPT_AUDITFILE="/etc/ksh_audit"' '-DSHOPT_BGX=1' '-DSHOPT_BRACEPAT=1' '-DSHOPT_DYNAMIC=1' '-DSHOPT_EDPREDICT=1' '-DSHOPT_ESH=1' '-DSHOPT_FILESCAN=1' '-DSHOPT_FIXEDARRAY=1' '-DSHOPT_HISTEXPAND=1' '-DSHOPT_MULTIBYTE=1' '-DSHOPT_NAMESPACE=1' '-DSHOPT_OPTIMIZE=1' '-DSHOPT_PFSH=0' '-DSHOPT_RAWONLY=1' '-DSHOPT_STATS=1' '-DSHOPT_SUID_EXEC=1' '-DSHOPT_TYPEDEF=1' '-DSHOPT_VSH=1' '-DPROFILEPATH="/etc/dt/config/profile"' '-DSUIDPROFILEPATH="/etc/dt/config/suid_profile"' '-DSUIDEXECPATH="/usr/dt/bin/suid_exec"' '-DCDE_INSTALLATION_TOP="/usr/dt"' -DBUILD_DTKSH -g -D_std_malloc -L. -L/build/cdesktopenv/src/cde-2.4.0/programs/dtksh/ksh93/arch/linux.i386-64/lib -o ksh pmain.o libshell.a /build/cdesktopenv/src/cde-2.4.0/programs/dtksh/ksh93/arch/linux.i386-64/lib/libdll.a /build/cdesktopenv/src/cde-2.4.0/programs/dtksh/ksh93/arch/linux.i386-64/lib/libast.a /build/cdesktopenv/src/cde-2.4.0/programs/dtksh/ksh93/arch/linux.i386-64/lib/libast.a /build/cdesktopenv/src/cde-2.4.0/programs/dtksh/ksh93/arch/linux.i386-64/lib/libcmd.a -lutil /build/cdesktopenv/src/cde-2.4.0/programs/dtksh/ksh93/arch/linux.i386-64/lib/libast.a -lutil /build/cdesktopenv/src/cde-2.4.0/programs/dtksh/ksh93/arch/linux.i386-64/lib/libast.a /build/cdesktopenv/src/cde-2.4.0/programs/dtksh/ksh93/arch/linux.i386-64/lib/libast.a /build/cdesktopenv/src/cde-2.4.0/programs/dtksh/ksh93/arch/linux.i386-64/lib/libast.a
/usr/bin/ld: libshell.a(streval.o): in function `arith_exec':
/build/cdesktopenv/src/cde-2.4.0/programs/dtksh/ksh93/src/cmd/ksh93/sh/streval.c:349: undefined reference to `pow'
/usr/bin/ld: libshell.a(strdata.o): in function `local_fpclassify':
/build/cdesktopenv/src/cde-2.4.0/programs/dtksh/ksh93/arch/linux.i386-64/src/cmd/ksh93/./FEATURE/math:78: undefined reference to `__fpclassifyl'
/usr/bin/ld: libshell.a(strdata.o): in function `local_issubnormal':
/build/cdesktopenv/src/cde-2.4.0/programs/dtksh/ksh93/arch/linux.i386-64/src/cmd/ksh93/./FEATURE/math:86: undefined reference to `__fpclassifyl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x10): undefined reference to `acosl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x28): undefined reference to `acoshl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x40): undefined reference to `asinl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x58): undefined reference to `asinhl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x70): undefined reference to `atanl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x88): undefined reference to `atan2l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0xa0): undefined reference to `atanhl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0xb8): undefined reference to `cbrtl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0xd0): undefined reference to `ceill'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x100): undefined reference to `cosl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x118): undefined reference to `coshl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x130): undefined reference to `erfl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x148): undefined reference to `erfcl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x160): undefined reference to `expl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x178): undefined reference to `exp2l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x190): undefined reference to `expm1l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x1a8): undefined reference to `fabsl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x1c0): undefined reference to `fabsl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x1d8): undefined reference to `fdiml'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x208): undefined reference to `floorl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x220): undefined reference to `floorl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x238): undefined reference to `fmal'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x250): undefined reference to `fmaxl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x268): undefined reference to `fminl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x280): undefined reference to `fmodl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x2b0): undefined reference to `hypotl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x2c8): undefined reference to `ilogbl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x400): undefined reference to `j0l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x418): undefined reference to `j1l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x430): undefined reference to `jnl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x460): undefined reference to `lgammal'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x478): undefined reference to `logl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x490): undefined reference to `log10l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x4a8): undefined reference to `log1pl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x4c0): undefined reference to `log2l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x4d8): undefined reference to `logbl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x4f0): undefined reference to `nearbyintl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x508): undefined reference to `nextafterl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x520): undefined reference to `nexttowardl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x538): undefined reference to `powl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x550): undefined reference to `remainderl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x568): undefined reference to `rintl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x580): undefined reference to `roundl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x598): undefined reference to `scalbl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x5e0): undefined reference to `sinl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x5f8): undefined reference to `sinhl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x610): undefined reference to `sqrtl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x628): undefined reference to `tanl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x640): undefined reference to `tanhl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x658): undefined reference to `tgammal'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x670): undefined reference to `truncl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x688): undefined reference to `y0l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x6a0): undefined reference to `y1l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x6b8): undefined reference to `ynl'
collect2: error: ld returned 1 exit status
mamake [cmd/ksh93]: *** exit code 1 making ksh
mamake: *** exit code 1 making cmd/ksh93
mamake: *** exit code 1 making all

Which looks to be  https://sourceforge.net/p/cdesktopenv/d … 2b0bd87053
Edit:
https://github.com/ksh93/ksh/pull/478/commits
Edit2:

diff --git a/programs/dtksh/ksh93/src/cmd/ksh93/Mamfile b/programs/dtksh/ksh93/src/cmd/ksh93/Mamfile
index 490d55d..916e396 100644
--- a/programs/dtksh/ksh93/src/cmd/ksh93/Mamfile
+++ b/programs/dtksh/ksh93/src/cmd/ksh93/Mamfile
@@ -1398,7 +1398,7 @@ make install
 		prev +li
 		prev ${mam_libsocket}
 		prev ${mam_libsecdb}
-		exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o ksh pmain.o ${mam_libshell} ${mam_libnsl} ${mam_libast}
+		exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o ksh pmain.o ${mam_libshell} ${mam_libnsl} ${mam_libast} -lm
 	done ksh generated
 	make shcomp
 		make shcomp.o
@@ -1424,7 +1424,7 @@ make install
 		prev ${mam_libsecdb}
 		setv CC.DLL -UCC.DLL
 		setv SH_DICT -DSH_DICT="\"libshell\""
-		exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o shcomp shcomp.o ${mam_libshell} ${mam_libnsl} ${mam_libast}
+		exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o shcomp shcomp.o ${mam_libshell} ${mam_libnsl} ${mam_libast} -lm
 	done shcomp generated
 	make suid_exec
 		make suid_exec.o

CCOPTIONS=' -fcommon' can also be dropped.
More missing makedepends xorg-bdftopcf xorg-mkfontscale and missing depend of some type libxaw.
Then fails with

making all in admin/IntegTools/post_install/linux...
make[5]: Entering directory '/build/cdesktopenv/src/cde-2.4.0/admin/IntegTools/post_install/linux'
../../dbTools/udbToAny.ksh  -toLst -ReleaseStream linux             ../../../../databases/CDE-SHLIBS.udb > CDE-SHLIBS.lst
/bin/sh: ../../dbTools/udbToAny.ksh: /bin/ksh: bad interpreter: No such file or directory
make[5]: *** [Makefile:759: configShlibs] Error 126

Edit:

cp admin/IntegTools/post_install/freebsd/Imakefile admin/IntegTools/post_install/linux/Imakefile

Replace DtLocalesToBuild with DtDocLocalesToBuild
Missing make-depends procps-ng systemd.

With all the above the package builds.  Use at your own risk.
Edit:
build is not using the system imake,  that does not impact on the builds success.

PS when you update the pkgver the pkgrel should be reset to 1.

Edit:
Partial update for 2.5.0 package() has not been updated
cdesktopenv-2.5.0-ksh93-lm.patch

diff --git a/programs/dtksh/ksh93/src/cmd/ksh93/Mamfile b/programs/dtksh/ksh93/src/cmd/ksh93/Mamfile
index d604c138..0de97f60 100644
--- a/programs/dtksh/ksh93/src/cmd/ksh93/Mamfile
+++ b/programs/dtksh/ksh93/src/cmd/ksh93/Mamfile
@@ -1386,7 +1386,7 @@ make install
 		prev +li
 		prev ${mam_libsocket}
 		prev ${mam_libsecdb}
-		exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o ksh pmain.o ${mam_libshell} ${mam_libnsl} ${mam_libast}
+		exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o ksh pmain.o ${mam_libshell} ${mam_libnsl} ${mam_libast} -lm
 	done ksh generated
 	make shcomp
 		make shcomp.o
@@ -1408,7 +1408,7 @@ make install
 		prev +li
 		prev ${mam_libsocket}
 		prev ${mam_libsecdb}
-		exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o shcomp shcomp.o ${mam_libshell} ${mam_libnsl} ${mam_libast}
+		exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o shcomp shcomp.o ${mam_libshell} ${mam_libnsl} ${mam_libast} -lm
 	done shcomp generated
 	make suid_exec
 		make suid_exec.o

PKGBUILD

 # Maintainer: JaydenDev <jdev0894@gmail.com>
# Previous Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Submitter: Ecmel Ercan <ecmel dot ercan at gmail dot com>
# Contributor: Vain <aurmaint1 on host: uninformativ dot de>
# Contributor: BlindPenguin <ferdinand holzner at gmail dot com>
# Thanks goes to yjftsjthsd for https://aur.archlinux.org/packages/cdesktopenv-git/ PKGBUILD.
# Big thanks to ekollof for the updated PKGBUILD! https://git.hackerheaven.org/ekollof/cdesktopenv
pkgname=cdesktopenv
pkgver=2.5.0
pkgrel=1
pkgdesc="CDE - Common Desktop Environment"
url="http://sourceforge.net/projects/cdesktopenv/"
arch=('i686' 'x86_64') # Some parts of CDE are not stable on x86_64 yet.
license=('LGPL2.1')
options=(!strip !zipman)
install="cdesktopenv.install"
depends=(ksh libtirpc libutempter libxaw libxinerama libxss ncurses openmotif rpcbind xbitmaps xorg-xrdb)
makedepends=(tcl ncompress rpcsvc-proto xorg-bdftopcf xorg-mkfontscale systemd opensp)
optdepends=('xorg-fonts-100dpi: additional fonts'
            'cups: for printing support'
            'xinetd: for rpc services')
backup=('etc/dt/config/xfonts/C/fonts.alias')
source=("http://downloads.sourceforge.net/$pkgname/cde-$pkgver.tar.gz"
         cdesktopenv-2.5.0-ksh93-lm.patch
        'cdesktopenv.install'
        'dtlogin.service'
        'fonts.alias'
        'fonts.dir'
        'cde.desktop'
        'startxsession.sh')

md5sums=('c5eafeca182f7871e20d903bb9696dba'
         '8cefd7ae5dbfab8179d55a142c390fd5'
         '66ff27b4c6b7c5fda4e2db69f829e4aa'
         '18f9ef4643ff7ed6637907f5cbdabecf'
         '5cc80c2851ea90b94e94b0c5d92d81fb'
         '897316929176464ebc9ad085f31e7284'
         '7d11b9d2bc1234278f14151025744916'
         '2e5557241915e4c2761ba136dbcba469')

prepare() {
  cd "$srcdir/cde-$pkgver/"
  patch -Np1 -i ../cdesktopenv-2.5.0-ksh93-lm.patch
}

build() {
  cd "$srcdir/cde-$pkgver/"

  ./autogen.sh
  ./configure --prefix=/usr
  make

#  sed -e "s:mkProd -D :&$pkgdir:" -i admin/IntegTools/dbTools/installCDE
}

package() {
  cd "$srcdir/cde-$pkgver/admin/IntegTools/dbTools/"

  (
    export LC_ALL=C
    export INSTALL_LOCATION="$pkgdir/usr/dt"
    export LOGFILES_LOCATION="$pkgdir/var/dt"
    export CONFIGURE_LOCATION="$pkgdir/etc/dt"
    ./installCDE -s "$srcdir/cde-$pkgver" -destdir "$pkgdir"
  )

  cd "$pkgdir/var/dt/"
  chmod 755 .
  chown bin .
  chgrp bin .
  mkdir -p appconfig/appmanager
  mkdir -p tmp
  chmod -R 755 *
  chown -R bin *
  chgrp -R bin *

  cd "$pkgdir/etc/dt/"
  chmod 755 .
  mkdir -p appconfig/appmanager/C
  mkdir -p appconfig/help/C
  mkdir -p appconfig/icons/C
  mkdir -p appconfig/types/C
  mkdir -p config/Xsession.d
  mkdir -p config/xfonts/C
  chmod -R 755 *

  #Adding Calendar (see wiki -> https://sourceforge.net/p/cdesktopenv/wiki/LinuxBuild/#installing)
  mkdir -p $pkgdir/var/spool/calendar

  chmod a+x $srcdir/startxsession.sh
  install -m644 "$srcdir"/fonts.{alias,dir} "$pkgdir/etc/dt/config/xfonts/C/"
  
  install -Dm644 "$srcdir/cde.desktop" \
                 "$pkgdir/usr/share/xsessions/cde.desktop"
  install -Dm644 "$srcdir/dtlogin.service" \
                 "$pkgdir/usr/lib/systemd/system/dtlogin.service" 
  install -Dm755 "$srcdir/cde-$pkgver/contrib/rc/linux/dtlogin" \
                 "$pkgdir/etc/rc.d/dtlogin"

  install -dm755 "$pkgdir/usr/spool"
  install -Dm644 "$srcdir/cde-$pkgver/contrib/xinetd/cmsd" \
                 "$pkgdir/etc/xinetd.d/cmsd"
  install -Dm644 "$srcdir/cde-$pkgver/contrib/xinetd/ttdbserver" \
                 "$pkgdir/etc/xinetd.d/ttdbserver"
  install -Dm755 "$srcdir/startxsession.sh" \
                 "$pkgdir/usr/bin/startxsession.sh"
}

@JaydenDev does the 2.5.0 PKGBUILD work for you until the package function?

Last edited by loqs (2022-07-24 23:43:21)

Offline

#8 2022-07-29 18:58:59

JaydenDev
Member
Registered: 2022-07-11
Posts: 122

Re: I need help maintaining 'cdesktopenv' AUR package, it doesn't compile.

Good news! I got 2.4.0 build working great in a new clean chroot! if it finishes. I'll update the package, release 2.4, then make 2.5


System Specs:
Intel Core i5-2400 Nvidia GTX 1050ti Logitech G402 Hyperion Fury (Mouse) BestBuy Essentials USB Keyboard
Software Specifications:
Desktop Environment: KDE Plasma Window Manager: KWin Operating System: Arch Linux (btw)

Offline

#9 2022-07-29 19:01:11

JaydenDev
Member
Registered: 2022-07-11
Posts: 122

Re: I need help maintaining 'cdesktopenv' AUR package, it doesn't compile.

SPOKE TOO SOON!

/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x10): undefined reference to `acosl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x28): undefined reference to `acoshl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x40): undefined reference to `asinl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x58): undefined reference to `asinhl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x70): undefined reference to `atanl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x88): undefined reference to `atan2l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0xa0): undefined reference to `atanhl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0xb8): undefined reference to `cbrtl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0xd0): undefined reference to `ceill'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x100): undefined reference to `cosl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x118): undefined reference to `coshl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x130): undefined reference to `erfl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x148): undefined reference to `erfcl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x160): undefined reference to `expl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x178): undefined reference to `exp2l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x190): undefined reference to `expm1l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x1a8): undefined reference to `fabsl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x1c0): undefined reference to `fabsl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x1d8): undefined reference to `fdiml'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x208): undefined reference to `floorl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x220): undefined reference to `floorl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x238): undefined reference to `fmal'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x250): undefined reference to `fmaxl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x268): undefined reference to `fminl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x280): undefined reference to `fmodl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x2b0): undefined reference to `hypotl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x2c8): undefined reference to `ilogbl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x400): undefined reference to `j0l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x418): undefined reference to `j1l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x430): undefined reference to `jnl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x460): undefined reference to `lgammal'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x478): undefined reference to `logl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x490): undefined reference to `log10l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x4a8): undefined reference to `log1pl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x4c0): undefined reference to `log2l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x4d8): undefined reference to `logbl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x4f0): undefined reference to `nearbyintl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x508): undefined reference to `nextafterl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x520): undefined reference to `nexttowardl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x538): undefined reference to `powl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x550): undefined reference to `remainderl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x568): undefined reference to `rintl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x580): undefined reference to `roundl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x598): undefined reference to `scalbl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x5e0): undefined reference to `sinl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x5f8): undefined reference to `sinhl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x610): undefined reference to `sqrtl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x628): undefined reference to `tanl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x640): undefined reference to `tanhl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x658): undefined reference to `tgammal'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x670): undefined reference to `truncl'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x688): undefined reference to `y0l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x6a0): undefined reference to `y1l'
/usr/bin/ld: libshell.a(strdata.o):(.data.rel.ro+0x6b8): undefined reference to `ynl'
collect2: error: ld returned 1 exit status
mamake [cmd/ksh93]: *** exit code 1 making ksh
mamake: *** exit code 1 making cmd/ksh93
mamake: *** exit code 1 making all
package: make done  at Fri Jul 29 14:00:26 CDT 2022 in /build/cdesktopenv/src/cde-2.4.0/programs/dtksh/ksh93/arch/linux.i386-64
make[3]: *** [Makefile:782: pmain.o] Error 1
make[3]: Leaving directory '/build/cdesktopenv/src/cde-2.4.0/programs/dtksh'
make[2]: *** [Makefile:746: all] Error 2
make[2]: Leaving directory '/build/cdesktopenv/src/cde-2.4.0/programs'
make[1]: *** [xmakefile:743: all] Error 2
make[1]: Leaving directory '/build/cdesktopenv/src/cde-2.4.0'

so this is not going to be easy.


System Specs:
Intel Core i5-2400 Nvidia GTX 1050ti Logitech G402 Hyperion Fury (Mouse) BestBuy Essentials USB Keyboard
Software Specifications:
Desktop Environment: KDE Plasma Window Manager: KWin Operating System: Arch Linux (btw)

Offline

#10 2022-07-29 19:03:01

JaydenDev
Member
Registered: 2022-07-11
Posts: 122

Re: I need help maintaining 'cdesktopenv' AUR package, it doesn't compile.

i will be using the newly provided v2.5 PKGBUILD in a clean chroot. this should work

didnt

==> ERROR: cdesktopenv-2.5.0-ksh93-lm.patch was not found in the build directory and is not a URL.
==> ERROR: Could not download sources.

Last edited by JaydenDev (2022-07-29 19:04:18)


System Specs:
Intel Core i5-2400 Nvidia GTX 1050ti Logitech G402 Hyperion Fury (Mouse) BestBuy Essentials USB Keyboard
Software Specifications:
Desktop Environment: KDE Plasma Window Manager: KWin Operating System: Arch Linux (btw)

Offline

#11 2022-07-29 19:09:26

loqs
Member
Registered: 2014-03-06
Posts: 15,092

Re: I need help maintaining 'cdesktopenv' AUR package, it doesn't compile.

The contents for cdesktopenv-2.5.0-ksh93-lm.patch is in post #7 the code box above the PKGBUILD.
Edit:
I went with a patch rather than overwriting LDFLAGS as used in [1] as overwriting LDFLAGS removes the as needed option so everything is linked to libm even if it does not need it and it removes hardening options.

[1] https://aur.archlinux.org/cgit/aur.git/ … nv-git#n59

Last edited by loqs (2022-07-29 19:13:30)

Offline

#12 2022-07-29 19:11:22

JaydenDev
Member
Registered: 2022-07-11
Posts: 122

Re: I need help maintaining 'cdesktopenv' AUR package, it doesn't compile.

loqs wrote:

The contents for cdesktopenv-2.5.0-ksh93-lm.patch is in post #7 the code box above the PKGBUILD.

alright


System Specs:
Intel Core i5-2400 Nvidia GTX 1050ti Logitech G402 Hyperion Fury (Mouse) BestBuy Essentials USB Keyboard
Software Specifications:
Desktop Environment: KDE Plasma Window Manager: KWin Operating System: Arch Linux (btw)

Offline

#13 2022-07-29 20:41:23

loqs
Member
Registered: 2014-03-06
Posts: 15,092

Re: I need help maintaining 'cdesktopenv' AUR package, it doesn't compile.

New patch needed for make install.  Updated package() some parts are commented out as I do not understand what they are doing.

cdesktopenv-2.5.0-fontalias.patch

diff --git a/programs/fontaliases/Makefile.am b/programs/fontaliases/Makefile.am
index 29abc6d1..62eed9e4 100644
--- a/programs/fontaliases/Makefile.am
+++ b/programs/fontaliases/Makefile.am
@@ -33,4 +33,4 @@ fonts.dir: dtinfo.pcf.gz
 
 install-data-hook:
 	$(MKDIR_P) $(DESTDIR)$(fontaliasesconfdir)
-	$(CP) $(fontaliasesdatadir)/$(FONTS_ALIAS) $(DESTDIR)$(fontaliasesconfdir)/fonts.alias
+	$(CP) $(FONTS_ALIAS) $(DESTDIR)$(fontaliasesconfdir)/fonts.alias

PKGBUILD

# Maintainer: JaydenDev <jdev0894@gmail.com>
# Previous Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Submitter: Ecmel Ercan <ecmel dot ercan at gmail dot com>
# Contributor: Vain <aurmaint1 on host: uninformativ dot de>
# Contributor: BlindPenguin <ferdinand holzner at gmail dot com>
# Thanks goes to yjftsjthsd for https://aur.archlinux.org/packages/cdesktopenv-git/ PKGBUILD.
# Big thanks to ekollof for the updated PKGBUILD! https://git.hackerheaven.org/ekollof/cdesktopenv
pkgname=cdesktopenv
pkgver=2.5.0
pkgrel=1
pkgdesc="CDE - Common Desktop Environment"
url="http://sourceforge.net/projects/cdesktopenv/"
arch=('i686' 'x86_64') # Some parts of CDE are not stable on x86_64 yet.
license=('LGPL2.1')
options=(!strip !zipman)
install="cdesktopenv.install"
depends=(ksh libtirpc libutempter libxaw libxinerama libxss ncurses openmotif rpcbind xbitmaps xorg-xrdb)
makedepends=(tcl ncompress rpcsvc-proto xorg-bdftopcf xorg-mkfontscale systemd opensp)
optdepends=('xorg-fonts-100dpi: additional fonts'
            'cups: for printing support'
            'xinetd: for rpc services')
backup=('etc/dt/config/xfonts/C/fonts.alias')
source=("http://downloads.sourceforge.net/$pkgname/cde-$pkgver.tar.gz"
         cdesktopenv-2.5.0-ksh93-lm.patch
         cdesktopenv-2.5.0-fontalias.patch
        'cdesktopenv.install'
        'dtlogin.service'
        'fonts.alias'
        'fonts.dir'
        'cde.desktop'
        'startxsession.sh')

md5sums=('c5eafeca182f7871e20d903bb9696dba'
         '8cefd7ae5dbfab8179d55a142c390fd5'
         '6554512b0440b0b8f41c811354fe403c'
         '66ff27b4c6b7c5fda4e2db69f829e4aa'
         '18f9ef4643ff7ed6637907f5cbdabecf'
         '5cc80c2851ea90b94e94b0c5d92d81fb'
         '897316929176464ebc9ad085f31e7284'
         '7d11b9d2bc1234278f14151025744916'
         '2e5557241915e4c2761ba136dbcba469')

prepare() {
  cd "$srcdir/cde-$pkgver/"
  patch -Np1 -i ../cdesktopenv-2.5.0-ksh93-lm.patch
  patch -Np1 -i ../cdesktopenv-2.5.0-fontalias.patch
}

build() {
  cd "$srcdir/cde-$pkgver/"

  ./autogen.sh
  ./configure --sysconfdir=/etc/dt
  make
}

package() {
  cd "$srcdir/cde-$pkgver/"

  make install DESTDIR="$pkgdir"

#  cd "$pkgdir/var/dt/"
#  chmod 755 .
#  chown bin .
#  chgrp bin .
#  mkdir -p appconfig/appmanager
#  mkdir -p tmp
#  chmod -R 755 *
#  chown -R bin *
#  chgrp -R bin *

#  cd "$pkgdir/etc/dt/"
#  chmod 755 .
#  mkdir -p appconfig/appmanager/C
#  mkdir -p appconfig/help/C
#  mkdir -p appconfig/icons/C
#  mkdir -p appconfig/types/C
#  mkdir -p config/Xsession.d
#  mkdir -p config/xfonts/C
#  chmod -R 755 *

  #Adding Calendar (see wiki -> https://sourceforge.net/p/cdesktopenv/wiki/LinuxBuild/#installing)
  #mkdir -p $pkgdir/var/spool/calendar

#  chmod a+x $srcdir/startxsession.sh
  install -Dm644 "$srcdir"/fonts.{alias,dir} -t "$pkgdir/etc/dt/config/xfonts/C/"
  
  install -Dm644 "$srcdir/cde.desktop" \
                 "$pkgdir/usr/share/xsessions/cde.desktop"
  install -Dm644 "$srcdir/dtlogin.service" \
                 "$pkgdir/usr/lib/systemd/system/dtlogin.service" 
  install -Dm755 "$srcdir/cde-$pkgver/contrib/rc/linux/dtlogin" \
                 "$pkgdir/etc/rc.d/dtlogin"

  install -dm755 "$pkgdir/usr/spool"
  install -Dm644 "$srcdir/cde-$pkgver/contrib/xinetd/cmsd" \
                 "$pkgdir/etc/xinetd.d/cmsd"
  install -Dm644 "$srcdir/cde-$pkgver/contrib/xinetd/ttdbserver" \
                 "$pkgdir/etc/xinetd.d/ttdbserver"
  install -Dm755 "$srcdir/startxsession.sh" \
                 "$pkgdir/usr/bin/startxsession.sh"
}

Edit:
The PKGBUILD does not follow Arch_package_guidelines#Directories in that it uses /usr/dt instead of /usr or /opt/dt for the prefix.

Last edited by loqs (2022-07-29 21:51:23)

Offline

Board footer

Powered by FluxBB