You are not logged in.
I'm currently trying to set up 2bwm with my own settings via the config.h file. Here are the changes I'm trying to change.
///---Colors---///
static const char *colors[] = {"#0000FF","#7f7f7f","#7a8c5c","#ff6666","#cc9933","#0d131a","#000000"};///--Menus and Programs---///
static const char *terminal[] = { "st '-f inconsolata:pixelsize=20'", NULL };After I tweaked the config.h file, I ran a "sudo makepkg -s --asroot", and then installed the package like this, "sudo pacman -U 2bwm.pkg.tar.xz". I downloaded the "2bwm-git" package via "sudo cower -d 2bwm-git". Is there something I did wrong here?
Last edited by shoober420 (2014-08-01 11:06:05)
Offline
Please read the AUR wiki page and `man makepkg`: you are overwriting your changes.
Moving to NC...
Offline
What does "won't work" mean? The changes don't take effect, you can't start the window manager, the terminal won't start?
Offline
My settings don't load after I build the package. But it seems that after I run makepkg, my settings get overwritten and get reverted back to default.
Offline
Please read the AUR wiki page and `man makepkg`: you are overwriting your changes.
Offline
I just read through those wikis, and it tells me things I already know how to do. I couldn't find where it tells you how to compile a package without it overwriting your config.h file. Where does it say how to do this?
Offline
-e, --noextract
Offline
Thank you so much jasonwryan. I finally have 2bwm up and running with my settings. I did encounter a problem though. I'm not sure if this is my fault or a bug in 2bwm, but when I try to set a command line parameter for simple terminal, it will crash when I try to spawn that terminal. I bolded what parameter is causing the crash.
static const char *terminal[] = { "st '-f inconsolata:pixelsize=20', NULL };
If I compile 2bwm without the bolded text, I can spawn terminals normally. But, if I try to spawn terminals with that launch parameter present, X completely freezes and I have to do a hard reboot. I tried it with and without quotes, and it freezes when I use the quotes. So that must be how it works. Without quotes, the whole string is ignored, and I can't spawn a terminal. Is this my fault, or a bug in 2bwm?
Last edited by shoober420 (2014-08-01 10:08:02)
Offline
static const char *terminal[] = { "st", "-f", "inconsolata:pixelsize=20", NULL };Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline
I still have an issue though. Its not completely solved. X completely crashes when I use that command line parameter thats in bold text.
Offline
What about if you use the one I pasted?
What about pasting your Xorg log after it crashes?
Offline
Awesome! That indeed fixed it. Thank you very much jasonwryan.
Offline
I'm surprised this wasn't also mentioned: why are you running makepkg as root? Don't.
You solved two problems in this thread when you (eventually) followed the advice provided, but you may end up with other problems if you don't learn how to use the tools your are tossing about (like makepkg).
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
When I try to run makepkg without root, I get this error message.
==> ERROR: You do not have write permission to create packages in /~/packages/2bwm-git.
Aborting...This is why I've always used sudo and --asroot.
Last edited by shoober420 (2014-08-01 12:31:37)
Offline
Unless you've intentionally done something very non-standard with your home directory, that is indicative of a deeper problem.
When something goes wrong, try to understand why it goes wrong, don't just get a bigger hammer (e.g. sudo).
Why this didn't give you pause is beyond me:
--asroot
Allow makepkg to run as root. This is for security purposes as it is normally dangerous to do so.
Last edited by Trilby (2014-08-01 12:36:12)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I have a seperate partition for my home directory, but I don't think that would cause it. I didn't do anything else different to my install. I just followed the wiki. I already knew it wasn't good practice to use makepkg as root, but it wouldn't work without it.
Last edited by shoober420 (2014-08-01 12:38:36)
Offline
No where in the wiki does it say to use sudo and --asroot with makepkg. You may want to open a new thread to solve the *real* problem here before you do something unrecoverable to your system. But that's up to you.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I know it doesn't say in the wiki to use --asroot. I was saying that I followed the wiki in terms of the install process, to mean that I didn't do anything out of the ordinary to my install for my makepkg to give such an error. I figured out what I have to do. I have to use the following command in every directory I use makepkg in to use it without root.
sudo chrown -R user pathWhere it says "user" would be were I put my user name, and path would be the path I want to run makepkg.
Last edited by shoober420 (2014-08-01 12:51:38)
Offline
What are the contents of
/etc/makepkg.conf?
Offline
Copying and pasting is a pain using nano lol.
#
# /etc/makepkg.conf
#
#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
# Format: 'protocol::agent'
DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o $
'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
'rsync::/usr/bin/rsync --no-motd -z %u %o'
'scp::/usr/bin/scp -C %u %o')
# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget
#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-unknown-linux-gnu"
#-- Compiler and Linker Flags
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param$
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --par$
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
#-- Make Flags: change this for DistCC/SMP systems
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"
#-- Debugging flags
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign)
# A negated environment option will do the opposite of the comments below.
#
#-- fakeroot: Allow building packages as a non-root user
#-- distcc: Use the Distributed C/C++/ObjC compiler
#-- color: Colorize output messages
#-- ccache: Use ccache to cache compilation
#-- check: Run the check() function if present in the PKGBUILD
#-- ccache: Use ccache to cache compilation
#-- check: Run the check() function if present in the PKGBUILD
#-- sign: Generate PGP signature file
#
BUILDENV=(fakeroot !distcc color !ccache check !sign)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""
#
#-- Specify a directory for package building.
#BUILDDIR=/tmp/makepkg
#########################################################################
# GLOBAL PACKAGE OPTIONS
# These are default values for the options=() settings
#########################################################################
#
# Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx$
#
# Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx$
# A negated option will do the opposite of the comments below.
#
#-- strip: Strip symbols from binaries/libraries
#-- docs: Save doc directories specified by DOC_DIRS
#-- libtool: Leave libtool (.la) files in packages
#-- staticlibs: Leave static library (.a) files in packages
#-- emptydirs: Leave empty directories in packages
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge: Remove files specified by PURGE_TARGETS
#-- upx: Compress binary executable files using UPX
#-- debug: Add debugging flags as specified in DEBUG_* variables
#
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- Options to be used when stripping binaries. See `man strip' for details.
STRIP_BINARIES="--strip-all"
#-- Options to be used when stripping shared libraries. See `man strip' for details.
STRIP_SHARED="--strip-unneeded"
#-- Options to be used when stripping static libraries. See `man strip' for details.
STRIP_STATIC="--strip-debug"
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
#SRCPKGDEST=/home/srcpackages
#-- Log files: specify a fixed directory where all log files will be placed
#LOGDEST=/home/makepkglogs
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"
#-- Specify a key to use for package signing
#GPGKEY=""
#########################################################################
# COMPRESSION DEFAULTS
#########################################################################
#
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)
#########################################################################
# EXTENSION DEFAULTS
#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
# WARNING: Do NOT modify these variables unless you know what you are
# doing.
#
PKGEXT='.pkg.tar.xz'
SRCEXT='.src.tar.gz'
# vim: set ft=sh ts=2 sw=2 et:Offline
Do you build your packages inside
~/packages/2bwm-git?
Uncomment and change PKGDEST to something other than /home/packages in makepkg.conf
Copying and pasting is a pain using nano lol.
Try
cat <file> | xselLast edited by x33a (2014-08-01 13:29:20)
Offline
I'll try that out next time I try and build a package.
Thanks for the copy and paste recommendation. I'll have to try it next time.
Last edited by shoober420 (2014-08-01 13:50:20)
Offline
sudo chrown -R user pathIf you need to do this to directories in your user's home dir, this has nothing to do with makepkg, but rather the permissions of your home directory and/or user, or something, are really botched.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
What could cause my user permissions to be botched?
Offline
As suggested above, you should start a new thread to try to figure that out. A first step would be to investigate which permissions/ownerships are off (`ls -l <directory>` will help with that) and post some information in the new thread.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline