Leah Neukirchen
d30a239d41
common/hooks: support application/x-pie-executable (from file 5.33).
2018-04-16 14:37:49 +02:00
Michael Gehring
b9e321456b
xbps-src: make -dbg packages depend on the pkgver they are generated from
...
Closes : #12161 [via git-merge-pr]
2018-03-05 19:50:05 -08:00
Jürgen Buchmüller
7c53259f00
create-xbps-metadata-scripts: indent with tabs
2018-01-15 14:32:42 +01:00
James Barnett
90b5c612ae
Add hook and trigger to handle hwdb.d files
...
Adds a hook to check if /usr/lib/udev/hwdb.d is being modified. If so,
triggers 'udevadm hwdb --root=. --update'.
Closes : #9858 [via git-merge-pr]
2018-01-15 14:31:12 +01:00
Andrea Brancaleoni
cb72dfc4cd
wine: nopie_files
2017-11-29 19:28:02 +01:00
Alessio Sergi
d77d6cde40
xbps-src: limit the search to the /usr/lib/pythonX.Y directory
2016-10-27 15:22:54 +02:00
Alessio Sergi
4e6576e7a4
xbps-src: add support for python3 pkgs
...
- python_module build style now builds modules for python2/3 by default
- new python2_module and python3_module build styles for building
python2-only and python3-only packages respectively
- no more python_versions
- no need to define pycompile_version for Python modules anymore
(still needed for non-Python modules though)
- Python version and paths are now guessed automatically and a set of
useful variables can now be used in templates
- #!/usr/bin/python2 and #!/usr/bin/python3 are now the default shebangs
- /usr/bin/foo2 and /usr/bin/foo3 are now the default names for bin
scripts (for use with alternatives)
2016-10-16 16:59:31 +02:00
Christian Neukirchen
fb830a2a37
hooks/post-install/06-strip-and-debug-pkgs.sh: bail out on non-PIE binaries in PIE builds.
...
Not tested extensively, in doubt needs twerking.
2016-05-17 14:58:33 +02:00
Enno Boland
6606995831
common/hooks: fix python shebang rewrite for multi-versioned packages
2016-03-27 12:25:27 +02:00
Enno Boland
4714ce6dcd
hooks/post-install: fix python shebang rewriting.
2016-03-25 19:13:06 +01:00
Enno Boland
eb2621ca46
hooks/post-install/07-rewrite-python-shebang.sh: use IFS and -r for read.
...
cc @chneukirchen
2016-03-22 09:03:11 +01:00
Enno Boland
830ca26644
hooks/post-install: add hook to rewrite unversioned python shebangs.
2016-03-21 20:48:12 +01:00
Jürgen Buchmüller
c459dade15
gcc: add support for SOURCE_DATE_EPOCH environment
...
+ Create symlinks from gcc/patches/libcpp-source_date_epoch.patch to cross-*/files/
+ Make all the _apply_patch() functions the same
2016-03-08 13:49:52 +01:00
Jürgen Buchmüller
8d7c58ef9e
cleanup-timestamp-macros: catch more mime-types
2016-03-07 16:10:55 +01:00
Jürgen Buchmüller
8ce51e70cf
timestamp-macros: fix creation and add cleanup
...
As described in #3765
2016-03-07 09:46:34 +01:00
mid-kid
f68bfd6575
common/hooks: Fix hooks when build_style=meta
2015-11-26 22:27:55 +01:00
Juan RP
bcdacb66a0
xbps-src: replace basename(1) with ${var##*/}.
...
Reduce number of fork+exec due to using a subshell to execute basename(1).
2015-09-11 07:55:40 +02:00
Juan RP
e03593db73
xbps-src: remove vestiges of the systemd-services hook.
2015-07-11 11:30:09 +02:00
Andrea Brancaleoni
972a87ba9f
hooks/post-install/04-create-xbps-metadata-scripts.sh: add binfmts trigger support
2015-06-22 13:49:11 +02:00
Juan RP
35bef58c7b
hooks/strip: do not strip files at /usr/lib/debug.
2015-05-23 09:52:19 +02:00
Juan RP
a56b465f1e
hooks/xbps-metadata: only add systemd-service trigger if the buildopt is set.
2015-04-30 11:15:02 +02:00
Juan RP
cd8a29cb62
hooks/strip: make sure to use strip(1) and not our wrapper.
2015-04-28 09:47:39 +02:00
jbu
87a5f1ecba
xbps-src: Use @Gottox way to read path names
2015-04-27 14:15:18 +02:00
jbu
5b066f3564
xbps-src: fix handling of path names containing spaces
2015-04-27 10:22:18 +02:00
Juan RP
f4019408ca
hooks/remote-empty-dirs: switch back to my version that really works.
...
I'm not sure how the guy that submitted the PR tested it, but IT
DOES NOT WORK AS HE EXPECTED.
2015-04-26 09:46:02 +02:00
jbu
ffefcc41a5
xbps-src: Don't print rmdir output
2015-04-25 13:30:11 +02:00
jbu
3a665efea1
xbps-src: Fix read loop for empty dirs; closes #1409
2015-04-25 13:26:18 +02:00
Juan RP
2164eddc33
hooks/create-metadata-scripts: fix INSTALL.msg for subpkgs.
...
The file should be renamed to <destdir>/INSTALL.msg not something else.
Close #1248
2015-04-01 15:08:28 +02:00
Christian Neukirchen
3f43576971
06-strip-and-debug-pkgs.sh: detect PIE binaries.
2015-03-07 20:59:51 +01:00
Juan RP
7339b81b43
xbps-triggers: system-accounts: introduce <account>_pgroup to set primary group.
...
While here also change default home directory to /dev/null if unset.
2015-02-23 22:09:20 +01:00
Juan RP
8bf5cb819a
hooks/remove-la: remove all *.la even if those are symlinks.
2015-02-23 11:33:43 +01:00
Juan RP
a44cd245bc
hooks/create-xbps-scripts: print what triggers are being added.
2015-02-21 13:03:51 +01:00
Juan RP
ef9056ec30
hooks: move pkglint to the pre-pkg phase to make this work again.
2015-02-08 11:21:47 +01:00
Juan RP
56e4c861bd
hooks/create-xbps-metadata-scripts: fix mktemp assignation.
...
When set -o ERR is set the exit case wasn't executed. From the bash
manual page:
"The ERR trap is not executed if the
failed command is part of the command list immediately following
a while or until keyword, part of the test in an if statement,
part of a command executed in a && or || list except the command
following the final && or ||, any command in a pipeline but the
last, or if the command's return value is being inverted using
!. These are the same conditions obeyed by the errexit (-e)
option."
2015-02-01 09:09:38 +01:00
Juan RP
6c395cb76e
xbps-src: create a new hook that collects shlib-provides.
...
This is necessary to be able to collect shlib-provides for 32bit pkgs,
which are autogenerated.
The strip-and-debug-pkgs hook now just does what its name mentions:
strip binaries and create -dbg pkgs.
2015-01-30 12:20:00 +01:00
Juan RP
aed0f3ee0e
xbps-src: fix hooks that are expected to be used in subpkgs.
2015-01-14 14:23:10 +01:00
Juan RP
fc052bad5b
hooks: remove common/hooks/post-install/04-create-xbps-vpkg-files.sh.
...
It's unnecessary with xbps>=0.42.
2014-12-22 11:19:52 +01:00
Juan RP
6e13dcbaff
xbps-src: introduce XBPS_STATEDIR to store state files, logs and others.
...
XBPS_STATEDIR is created in XBPS_BUILDDIR/.xbps-${sourcepkg}-${version}
and contains logs and state files for all phases, as well as wrappers.
We can now inspect the output from all hooks.
2014-12-11 11:02:22 +01:00
Juan RP
cc6b3134b8
hooks/pkglint: use xbps-query -Rs to check for shlib-requires in repos.
2014-12-10 09:32:28 +01:00
Juan RP
8ade12549f
xbps-src: rename disable_debug to nodebug, to follow our naming convention.
2014-11-16 11:52:36 +01:00
Alessio Sergi
d0b4ad9dfa
hooks/post-install/remove-python-bytecode-files: quote arguments properly
...
This fixes the error 'find: paths must precede expression'.
2014-11-15 16:05:06 +01:00
Juan RP
8d033f5724
xbps-src: new hook to remove misc files (used for musl currently).
2014-11-10 12:16:31 +01:00
Juan RP
457fd7aefb
xbps-src: respect XBPS_DEBUG_PKGS for bootstrap pkgs too.
2014-11-05 17:29:58 +01:00
Enno Boland
59cc3e0d45
replace nonfree=yes with repository=nonfree.
...
This way it is possible to set up package specific repositories for
i.e. specific devices.
2014-11-05 14:15:25 +01:00
Juan RP
568c2a032b
hooks: strip: move to post-install to generate shlib-provides for all pkgs.
...
That was the missing piece to generate proper dependencies in 32bit
packages with subpkgs that depended in other subpkgs.
For example kmod: libkmod and libkmod-devel. libkmod-devel was being processed
before libkmod, and due to missing shlib-provides a dependency to the 64bit
package was generated.
2014-10-28 09:06:16 +01:00
Juan RP
1cee26a59f
xbps-src: hooks: reorganize some hooks.
...
The strip-and-debug-pkgs/generate-runtime-deps hooks have been moved
to the pre-pkg stage, and are run before prepare-32bit; this way dependencies
are collected correctly in all cases.
2014-10-14 19:19:07 +02:00
Juan RP
86ba1ea9c5
hooks/strip: before stripping make sure files have write bit set.
...
... otherwise strip(1) errors out. Perl installs shlibs without write
bit set and results in EPERM errors.
Perl could be fixed instead, but meanwhile this works.
2014-10-12 08:56:32 +02:00
Juan RP
dbfb3a2b81
hooks/strip-and-debug: do not override file perms.
...
... otherwise additional perms are lost, always resulting in non setuid bins.
2014-10-12 07:23:06 +02:00
Juan RP
b2976da1c8
xbps-src: use "disable_debug" to disable -dbg subpkg creation.
2014-10-11 09:57:27 +02:00
Juan RP
c920736289
xbps-src: hooks/strip: ignore debug files; set proper perms to files.
2014-09-27 07:19:42 +02:00