Closed stevenhoneyman closed 10 years ago
As far as I see from your examples, the difference in depends section - it was not updated with recent commit in. Can you please share your customization file?
I know - I even did a diff
of the broken customizepkg script, and the working one... but the only changes were the seperators!
Here's the customization file (it happened the same with at least 10 others before I realised something was wrong):
#
# Package: glances
# Version: 2.0.1
#
# -- Did I mention that I really hate python?!
add#options#!emptydirs
replace#depends#'python'#'python2'
replace#depends#'python-psutil'#'python2-psutil'
remove#depends#'python-setuptools'
add#makedepends#python2-setuptools
replace#package#python.*$#find . -type f -name "*.py" -exec sed -i "s/env python/env python2/" {} \\; \n&
replace#package#^python#python2
replace#package#images}$#&\n rm -r "$pkgdir/usr/share/locale/de" \n echo "/usr/bin/python2 -m glances" >"$pkgdir/usr/bin/glances"
Here's the simplest one I have that definitely was affected by it:
#
# Package: libmikmod
#
remove#global#libpulse
replace#global#--disable-static#& --disable-pulseaudio
libmikmod looks like works for me, at least I see same results. From what I discovered, problem mostly affecting this
makedepends|optdepends|depends)
pattern="${pattern}[<>=]*\(: \|\)[a-z0-9.{$}\-]*" ;&
If I am removing \(: \|\)
part from it, glances customization starts working. Do you remember by chance why do you added \(: \|\)
entry here? I see why <>=
and [a-z0-9.{$}\-]*
are needed, but not \(: \|\)
.
That part covers optdepends which have a description, for example, nmap, I don't need zenmap:
remove#makedepends#pygtk
remove#optdepends#pygtk: zenmap
remove#optdepends#kdebase-runtime: privilege escalation for zenmap
replace#build#.\/configure#& --disable-nls --without-zenmap
removeline#package#rm.*uninstall_zenmap$
Hm, I believe we just need to replace pipe with something else, which will work. What do you think about underscore? From what I tried underscore looks like working. Can you try it with your problematic customizations and check if it working? Thanks!
P.S. If underscore will work for you, fill free to push the update with '|' replaced with '_' - I will be out for whole weekend and will not be able to push anything till Sunday's night.
Sorry for the late reply - underscore breaks a few things too with variable names people like to use :-1: I've used % and so far so good. I've pushed the commit, but we can change it again if you find something broken (or if I do :laughing: )
Thanks, Steven. Looks like my customizations are not affected by changes "|" -> "%", so I am good with the new separator.
Hi! It's been a while since I've used this much (started to move away from yaourt/abs/arch). However, I've just been doing a clean install of Arch, so customizepkg was your latest version (pipes instead of @ symbols). Unforutnately this for some reason breaks a lot of things for changing/removing depends and makedepends (haven't tried to see why yet - still busy installing!)
Here's what the output looks like, the first is your latest version; the second is when I went back 1 commit: