Re: POSIX replacement for bash's “export -n” ?
Charles Plessy wrote: Hello everybody, In one of the packages I maintain, building fails when the default shell is /bin/dash because of an “export -n” command that was not found by checkbashisms (probably because it was hidden in a Perl script). I would like to send a patch Upstream, but have not found a drop-in replacement for this command, apart from someghing ugly like: BAR=$FOO ; unset FOO ; FOO=$BAR ; unset BAR to replace ‘export -n FOO’. Any idea ? Have a nice day, There really doesn't seem to be a way. I can only suggest: * bolt those comands up into an unexport function (not pretty; make your BAR local and you don't need to subsequently unset it) * perhaps you can run the commands needing the exported variable in a subshell? (see under Grouping Commands Together in the man page). If you export anything in a subshell, it won't be reflected in the main shell, but beware, nor will any other shell builtin take effect. (Potentially also not pretty, and/or a lot of work rewriting) HTH, or you get a better suggestion ;) -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4c3acaa9.3010...@shadowcat.co.uk
Re: POSIX replacement for bash's “export -n” ?
Chris Jackson wrote: There really doesn't seem to be a way. I can only suggest: * bolt those comands up into an unexport function (not pretty; make your BAR local and you don't need to subsequently unset it) For reference, this seems to work: unexport() { local unexport_var=`eval echo \\$$1\\\` unset $1 eval $1='$unexport_var' } Like I said, not the prettiest thing. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4c3ad811.2090...@shadowcat.co.uk
Re: RFS: sunpinyin - Simplified Chinese Input Method from SUN
Liang Guo wrote: I've re-uploaded my package to mentors.d.n, - dget http://mentors.debian.net/debian/pool/main/s/sunpinyin/sunpinyin_2.0.2~git20100627-1.dsc For this package will be uploaded to experimental distribution, would you like check it in a unstable environment ? Under what environment did you test it? Does your package include the DBUS module? And SCIM? I test it in my debian unstable box with ibus front end, This package includes only sunpinyin runtime library. scim frontend is not working with current version sunpinyin I'm working on ibus-sunpinyin, xsunpinyin and open-gram-data(maybe renamed to sunpinyin-data). But they are not good enough. Hi, Your package compiles under SID, but not under Lenny, it's breaking when the shlibs depends is being calculated. Can you have a look and see what's happening? I'm currently installing X on a qemu VM to test your package in SID. I'll test it soon myself (only if you tell me it has at least dbus or scim module included and working though, as otherwise I wont know how to test...). Would you like try ibus ? maybe you'll like it. I would love that your package supports both! :) Thomas -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4c3ad42e.70...@goirand.fr
Re: POSIX replacement for bash's “export -n” ?
Le Mon, Jul 12, 2010 at 08:56:25AM +0100, Chris Jackson a écrit : I would like to send a patch Upstream, but have not found a drop-in replacement for this command, apart from someghing ugly like: BAR=$FOO ; unset FOO ; FOO=$BAR ; unset BAR to replace ‘export -n FOO’. * perhaps you can run the commands needing the exported variable in a subshell? (see under Grouping Commands Together in the man page). If you export anything in a subshell, it won't be reflected in the main shell, but beware, nor will any other shell builtin take effect. (Potentially also not pretty, and/or a lot of work rewriting) Thanks a lot for the suggestion! In my particular case, I think that it does what is intended. I will replace the following line of the Perl script that causes problem with dash: open (WOSSNAME, export -n EMBOSS_ACDCOMMANDLINE;wossname -alpha -auto|) || die Cannot run wossname; by the following line: open (WOSSNAME, (unset EMBOSS_ACDCOMMANDLINE; wossname -alpha -auto)|) || die Cannot run wossname; This wossname command just prints to stdout a list of available commands from the EMBOSS software suite Have a nice day, -- Charles Plessy Tsurumi, Kanagawa, Japan -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100712115655.ga20...@merveille.plessy.net
Re: POSIX replacement for bash's “export -n” ?
On Mon, Jul 12, 2010 at 08:56:55PM +0900, Charles Plessy wrote: Le Mon, Jul 12, 2010 at 08:56:25AM +0100, Chris Jackson a écrit : I would like to send a patch Upstream, but have not found a drop-in replacement for this command, apart from someghing ugly like: BAR=$FOO ; unset FOO ; FOO=$BAR ; unset BAR to replace ‘export -n FOO’. * perhaps you can run the commands needing the exported variable in a subshell? (see under Grouping Commands Together in the man page). If you export anything in a subshell, it won't be reflected in the main shell, but beware, nor will any other shell builtin take effect. (Potentially also not pretty, and/or a lot of work rewriting) Thanks a lot for the suggestion! In my particular case, I think that it does what is intended. I will replace the following line of the Perl script that causes problem with dash: open (WOSSNAME, export -n EMBOSS_ACDCOMMANDLINE;wossname -alpha -auto|) || die Cannot run wossname; by the following line: open (WOSSNAME, (unset EMBOSS_ACDCOMMANDLINE; wossname -alpha -auto)|) || die Cannot run wossname; Erm... since you *are* executing this in a separate process, can't you just unset it even without running it in a subshell? This wossname command just prints to stdout a list of available commands from the EMBOSS software suite G'luck, Peter -- Peter Pentchev r...@space.bgr...@ringlet.netr...@freebsd.org PGP key:http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence would be seven words long if it were six words shorter. signature.asc Description: Digital signature
Re: POSIX replacement for bash's “export -n” ?
Le Mon, Jul 12, 2010 at 03:01:35PM +0300, Peter Pentchev a écrit : On Mon, Jul 12, 2010 at 08:56:55PM +0900, Charles Plessy wrote: open (WOSSNAME, export -n EMBOSS_ACDCOMMANDLINE;wossname -alpha -auto|) || die Cannot run wossname; by the following line: open (WOSSNAME, (unset EMBOSS_ACDCOMMANDLINE; wossname -alpha -auto)|) || die Cannot run wossname; Erm... since you *are* executing this in a separate process, can't you just unset it even without running it in a subshell? Good point :) So basically I will write Upstream that in that case there is no need to protect the parent environment, and ask them to replace “export -n” by “unset”. Many thanks, -- Charles -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100712123659.gb20...@merveille.plessy.net
Re: RFS: sunpinyin - Simplified Chinese Input Method from SUN
2010/7/12 Thomas Goirand tho...@goirand.fr: Thomas Goirand wrote: Liang Guo wrote: I've re-uploaded my package to mentors.d.n, - dget http://mentors.debian.net/debian/pool/main/s/sunpinyin/sunpinyin_2.0.2~git20100627-1.dsc For this package will be uploaded to experimental distribution, would you like check it in a unstable environment ? Under what environment did you test it? Does your package include the DBUS module? And SCIM? I test it in my debian unstable box with ibus front end, This package includes only sunpinyin runtime library. scim frontend is not working with current version sunpinyin I'm working on ibus-sunpinyin, xsunpinyin and open-gram-data(maybe renamed to sunpinyin-data). But they are not good enough. Hi, Your package compiles under SID, but not under Lenny, it's breaking when the shlibs depends is being calculated. Can you have a look and see what's happening? I'm currently installing X on a qemu VM to test your package in SID. Hi, The build also failed under SID when dh_makeshlibs was called. Please fix. Thomas Can you send me the error message ? Thanks, -- Liang Guo http://bluestone.cublog.cn -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktim2yqzljo72xc0sbioehlxo2w83-hwjlpe4a...@mail.gmail.com
Re: RFS: sunpinyin - Simplified Chinese Input Method from SUN
Thomas Goirand wrote: Liang Guo wrote: I've re-uploaded my package to mentors.d.n, - dget http://mentors.debian.net/debian/pool/main/s/sunpinyin/sunpinyin_2.0.2~git20100627-1.dsc For this package will be uploaded to experimental distribution, would you like check it in a unstable environment ? Under what environment did you test it? Does your package include the DBUS module? And SCIM? I test it in my debian unstable box with ibus front end, This package includes only sunpinyin runtime library. scim frontend is not working with current version sunpinyin I'm working on ibus-sunpinyin, xsunpinyin and open-gram-data(maybe renamed to sunpinyin-data). But they are not good enough. Hi, Your package compiles under SID, but not under Lenny, it's breaking when the shlibs depends is being calculated. Can you have a look and see what's happening? I'm currently installing X on a qemu VM to test your package in SID. Hi, The build also failed under SID when dh_makeshlibs was called. Please fix. Thomas -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4c3b0f31.1050...@goirand.fr
Re: RFS: sunpinyin - Simplified Chinese Input Method from SUN
Liang Guo wrote: Can you send me the error message ? Thanks, I don't think we need to pollute the public list. We can discuss this privately until the package is ready. Follow-up on another (private) message. Thomas -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4c3b1dd3.3010...@goirand.fr
Re: RFS: cba
On 07/09/2010 12:31 PM, Jordan Metzmeier wrote: Your package fails to build from source. First we get this called from the Makefile: gcc `wx-config --cflags` -Wall -g -Os-c -o /home/jordan/build/cba/cba-0.3.6/src/gui/cbeam_class.o /home/jordan/build/cba/cba-0.3.6/src/gui/cbeam_class.cpp /bin/sh: wx-config: command not found apt-file does not show a package containing this file, but a quick google search shows that it is an alternative provided by libwxgtk2.8-dev. This seems to be mentioned in the upstream README: there are makefiles provided in /src for linux, try make (you will need wxwidgets-dev libraries for the gui) In your build-depends you only have: Build-Depends: debhelper (= 7) There is also one lintian warning: W: cba source: newer-standards-version 3.8.4 (current is 3.8.0) After installing libwxgtk2.8-dev, the package builds. Sorry, it was pointed out to me on IRC that my lintian was out of date. The current standards version is 3.9.0. W: cba source: out-of-date-standards-version 3.8.4 (current is 3.9.0) dear jordan, thank you for giving cba a trial and for the hint concerning the build deps, (i was thinking that it is determined automatically), i now added libwxgtk2.8-dev manually to the depends in the control file, i hope this helps. kind regards, pierrot -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4c3af9bd.6000...@gmx.net
RFS: gnome-screensaver-flags (new package)
Dear mentors, I am looking for a sponsor for my package gnome-screensaver-flags. * Package name: gnome-screensaver-flags * Version : 0.1 * Upstream Author : Tomasz Murasnexor1...@gmail.com * URL : http://techblog.zabuchy.net * License : GNU GPL v3 * Section : gnome It builds these binary packages: gnome-screensaver-flags- Screensaver for GNOME with flags of the world. This is a very simple native Debian package that contains about 250 images for use by GNOME screensaver (gnome-screensaver). I have generated images based on the information and flags from CIA world factbook site. This information is in public domain. My intention was to create a screensaver with educational value. The package has 1 lintian override: .desktop file points to executable provided by a package that it depends on (gnome-screensaver) The package can be found on mentors.debian.net: - URL: http://mentors.debian.net/debian/pool/main/g/gnome-screensaver-flags - dget http://mentors.debian.net/debian/pool/main/g/gnome-screensaver-flags/gnome-screensaver-flags_0.1.dsc Kind regards Tomasz Muras -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4c3b74a5.4060...@gmail.com
RFS: stella (updated package, adoption)
Dear mentors, I am looking for a sponsor for the new version 3.1.2-1 of my package stella. It builds these binary packages: stella - Atari 2600 Emulator for SDL the X Window System The package appears to be lintian clean. The upload would fix these bugs: 396058, 411815, 461121, 532039, 560274 The package can be found on mentors.debian.net: - URL: http://mentors.debian.net/debian/pool/main/s/stella - Source repository: deb-src http://mentors.debian.net/debian unstable main contrib non-free - dget http://mentors.debian.net/debian/pool/main/s/stella/stella_3.1.2-1.dsc It is also available from the pkg-games repository on git://git.debian.org/git/pkg-games/stella.git I would be glad if someone uploaded this package for me. Kind regards Stephen Kitt -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100713005332.431d9...@sk2.org
RFS: myspell-el-gr (updated package)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear mentors, I am looking for a sponsor for the new version 0.7-1 of my package myspell-el-gr. I would like to adopt the package, as of bug: #58, since I am greek myself, which should help to check any issues which raise in the actual dictionary files and I have experience in debian packaging. It builds these binary packages: myspell-el-gr - Greek (el_GR) dictionary for myspell The package appears to be lintian clean. The upload would fix these bugs: 286653, 415719, 58 The package can be found on mentors.debian.net: - - URL: http://mentors.debian.net/debian/pool/main/m/myspell-el-gr - - Source repository: deb-src http://mentors.debian.net/debian unstable main contrib non-free - - dget http://mentors.debian.net/debian/pool/main/m/myspell-el-gr/myspell-el-gr_0.7-1.dsc I would be glad if someone uploaded this package for me. PS: Please include my email in replies, I am not subscribed in the list Kind regards Nick Andrik -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkw7qgcACgkQrdZ2oYS0I7Jg5ACg8wfLDdWl1B8NyQhedgM/qXqg YakAnj9QKcQu3laGutd7lBviy/cc/Fmt =JBbR -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4c3baa0b.2030...@gmail.com
RFS: acetoneiso (updated package)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear mentors, I am looking for a sponsor for the new version 2.2.1-2 of my package acetoneiso. There are no upstream changes, I just updated the packaging. It builds these binary packages: acetoneiso - feature-rich application to mount and manage CD/DVD images The package appears to be lintian clean. The package can be found on mentors.debian.net: - - URL: http://mentors.debian.net/debian/pool/main/a/acetoneiso - - Source repository: deb-src http://mentors.debian.net/debian unstable main contrib non-free - - dget http://mentors.debian.net/debian/pool/main/a/acetoneiso/acetoneiso_2.2.1-2.dsc I would be glad if someone uploaded this package for me. PS: Please include me in the replies, I am not subscribed in the list. Kind regards, Nick Andrik -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkw7qAEACgkQrdZ2oYS0I7JtkgCfZ9OQdsJ7NQi2XW834RHV5QQY uDUAnRo/yB6qL5d0Ak+eHUHJg4vaJ4bY =PdGs -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4c3ba805.1070...@gmail.com