Include PKGBUILD etc. in actual packages?
I'm sure this must have been asked or requested before, but couldn't find any trace of it, so here goes:
Would it not be helpful under various circumstances to have all the building stuff for a package (i.e. that which you would find in the abs directory) included (say, as .abs) in each package? This would make building your own repositories easier - no need to build an abs directory for them. It might help tweaking of old packages easier, when for some reason you can't use the latest build stuff. No problems syncing abs with your actual installed files ...
Are there good reasons for not doing this (apart from a minimal increase in package size)? To implement it should be very easy - just a tweak to makepkg.
I see nothing beneficial that cannot be gleened from what abs gives you - PKGBUILDs are stored in CVS, so you can always view old packages.
The reason for not doing it is, obviously, the overcomplication. Also, it makes logical sense to have source and binary seperate - not much point to include build instructions in a package if they're never needed (i.e. a production server). It has nothing to do with size, it has to do with the fact that it's not needed.
Similar Messages
-
Revision: 5267
Author: [email protected]
Date: 2009-03-12 11:17:14 -0700 (Thu, 12 Mar 2009)
Log Message:
Update 3.x branch to include browserServer.jar in the packaged qa sdk zip.
Modified Paths:
blazeds/branches/3.x/qa/apps/qa-regress/build.xmlI've been playing with this too.
What kills it for me is my inability to get intelfb running properly on my eee 900 (says the module is loaded but there is no /dev/fb/0 device). One suggestion is to use a vga= code instead of video=intelfb:[etc] in my /boot/grub/menu.lst . But that makes it impossible to have the 1024x600 resolution of the eee's screen, so I haven't even tried it.
Why intelfb? Because mplayer's directfb driver has tearing even with buffermode=triple and mplayer's -double tag enabled when using uvesafb. Maybe I am assuming too much that the intelfb would have the hardware acceleration hooks necessary to make it work?
The other thing that cripples it for me is the "stuck at 16 colors" nature of Linux console even when running a framebuffer with a 32-bit background. I've gotten a tip on changing those colors but it is obtuse at best. Very surprised that there hasn't been a 256 color (at least) framebuffer console developed yet. (Unless screen magically enables the extra colors?) dfbterm looks interesting but the last thing I want is windowed terminals when I am trying to use CLI.
Last edited by jceasless (2009-06-03 18:54:51) -
Include art board images in packaged Links folder
Is there a way to include the images placed on the art board in the packaged Links folder? Meaning include all the images when packaging not just the ones in the document.
Here's my weird workflow as well. Maybe someone could suggest a change that would improve the process.
1- designers lay out editorial features not knowing if the images will land on color or B/W pages (dont ask — I wish I could change this).
2- color images are placed in the layout but b/w versions are placed on the art board — directly left or right of the page containing the color version.
3- features can sit for days until ready for pagination.
4- production artists paginate the pages after ad-logs are complete.
5- images in editorial content are swapped, when needed, to b/w — placing the original color images onto the art board.
6- features are packaged for delivery to a web production team which copies and pastes the text and images into web templates.
6a- If color images are swapped for b/w during print pagination and the article packaged they will not be available for the web production department.
I have joined a stubborn team that I finally convinced to move from Quark 4... but they can not let go of this art board process. Any suggestions, comments or feedback is greatly appreciated.mckayk_777 wrote:
Just a thought.
Increase the size of the sludge to include the images and see if they are taken when packaged then
I believe tha answer to that is no, but Packaging DOES pick up anything that touches the bleed area. This mans defining a large bleed gives you a lot of space on the pastebaord that will potentially be included in the package, but it also means that using the bleed guides and document bleed settings in the print and export dialogs is no longer valid, a small inconvenience since you can easily add a new set of ruler guides for the bleed and define bleed dimensions in the dialogs.
Or get REALLY sneaky and define the bleed as huge, then define the slug as the size you would use for the bleed. When you print or export, don't set a bleed, but include the slug area. The big downside to this is that the bleed area is included in the view when you fit spread or fit page in window. -
How to Include JRE with our Setup Package
please help me,
i have created one swing application.i successfully created setup.exe using installsheild 11.It is working in my machine.when i run this in another machine .it is not working.iam using some external jar also in the appln.i put that jars into the jre/lib/ext in destination machine's directory then it works.
i want to include JRE with my setup package(first the setup should find whether the jre is installed or not ,if not it must insall JRE and put my external jar files into jre/lib/ext directory in destination machine then only my appln should insall).please give me a solution for thisWhat?!! It isn't considered legal to access a
root-level class from a higher level package?Well it's not now because your code won't compile, but
prior to 1.4 you could. I think the JLS has been
updated to say you can't import from the unnamed
namespace.Hmm! I must have missed that bit (not that I read it in any great detail, anyway!). I suppose it forces you to use packages, which is a good thing, IMHO.
What I was wondering about was, is the directory structure of classes strictly necessary, given that a class contains information on its package anyway? I know some IDEs don't require the source files to be in the right directory - they will check on the package statement, and locate the class file accordingly - but is it absolutely necessary for class files to be located according to their directory structure? I know the JLS says they have to be, but could the JLS be relaxed on this point, without breaking anything?
RObin -
I have delete all my ipod include software etc. how do i install back?
i have delete all my ipod include software etc. how do i install back?
Did you go to: Settings>General>Reset>Erase all content and setting? If did that with a 1G or 2G iPod it can take hours had if the iPod is not charging during that time the battery will fully drain.
Try charging it for an hour and see what happens. See if placing the iPod in recovery mode will allow iTunes to see the iPod so you can restore the iPod via iTunes. For recovery mode see:
iPhone and iPod touch: Unable to update or restore -
Pbget: ABS and AUR PKGBUILD etc retriever
Info page: http://xyne.archlinux.ca/projects/pbget
edit: updated post with current information
pbget is a command-line tool for downloading PKGBUILDs and local source files from the Arch Linux Git interface, the AUR, and the ABS tree
Last edited by Xyne (2012-03-08 23:25:21)I now use a bash function as replacement for pbget. Probably, you are intereseted...
pbget() {
local extract
[[ "$1" = "-x" ]] && extract=1 && shift
local pkgname="${1##*/}"
if [[ "$pkgname" = "$1" ]]; then
local repos=(testing core extra community-testing community aur)
else
local repos=(${1%%/*})
fi
for repo in ${repos[@]}; do
local url
case "$repo" in
aur)
url="http://aur.archlinux.org/packages/$pkgname/$pkgname.tar.gz"
community-testing|community)
url="http://repos.archlinux.org/wsvn/community/$pkgname/repos/$repo-$(uname -m)/?op=dl&rev=0&isdir=1"
testing|core|extra)
url="http://repos.archlinux.org/wsvn/packages/$pkgname/repos/$repo-$(uname -m)/?op=dl&rev=0&isdir=1"
echo "Unknown repository. Exiting..."
return 1
esac
wget -O "$pkgname.tar.gz" "$url"
if [[ ! -s "$pkgname.tar.gz" || "$(file -bp --mime-type "$pkgname.tar.gz")" = "text/plain" ]]; then
rm -f -- "$pkgname.tar.gz"
else
break
fi
done
if [[ ! -f "$pkgname.tar.gz" ]]; then
echo "Package \`$pkgname' does not exist in the repositories. Exiting..."
return 1
fi
# extract downloaded file
if [[ -n "$extract" ]]; then
mkdir "$pkgname"
bsdtar xkf "$pkgname.tar.gz" --strip-components 1 -C "$pkgname"
rm -f -- "$pkgname.tar.gz"
cd "$pkgname"
fi
edit: I should probably give some examples how to use it:
$ pbget pacman
Will search for pacman in the following repos (testing core extra community-testing community aur) and takes the first pacman it finds. So, if there is a pacman package in testing, it would use this one.
$ pbget core/pacman
Get the PKGBUILD of the pacman package in core.
$ pbget -x core/pacman
Get the PKGBUILD of the pacman package in core, extract the tarball (and delete it) and change into the directory which contains the extracted PKGBUILD.
Last edited by xduugu (2009-10-20 00:17:24) -
[Solved] How to include examples for an AUR package
Hi,
I read the wiki pages how to create packages for the AUR,
but I am not sure how to include examples which should be placed
in /usr/share/doc/<package>/examples/ after the package was installed.
Should all files be mentioned in the "sources" variable of the PKGBUILD
or is it better to copy them via the .install file?
Last edited by fana (2012-01-22 17:38:41)fana wrote:Ah, I see. So a good way would be just providing a tarball with all the examples and add that tarball to the source array
Yup, I don't see how are these are examples different [1] from the other files.
[1] Well, apart from stuff like https://bugs.archlinux.org/task/25998 ;P -
Fakeinstall - grab packets info from everywhere but the actual package
At the moment I'm working on a (not so) smart version of pacfix which recognizes installation sessions in pacman.log and based on those tries to understand which packages were explicitly installed.
The script works at the moment, but it needs some group install detection support as well as some polishing (I can guarantee I will never write anything in bash anymore, and neither should you!).
While testing the script, a problem arose: how do I restore the packet database without having to redownload every packet?
The answer is this script: this script grabs desc and depends from the database, files* from the mirror, install from abs and put the content in ./local/$pkg_name-$pkg_ver
You should pacman -Sy && abs before using this script.
Limits:
_I don't know how to make the parsing of /etc/pacman.conf for the mirrors, so you should edit the script by yourself (the wget line)
_*files: unfortunately the files provided in every repository are stripped of the %BACKUP% section (don't know why), so I just invented an md5sum for the files to backup. This means that on the subsequent upgrade there could be a bunch of unnecessary pacsave/pacnew files (if I understood how %BACKUP% works right)
#!/bin/bash
# What you wanna fake today?
# Env checks
if [ ! "$1" = "--yes" ];then
echo "WARNING: you should update your pacman database and abs repository"
echo "WARNING: the entries will be saved in $PWD/local"
echo "Run as $0 --yes <repo1/pkg1> <repo2/pkg2> ..."
echo ""
echo "EXAMPLE: $0 --yes core/patch core/sudo extra/gimp"
exit 0
else
shift
fi
# pacman.conf parsing
if [ ! -r /etc/pacman.conf ]; then
echo "ERROR: unable to read /etc/pacman.conf"
exit 1
else
eval $(awk '/DBPath/ {print $1$2$3}' /etc/pacman.conf)
fi
pac_db="${DBPath:-/var/lib/pacman}/sync"
if [ ! -d "$pac_db" ] ; then
echo "ERROR: pacman database directory ${pac_db} not found"
exit 1
fi
# abs.conf parsing
if [ ! -r /etc/abs.conf ]; then
echo "ERROR: unable to read /etc/abs.conf"
exit 1
else
source /etc/abs.conf
fi
abs_dir="${ABSROOT:-/var/abs/}"
if [ ! -d "$abs_dir" ]; then
echo "ERROR: abs directory $abs_dir not found"
fi
# working directory related stuff
work_dir="$PWD/local"
if [ ! -d "$work_dir" ]; then
mkdir "local"
fi
# Main loop
cd "$work_dir"
for argument in $@ ; do
echo "Processing $argument"
pkg_name="${argument#*/}"
repository="${argument%/*}"
pkg_dbdir=$(echo "$pac_db"/$repository/$pkg_name-[0-9]*)
pkg_namever="${pkg_dbdir##*/}"
if [ -d "$work_dir/$pkg_namever" ];then
echo "The entry $pkg_namever already exists in $work_dir, skipping" >&2
continue
fi
wget -q -nc ftp://mi.mirror.garr.it/mirrors/archlinux/$repository/os/i686/$repository.files.tar.gz
# DESC, DEPENDS AND FILES
bsdtar -xf $work_dir/$repository.files.tar.gz $pkg_namever/files
echo -ne "\n" >> $pkg_namever/files
cp "$pkg_dbdir"/{depends,desc} $pkg_namever/
# INSTALL AND BACKUP
eval $(source "$abs_dir/$repository/$pkg_name/PKGBUILD" && echo "install=$install backup=$backup")
if [ -n "$install" ]; then
cp "$abs_dir/$repository/$pkg_name/$install" "$pkg_namever/install"
unset install
fi
if [ -n "$backup" ]; then
echo -ne "%BACKUP%\n" >> "$pkg_namever/files"
for element in ${backup[@]} ;do
echo -e "$element\tGENERATEDWITHFAKEDB1234567890123" >> "$pkg_namever/files"
done
echo -ne "\n" >> "$pkg_namever/files"
unset backup
fi
done
echo done!
# vim: set ts=2 sw=2 noet:shining wrote:
carlocci wrote:While testing the script, a problem arose: how do I restore the packet database without having to redownload every packet?
The answer is this script: this script grabs desc and depends from the database, files* from the mirror, install from abs and put the content in ./local/$pkg_name-$pkg_ver
I don't think you should do that, there are many differences between sync and local db : changelog, install scriptlet, install time, maybe extracted package size too?, etc...
Well, changelog isn't used for install/remove/upgrade functions, as well as install time; the install scriplet is taken from abs, the extracted package size is already in the desc.
The goal is to regenerate a db well enough to perform the next update.
Besides, you should always keep at least your currently installed packages.
I couldn't agree more, but people aren't supposed to wipe their databases (damn you, pacman-cage!) either.
I read about a guy complaining he would have to redownload every packet he had installed on the forums once, and I've been thinking whether he could have avoided the huge download ever since.
If you really need to delete the older ones, that is what pacman -Sc is for.
Unfortunately, my hand slips most of the times and I end up pacman -Scc
The whole point of bacman was that I don't keep my package cache. -
Systemd gurus-want include x.service in AUR packages. proof read plz
I don't use systemd myself, but I want to expand the functionality of my AUR packages by including a x.service file for them. Attached are the proposed ones which need someone with systemd experience to proof read and comment.
Monitorix
[Unit]
Description=A lightweight system monitoring tool that uses rrd databases.
Wants=local-fs.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/etc/rc.d/monitorix start
ExecStop=/etc/rc.d/monitorix stop
[Install]
WantedBy=multi-user.target
Monitorix-sync-daemon
[Unit]
Description=Symlinks and syncs monitorix databases to RAM thus reducing HDD/SDD calls and speeding-up monitorix.
Wants=local-fs.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/etc/rc.d/msd start
ExecStop=/etc/rc.d/msd stop
[Install]
WantedBy=multi-user.targetDheart wrote:...
Someone should add this to "READ BEFORE POSTING"
This is not Ubuntu forum. You shouldn't EVER post such howto on the forum, we have a wiki for that reason. That thing you've written should go the wiki and then post a topic at wiki discussions and ask for opinion.
Please, don't do that again, just contribute to the wiki.
Yes, I'm quite aware that the wiki exists. The reason I'm writing it here is that the GUI frontends will probably come quite soon, and overall this is an early version. I don't see a reason to contribute this to the wiki when it will probably be unneeded and out-of-date relatively soon. -
How to include objects of a z* package into a single request
Hi Gurus,
The requirement is I need to include all the objects in a z*package into one single request.One way is I find out latest version of each program and include it in request.But there are some 200 objects in the package.Is there any simple way to do it , I mean is there any option wherein I type the package name and all programs get included in the request..........
Helpful answers will be rewarded
Regards,
Raghu.Please try this ..
Goto SE09 ..
Create a transport request ...
Delete the sub-task ..
Now place cursor on main task(request)
click on Include objects(Ctrl+F11)
In the popup check 'Freely selected objects' radio button .. click Ok
Enter the package name ... and any other parameters .. and F8 ..
This will include all the objects in the particular package selected ..
Then release the task ... -
Including custom fonts in installer packages...
Sup Gents,
Is it possible to include downloaded custom fonts in an installer package..? I'm aware other files like text files can be included but unsure how to include a font file (.ttf) files...
Good weekend to all...
StrokesStrokes,
In relation to your first post asking how to include a custom font in an installer.
Add the .ttf (font file) to your project, under your project explorer: My Computer (right click) >> Add >> file >> .ttf (font file)
You will need to write a .bat file that will copy the .ttf (font file) from your installation destination to C:\Windows\Fonts\
Here's how you add the font installation to your installer
Under your Installer Properties >> Advanced >> Run executable at end of installation (check box) >> select .bat file
This will run the batch file after the installation
I recommend having a read of this:
http://blogs.technet.com/b/rspitz/archive/2010/09/25/how-to-install-a-font-from-the-command-line-on-...
Kev R
Kevin R
Applications Engineer
National Instruments UK&Ireland -
Finding PKGBUILD for an old Package!
Hi Guys!
After running into so many several problems about running Apache/resin
I would like to get a grib on the old apache 2.0.5.5 PKGBUILD file.
Can someone please help me findig this - where should i look to find this?
More the problems must be around som configurations - That I can't get the meaning of and keeps running into error. The old package worked just fine UNTIL I updated! I' have now with a fresh install tryed to redo my old setup - but apache 2.0.5.5 have somewhere changed since!
While compiling Resin = ./configure --with-apxs that worked severel times???
I now get an error about a bad apxs - so now i would like to build my own package to see if thats help - ext step is to change to another distro to make this work??
Sorry and sadly to say that - but that could be the end of it!!!!
Peque!Well - if I want to stick with arch - (and i will )
I'll have to use tomcat instead of using Resin!
But if i have severel sites at ??/ www in dfferent maps here
how do I make these avaible to Tomcat - each libary have a WEB-INF and thats where tomcat is comming ind ???
Could somebody just tell me , caurse I don't get the point in the wikipage about that one ???
Thanks!!! -
[SOLVED] git PKGBUILD (sinit) almost there, package() fails
So, I'm trying to make my first PKGBUILD for sinit.
Here's what I have so far:
# Maintainer: Cem Aydin (rebootl) <cem.aydin gmx.ch>
_gitname=sinit
pkgname=${_gitname}-git
pkgver=0.7.r1.g3a953ea
pkgrel=1
pkgdesc="sinit - suckless init (patched for a custom minirc)"
arch=('i686' 'x86_64')
url="http://git.2f30.org/sinit/"
license=('MIT')
depends=('')
makedepends=('git')
conflicts=('')
provides=('sinit')
source=('git://git.2f30.org/sinit'
'call-minirc-sinit.patch')
md5sums=('SKIP'
'ad798476614abd1e78f372e60fcc779e')
pkgver() {
cd "${_gitname}"
# Using most recent unannotated tag, removing prefix v
git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
prepare() {
cd "${_gitname}"
patch -uN config.def.h ../call-minirc-sinit.patch || return 1
build() {
cd "${_gitname}"
make
package() {
cd "${_gitname}"
make PREFIX=/usr DESTDIR="${pkgdir}" install
It works up to package() where it fails:
makepkg
==> Making package: sinit-git 0.7.r1.g3a953ea-1 (Mon Feb 24 14:53:12 CET 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating sinit git repo...
Fetching origin
-> Found call-minirc-sinit.patch
==> Validating source files with md5sums...
sinit ... Skipped
call-minirc-sinit.patch ... Passed
==> Extracting sources...
-> Creating working copy of sinit git repo...
Cloning into 'sinit'...
done.
==> Starting pkgver()...
==> Starting prepare()...
patching file config.def.h
==> Removing existing pkg/ directory...
==> Starting build()...
sinit build options:
CFLAGS = -Wextra -Werror -Wall -Os
LDFLAGS = -static
CC = cc
creating config.h from config.def.h
CC util/eprintf.c
AR util.a
make bin
make[1]: Entering directory '/home/cem/Setups_hplaptop/sinit-git/src/sinit'
CC sinit.c
LD sinit
make[1]: Leaving directory '/home/cem/Setups_hplaptop/sinit-git/src/sinit'
==> Entering fakeroot environment...
==> Starting package()...
sinit build options:
CFLAGS = -Wextra -Werror -Wall -Os
LDFLAGS = -static
CC = cc
make bin
make[1]: Entering directory '/home/cem/Setups_hplaptop/sinit-git/src/sinit'
make[1]: Nothing to be done for 'bin'.
make[1]: Leaving directory '/home/cem/Setups_hplaptop/sinit-git/src/sinit'
installing executable to /home/cem/Setups_hplaptop/sinit-git/pkg/sinit-git/usr/bin
cp: cannot create regular file ‘/home/cem/Setups_hplaptop/sinit-git/pkg/sinit-git/usr/bin’: No such file or directory
Makefile:47: recipe for target 'install' failed
make: *** [install] Error 1
==> ERROR: A failure occurred in package().
Aborting...
I can see that it's missing the directory usr/bin under pkg/sinit-git/.. but I don't understand why.
I also tried to replace all the cd "${_gitname}" by cd "$srcdir/$_gitname" but I get the same error...
I can't see the difference to e.g. following reference:
https://aur.archlinux.org/packages/al/a … t/PKGBUILD
Last edited by rebootl (2014-02-24 19:01:39)Hey, thanks a lot for your replies. Ah, that explains it, didn't look at the Makefile, don't know how this works honestly...
@Scimmia: Your workaround works!
@WorMzy: I'll do so.
Regards -
How to include class files in no package?
hi,
I have a class file in a package called
pack.Test
and a class file not in a package called
Library
When I try to use Library from within pack.Test, it says theres no such class. I have my classpath setup correctly, and the files in the correct directories.
ie. on windows if %DIR% is the base directory then
%DIR%\Library.java
%DIR%\pack\Test.java
is how they are layed out.
Is there a way to get Library imported to pack.Test?
thanks,
asjfWhat?!! It isn't considered legal to access a
root-level class from a higher level package?Well it's not now because your code won't compile, but
prior to 1.4 you could. I think the JLS has been
updated to say you can't import from the unnamed
namespace.Hmm! I must have missed that bit (not that I read it in any great detail, anyway!). I suppose it forces you to use packages, which is a good thing, IMHO.
What I was wondering about was, is the directory structure of classes strictly necessary, given that a class contains information on its package anyway? I know some IDEs don't require the source files to be in the right directory - they will check on the package statement, and locate the class file accordingly - but is it absolutely necessary for class files to be located according to their directory structure? I know the JLS says they have to be, but could the JLS be relaxed on this point, without breaking anything?
RObin -
How to include camera settings on actual image during export
Is there a way to include camera settings directly onto the image upon export of image(s) in Aperture Program?
Not without a plug-in. Aperture does not allow compositing.
The plug-in BorderFX can likely allow you to do what you want, and more. Recommended.
—Kirby.
Maybe you are looking for
-
Maximum files size for print orders?
Anyone know the maximum filesize that can be uploaded to iPhoto for printing? Anyone successfully sent a JPEG greater than 10 MB? Anything I try to send that is greater than 10 MB gets 'downsampled' to 10 MB in some unknown way. Thanks in advance. SJ
-
How do i get a radio station number from itunes it only plays on the computer i can not down load the station number as it does not show one to my ipod
-
Persistence of synchronous messages in adapter framework
Hello experts, When i go to RWB -> message monitoring -> adapter engine -> Database, the synchronous messages are persisted for only one hour. Is there a way to customize it? Cheers, Thiago Delou Basis Team
-
Admin Studio 9.5 SE unable to connect to ZCM server
Hi! I just finish installing AdminStudio 9.5 SE SP1 (AdminStudioSE95.iso) on a clean VMware Windows XP SP3 install and AdminStudio won't connect to my zenworks server. At first, I input my serial number and it says successfull. Then a window, with a
-
Awr report showing "Undo segment recovery" in top 1st wait event.
Hi all. Today evening oracle.exe is hitting 100% cpu in windows server 2003. In the awr report "undo segment recovery" listed in the top 5 wait event (1st place) and also in the enterprise manager it shows the details like, ACTION 1: Action Investiga